# Re: \[PATCH v3 01/16\] chardev: add helper function to register char devs with a struct device

- From: Logan Gunthorpe \<hidden\>
- Date: 2017-03-16 17:38:40 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2017/03/119386
- Thread: https://ratatoskr.run/linux-fsdevel/2017/03/119386/t.md

```text
> I don't know why kbuild didn't catch these before, but it looks like we
> really need to include device.h in cdev.h now to fix up these build
> warnings, right?

> I'll try that out and rebase the char-misc-testing tree in the morning
> to see if that fixes the build problems...


Yeah, I think the kbuild robot missed the series because the vger
mailing lists were dropping this series :(

I also don't know why my kernel config didn't catch this warning but
I reproduced and fixed it with the kbuild's config. I'll send an updated
patch which adds a include device.h line to cdev.h momentarily.

Logan
```
