Re: [PATCH 1/2] x86: apm: mark proc_apm_show as __maybe_unused

2018-08-20 Thread Arnd Bergmann
On Mon, Aug 20, 2018 at 5:40 PM Thomas Gleixner wrote: > > On Tue, 14 Aug 2018, Arnd Bergmann wrote: > > > A new build error appeared with CONFIG_PROC_FS disabled: > > > > arch/x86/kernel/apm_32.c:1643:12: error: 'proc_apm_show' defined but not > > used [-Werror=unused-function] > > > > This mark

Re: [PATCH 1/2] x86: apm: mark proc_apm_show as __maybe_unused

2018-08-20 Thread Thomas Gleixner
On Tue, 14 Aug 2018, Arnd Bergmann wrote: > A new build error appeared with CONFIG_PROC_FS disabled: > > arch/x86/kernel/apm_32.c:1643:12: error: 'proc_apm_show' defined but not used > [-Werror=unused-function] > > This marks the function as __maybe_unused to let the compiler drop > it silently

Re: [PATCH 1/2] x86: apm: mark proc_apm_show as __maybe_unused

2018-08-16 Thread Christoph Hellwig
On Tue, Aug 14, 2018 at 11:18:45AM +0200, Arnd Bergmann wrote: > A new build error appeared with CONFIG_PROC_FS disabled: > > arch/x86/kernel/apm_32.c:1643:12: error: 'proc_apm_show' defined but not used > [-Werror=unused-function] > > This marks the function as __maybe_unused to let the compile

[PATCH 1/2] x86: apm: mark proc_apm_show as __maybe_unused

2018-08-14 Thread Arnd Bergmann
A new build error appeared with CONFIG_PROC_FS disabled: arch/x86/kernel/apm_32.c:1643:12: error: 'proc_apm_show' defined but not used [-Werror=unused-function] This marks the function as __maybe_unused to let the compiler drop it silently. Fixes: 3f3942aca6da ("proc: introduce proc_create_sing