Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: suppress compiler warning in battery.c

This patch fixes following compiler warning when build via make W=1:

drivers/acpi/battery.c:149:52: warning: no previous prototype for ‘acpi_battery_present’ [-Wmissing-prototypes]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Andy Shevchenko and committed by
Rafael J. Wysocki
efd941f1 2d5914cc

+1 -1
+1 -1
drivers/acpi/battery.c
··· 146 146 147 147 #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat) 148 148 149 - inline int acpi_battery_present(struct acpi_battery *battery) 149 + static inline int acpi_battery_present(struct acpi_battery *battery) 150 150 { 151 151 return battery->device->status.battery_present; 152 152 }