sorry for noise,there has a fix:
[PATCH] acpi/button.c: fix defined but not used warning
https://lkml.org/lkml/2018/7/11/231
On 2018/7/13 15:19, YueHaibing wrote:
> When CONFIG_PROC_FS isn't set, gcc warning this:
>
> drivers/acpi/button.c:255:12: warning: ‘acpi_button_state_seq_show’ defined
>
When CONFIG_PROC_FS isn't set, gcc warning this:
drivers/acpi/button.c:255:12: warning: ‘acpi_button_state_seq_show’ defined but
not used [-Wunused-function]
static int acpi_button_state_seq_show(struct seq_file *seq, void *offset)
^
fix this by adding #ifdef around it.
Signed-off-b
2 matches
Mail list logo