Skip to content

Commit

Permalink
ACPI: fix acpi_bus.h build warnings when ACPI is not enabled
Browse files Browse the repository at this point in the history
introduced in Linux-3.5-rc1 by
66886d6
(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>
  • Loading branch information
Len Brown committed Jun 4, 2012
1 parent 2f07a61 commit 7ae3098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/acpi/acpi_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 7ae3098

Please sign in to comment.