Commit e91df93e authored by Lin Ming's avatar Lin Ming Committed by Jeff Garzik

libata-acpi: add missing inlines in libata.h

Adds inline for ata_acpi_unregister/ata_acpi_bind/ata_acpi_unbind
in drivers/ata/libata.h for !CONFIG_ATA_ACPI to fix below warnings.

warning: 'ata_acpi_unregister' defined but not used [-Wunused-function]
warning: 'ata_acpi_bind' defined but not used [-Wunused-function]
warning: 'ata_acpi_unbind' defined but not used [-Wunused-function]
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 166a2967
...@@ -131,9 +131,9 @@ static inline void ata_acpi_on_disable(struct ata_device *dev) { } ...@@ -131,9 +131,9 @@ static inline void ata_acpi_on_disable(struct ata_device *dev) { }
static inline void ata_acpi_set_state(struct ata_port *ap, static inline void ata_acpi_set_state(struct ata_port *ap,
pm_message_t state) { } pm_message_t state) { }
static inline int ata_acpi_register(void) { return 0; } static inline int ata_acpi_register(void) { return 0; }
static void ata_acpi_unregister(void) { } static inline void ata_acpi_unregister(void) { }
static void ata_acpi_bind(struct ata_device *dev) { } static inline void ata_acpi_bind(struct ata_device *dev) { }
static void ata_acpi_unbind(struct ata_device *dev) { } static inline void ata_acpi_unbind(struct ata_device *dev) { }
#endif #endif
/* libata-scsi.c */ /* libata-scsi.c */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment