提交 a5a65699 编写于 作者: R Randy Dunlap 提交者: Tejun Heo

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: NRandy Dunlap <rdunlap@infradead.org>
Reported-by: NJim Davis <jim.epost@gmail.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
上级 200421a8
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册