Re: [PATCH] ACPI: button: hide unused procfs helpers

2018-07-13 Thread YueHaibing
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

[PATCH] ACPI: button: hide unused procfs helpers

2018-07-13 Thread YueHaibing
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.