]> Git Repo - linux.git/commit - drivers/acpi/button.c
ACPI / button: fix defined but not used warning
authorRandy Dunlap <[email protected]>
Sat, 7 Jul 2018 15:25:01 +0000 (08:25 -0700)
committerRafael J. Wysocki <[email protected]>
Mon, 9 Jul 2018 09:32:44 +0000 (11:32 +0200)
commit2c4c2a71bd6f75c3982ac09407889b110673ac83
tree44979ec4e5ecc836c60cd00728e0436374400a8e
parent7c058c7c74b3dbeb7d157c273959f87faf710350
ACPI / button: fix defined but not used warning

Fix a build warning in the ACPI button driver when CONFIG_PROC_FS
is not enabled by marking the unused function as __maybe_unused.

../drivers/acpi/button.c:252:12: warning: 'acpi_button_state_seq_show' defined but not used [-Wunused-function]

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/acpi/button.c
This page took 0.065397 seconds and 4 git commands to generate.