Messages in this thread | | | Date | Tue, 28 Feb 2023 19:39:15 +0100 | Subject | Re: [PATCH] input/misc: hp_sdc_rtc: mark an unused function as __maybe_unused | From | Helge Deller <> |
| |
On 2/9/23 14:56, Geert Uytterhoeven wrote: > On Thu, Feb 9, 2023 at 2:04 AM Randy Dunlap <rdunlap@infradead.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@infradead.org> > > Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
applied to parisc tree.
Thanks, Helge
| |