diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2014-03-19 13:46:25 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-03-19 13:56:40 -0400 |
commit | a5a6569959fc55d4ebf1526f7855003596946c32 (patch) | |
tree | 7586e228f5bda62aa92f152aac15c9d07b5510ca | |
parent | 200421a80f6e0a9e39d698944cc35cba103eb6ce (diff) |
libata.h: add stub for ata_sas_port_resume
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>
-rw-r--r-- | include/linux/libata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 5c09e86982c9..52723789b991 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -1148,6 +1148,9 @@ static inline void ata_sas_port_suspend(struct ata_port *ap) | |||
1148 | static inline void ata_sas_port_async_resume(struct ata_port *ap) | 1148 | static inline void ata_sas_port_async_resume(struct ata_port *ap) |
1149 | { | 1149 | { |
1150 | } | 1150 | } |
1151 | static inline void ata_sas_port_resume(struct ata_port *ap) | ||
1152 | { | ||
1153 | } | ||
1151 | #endif | 1154 | #endif |
1152 | extern int ata_ratelimit(void); | 1155 | extern int ata_ratelimit(void); |
1153 | extern void ata_msleep(struct ata_port *ap, unsigned int msecs); | 1156 | extern void ata_msleep(struct ata_port *ap, unsigned int msecs); |