diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index c5cd5b5513e67a144ac3a7d2b5a76dc9f494bc48..0cc384b72943a0b5e3eacd811de149b788a887b2 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -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; }