Re: [PATCH] macintosh/via-pmu: Fix build failure when CONFIG_INPUT is disabled

From: Finn Thain
Date: Sat Mar 19 2022 - 01:57:27 EST


On Fri, 18 Mar 2022, Randy Dunlap wrote:

>
> Hi Finn,
> It builds without those reported errors, but I do see these warnings
> since the robot-supplied .config file has:
> # CONFIG_PROC_FS is not set
>
>
> CC drivers/macintosh/via-pmu.o
> ../drivers/macintosh/via-pmu.c:897:12: warning: 'pmu_battery_proc_show' defined but not used [-Wunused-function]
> 897 | static int pmu_battery_proc_show(struct seq_file *m, void *v)
> | ^~~~~~~~~~~~~~~~~~~~~
> ../drivers/macintosh/via-pmu.c:871:12: warning: 'pmu_irqstats_proc_show' defined but not used [-Wunused-function]
> 871 | static int pmu_irqstats_proc_show(struct seq_file *m, void *v)
> | ^~~~~~~~~~~~~~~~~~~~~~
> ../drivers/macintosh/via-pmu.c:860:12: warning: 'pmu_info_proc_show' defined but not used [-Wunused-function]
> 860 | static int pmu_info_proc_show(struct seq_file *m, void *v)
> | ^~~~~~~~~~~~~~~~~~
>

I see. I'll send a separate patch for this issue.