Skip to contentSkip to conversation

linux-next: build warning after merge of the tegra tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jun 26, 2022 – Jun 27, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the tegra tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

In file included from drivers/soc/tegra/fuse/fuse-tegra.c:7:
include/linux/device.h:136:33: warning: 'dev_attr_production' defined but not used [-Wunused-variable]
136 | struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
| ^~~~~~~~~
drivers/soc/tegra/fuse/fuse-tegra.c:441:8: note: in expansion of macro 'DEVICE_ATTR_RO'

  441 | static DEVICE_ATTR_RO(production);
      |        ^~~~~~~~~~~~~~

Introduced by commit

2258fe488a20 ("soc/tegra: fuse: Expose Tegra production status")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the tegra tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

In file included from drivers/soc/tegra/fuse/fuse-tegra.c:7:
include/linux/device.h:136:33: warning: 'dev_attr_production' defined but not used [-Wunused-variable]
136 | struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
| ^~~~~~~~~
drivers/soc/tegra/fuse/fuse-tegra.c:441:8: note: in expansion of macro 'DEVICE_ATTR_RO'

Quoted 7 lines
   441 | static DEVICE_ATTR_RO(production);
       |        ^~~~~~~~~~~~~~

Introduced by commit

2258fe488a20 ("soc/tegra: fuse: Expose Tegra production status")

Thanks for reporting. I have sent an updated patch to fix this [0].

Cheers
Jon

[0] https://lore.kernel.org/linux-tegra/[email protected]/T/#u

Signature · 1 line
nvpublic