Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5a65699 authored by Randy Dunlap's avatar Randy Dunlap Committed by Tejun Heo
Browse files

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Reported-by: default avatarJim Davis <jim.epost@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
parent 200421a8
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -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_async_resume(struct ata_port *ap)
{
{
}
}
static inline void ata_sas_port_resume(struct ata_port *ap)
{
}
#endif
#endif
extern int ata_ratelimit(void);
extern int ata_ratelimit(void);
extern void ata_msleep(struct ata_port *ap, unsigned int msecs);
extern void ata_msleep(struct ata_port *ap, unsigned int msecs);