]> www.infradead.org Git - users/dwmw2/linux.git/commit
sparc: fix led.c driver when PROC_FS is not enabled
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 17 Nov 2020 00:48:00 +0000 (16:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2021 00:31:13 +0000 (16:31 -0800)
commitb3554aa2470b5db1222c31e08ec9c29ab33eabc7
treeae436c78bb12beff86f3bc811fa4ce8515305501
parenta970a9764c773ae6daa94db934dfe3d790bfc977
sparc: fix led.c driver when PROC_FS is not enabled

Fix Sparc build when CONFIG_PROC_FS is not enabled.

Fixes this build error:
arch/sparc/kernel/led.c:107:30: error: 'led_proc_ops' defined but not used [-Werror=unused-const-variable=]
     107 | static const struct proc_ops led_proc_ops = {
         |                              ^~~~~~~~~~~~
   cc1: all warnings being treated as errors

Fixes: 97a32539b956 ("proc: convert everything to "struct proc_ops"")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Lars Kotthoff <metalhead@metalhead.ws>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/led.c