[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ae6a9ed0-bf62-9a32-310d-286119ffb9e2@gmx.de>
Date: Tue, 28 Feb 2023 19:39:15 +0100
From: Helge Deller <deller@....de>
To: Geert Uytterhoeven <geert@...ux-m68k.org>,
Randy Dunlap <rdunlap@...radead.org>
Cc: linux-kernel@...r.kernel.org, David Howells <dhowells@...hat.com>,
linux-m68k@...ts.linux-m68k.org,
"James E.J. Bottomley" <James.Bottomley@...senpartnership.com>,
linux-parisc@...r.kernel.org, Al Viro <viro@...iv.linux.org.uk>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
linux-input@...r.kernel.org
Subject: Re: [PATCH] input/misc: hp_sdc_rtc: mark an unused function as
__maybe_unused
On 2/9/23 14:56, Geert Uytterhoeven wrote:
> On Thu, Feb 9, 2023 at 2:04 AM Randy Dunlap <rdunlap@...radead.org> wrote:
>> When CONFIG_PROC_FS is not set, one procfs-related function is not
>> used, causing a build error or warning.
>> Mark this function as __maybe_unused to quieten the build.
>>
>> ../drivers/input/misc/hp_sdc_rtc.c:268:12: warning: 'hp_sdc_rtc_proc_show' defined but not used [-Wunused-function]
>> 268 | static int hp_sdc_rtc_proc_show(struct seq_file *m, void *v)
>> | ^~~~~~~~~~~~~~~~~~~~
>>
>> Fixes: c18bd9a1ff47 ("hp_sdc_rtc: Don't use create_proc_read_entry()")
>> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
>
> Reviewed-by: Geert Uytterhoeven <geert@...ux-m68k.org>
applied to parisc tree.
Thanks,
Helge
Powered by blists - more mailing lists