Re: [srini-nvmem:for-next 28/34] drivers/nvmem/mt6323-efuse.c:6:10: fatal error: linux/device-id/of.h: No such file or directory

Andy Shevchenko <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Fri, Jul 17, 2026 at 07:59:19PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/srini/nvmem.git for-next
> head:   2a3ed29b053137a91af7963038d437657065e57e
> commit: b3c090960d86901bd4e41447744fd532d6e1d7f9 [28/34] nvmem: add mt6323 PMIC EFUSE driver
> config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260717/[email protected]/config)
> compiler: nios2-linux-gcc (GCC) 11.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260717/[email protected]/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <[email protected]>
> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
> 
> All errors (new ones prefixed by >>):

...

> >> drivers/nvmem/mt6323-efuse.c:6:10: fatal error: linux/device-id/of.h: No such file or directory
>        6 | #include <linux/device-id/of.h>
>          |          ^~~~~~~~~~~~~~~~~~~~~~
>    compilation terminated.

This header shouldn't be included explicitly. Now platform_device.h is
responsible for that. TL;DR: This inclusion should be simply dropped to
fix this.

> vim +6 drivers/nvmem/mt6323-efuse.c
> 
>    > 6	#include <linux/device-id/of.h>
>      7	#include <linux/err.h>
>      8	#include <linux/module.h>
>      9	#include <linux/nvmem-provider.h>
>     10	#include <linux/platform_device.h>
>     11	#include <linux/regmap.h>
>     12	#include <linux/types.h>

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.