libata.h: add stub for ata_sas_port_resume
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 19 Mar 2014 17:46:25 +0000 (10:46 -0700)
committerTejun Heo <tj@kernel.org>
Wed, 19 Mar 2014 17:56:40 +0000 (13:56 -0400)
Fix build error when CONFIG_PM is not enabled by adding a stub
function in <linux/libata.h>.

drivers/scsi/libsas/sas_ata.c: In function 'sas_resume_sata':
drivers/scsi/libsas/sas_ata.c:756:3: error: implicit declaration of function 'ata_sas_port_resume' [-Werror=implicit-function-declaration]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
include/linux/libata.h

index 5c09e86982c9e87fb4ce18f28da98a734c77cfec..52723789b9913e450c8dd7caf25b7a6ce3fbfd0e 100644 (file)
@@ -1148,6 +1148,9 @@ static inline void ata_sas_port_suspend(struct ata_port *ap)
 static inline void ata_sas_port_async_resume(struct ata_port *ap)
 {
 }
+static inline void ata_sas_port_resume(struct ata_port *ap)
+{
+}
 #endif
 extern int ata_ratelimit(void);
 extern void ata_msleep(struct ata_port *ap, unsigned int msecs);