mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 <[email protected]> Reported-by: Jim Davis <[email protected]> Signed-off-by: Tejun Heo <[email protected]> Cc: Dan Williams <[email protected]>
This commit is contained in:
1 parent
200421a80f
commit
a5a6569959
1 file changed
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user