Skip to content

Commit 1e5b5df

Browse files
rddunlapgeertu
authored andcommitted
m68k: /proc/hardware should depend on PROC_FS
When CONFIG_PROC_FS is not set, there is a build error for an unused function. Make PROC_HARDWARE depend on PROC_FS to prevent this error. In file included from ../arch/m68k/kernel/setup.c:3: ../arch/m68k/kernel/setup_mm.c:477:12: error: 'hardware_proc_show' defined but not used [-Werror=unused-function] 477 | static int hardware_proc_show(struct seq_file *m, void *v) | ^~~~~~~~~~~~~~~~~~ Fixes: 66d857b ("m68k: merge m68k and m68knommu arch directories") # v3.0 Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20230209010825.24136-1-rdunlap@infradead.org Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
1 parent be6c50d commit 1e5b5df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/m68k/Kconfig.devices

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ config HEARTBEAT
1919
# We have a dedicated heartbeat LED. :-)
2020
config PROC_HARDWARE
2121
bool "/proc/hardware support"
22+
depends on PROC_FS
2223
help
2324
Say Y here to support the /proc/hardware file, which gives you
2425
access to information about the machine you're running on,

0 commit comments

Comments
 (0)