ACPI: suppress compiler warning in battery.c
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 11 Mar 2013 09:17:06 +0000 (09:17 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 24 Mar 2013 23:05:48 +0000 (00:05 +0100)
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>
drivers/acpi/battery.c

index c5cd5b5513e67a144ac3a7d2b5a76dc9f494bc48..0cc384b72943a0b5e3eacd811de149b788a887b2 100644 (file)
@@ -146,7 +146,7 @@ struct acpi_battery {
 
 #define to_acpi_battery(x) container_of(x, struct acpi_battery, bat)
 
-inline int acpi_battery_present(struct acpi_battery *battery)
+static inline int acpi_battery_present(struct acpi_battery *battery)
 {
        return battery->device->status.battery_present;
 }