diff options
author | Lin Ming <ming.m.lin@intel.com> | 2012-07-02 00:31:19 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-07-25 14:15:03 -0400 |
commit | e91df93ebd7bef40d175d51ab7bcbd3b5c4fc212 (patch) | |
tree | 799d2b6f01a840802d28a2f03dffd60e732d9dc6 /drivers/ata/libata.h | |
parent | 166a2967b45ede2e2e56f3ede3cd32053dc17812 (diff) |
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: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 44a7939b5bb6..50e4dff0604e 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -131,9 +131,9 @@ static inline void ata_acpi_on_disable(struct ata_device *dev) { } | |||
131 | static inline void ata_acpi_set_state(struct ata_port *ap, | 131 | static inline void ata_acpi_set_state(struct ata_port *ap, |
132 | pm_message_t state) { } | 132 | pm_message_t state) { } |
133 | static inline int ata_acpi_register(void) { return 0; } | 133 | static inline int ata_acpi_register(void) { return 0; } |
134 | static void ata_acpi_unregister(void) { } | 134 | static inline void ata_acpi_unregister(void) { } |
135 | static void ata_acpi_bind(struct ata_device *dev) { } | 135 | static inline void ata_acpi_bind(struct ata_device *dev) { } |
136 | static void ata_acpi_unbind(struct ata_device *dev) { } | 136 | static inline void ata_acpi_unbind(struct ata_device *dev) { } |
137 | #endif | 137 | #endif |
138 | 138 | ||
139 | /* libata-scsi.c */ | 139 | /* libata-scsi.c */ |