diff options
author | Len Brown <len.brown@intel.com> | 2012-06-04 00:29:11 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-06-04 00:29:11 -0400 |
commit | 7ae30986dc63d214cb075a40f2cf205f0a7806cd (patch) | |
tree | 3f34672d5f13e003f3e1124afbc6a95d7d535a28 /include/acpi | |
parent | 2f07a6134f670755e6ce657d019c26305bfcef89 (diff) | |
download | blackbird-op-linux-7ae30986dc63d214cb075a40f2cf205f0a7806cd.tar.gz blackbird-op-linux-7ae30986dc63d214cb075a40f2cf205f0a7806cd.zip |
ACPI: fix acpi_bus.h build warnings when ACPI is not enabled
introduced in Linux-3.5-rc1 by
66886d6f8c9bcdee3d7fce5796dcffd6b4bc0b48
(ACPI: Add stubs for (un)register_acpi_bus_type)
Fix header file warnings when CONFIG_ACPI is not enabled:
include/acpi/acpi_bus.h:443:42: warning: 'struct acpi_bus_type' declared inside parameter list
include/acpi/acpi_bus.h:443:42: warning: its scope is only this definition or declaration, which is probably not
include/acpi/acpi_bus.h:444:44: warning: 'struct acpi_bus_type' declared inside parameter list
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index b0d62820ada1..9e6e1c6eb60a 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -440,8 +440,8 @@ static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable) #else /* CONFIG_ACPI */ -static int register_acpi_bus_type(struct acpi_bus_type *bus) { return 0; } -static int unregister_acpi_bus_type(struct acpi_bus_type *bus) { return 0; } +static inline int register_acpi_bus_type(void *bus) { return 0; } +static inline int unregister_acpi_bus_type(void *bus) { return 0; } #endif /* CONFIG_ACPI */ |