]> Git Repo - linux.git/commitdiff
m68k: /proc/hardware should depend on PROC_FS
authorRandy Dunlap <[email protected]>
Thu, 9 Feb 2023 01:08:25 +0000 (17:08 -0800)
committerGeert Uytterhoeven <[email protected]>
Mon, 13 Feb 2023 10:34:49 +0000 (11:34 +0100)
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: 66d857b08b8c ("m68k: merge m68k and m68knommu arch directories") # v3.0
Signed-off-by: Randy Dunlap <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
arch/m68k/Kconfig.devices

index 6a87b4a5fcac2ca8a07a9cb69a8a612a2dd774e0..e6e3efac184074c2b28b3c7349fa5a9685118202 100644 (file)
@@ -19,6 +19,7 @@ config HEARTBEAT
 # We have a dedicated heartbeat LED. :-)
 config PROC_HARDWARE
        bool "/proc/hardware support"
+       depends on PROC_FS
        help
          Say Y here to support the /proc/hardware file, which gives you
          access to information about the machine you're running on,
This page took 0.05804 seconds and 4 git commands to generate.