platform/x86: toshiba_acpi: Fix defined but not used build warnings
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 7 Jul 2018 03:53:09 +0000 (20:53 -0700)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 21 Jul 2018 16:26:45 +0000 (09:26 -0700)
commitc2e2a618eb7104e18fdcf739d4d911563812a81c
tree7799d24a450c9ab7182c7f19d4559f674e9cf496
parent1a32ebb26ba9adc9a3fe59079b79a82f6bbec34e
platform/x86: toshiba_acpi: Fix defined but not used build warnings

Fix a build warning in toshiba_acpi.c when CONFIG_PROC_FS is not enabled
by marking the unused function as __maybe_unused.

../drivers/platform/x86/toshiba_acpi.c:1685:12: warning: 'version_proc_show' defined but not used [-Wunused-function]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Azael Avalos <coproscefalo@gmail.com>
Cc: platform-driver-x86@vger.kernel.org
Cc: Andy Shevchenko <andy@infradead.org>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/toshiba_acpi.c