aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index efd6f9800762..cafc09a64fe4 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1052,6 +1052,8 @@ extern int ata_scsi_slave_config(struct scsi_device *sdev);
1052extern void ata_scsi_slave_destroy(struct scsi_device *sdev); 1052extern void ata_scsi_slave_destroy(struct scsi_device *sdev);
1053extern int ata_scsi_change_queue_depth(struct scsi_device *sdev, 1053extern int ata_scsi_change_queue_depth(struct scsi_device *sdev,
1054 int queue_depth, int reason); 1054 int queue_depth, int reason);
1055extern int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
1056 int queue_depth, int reason);
1055extern struct ata_device *ata_dev_pair(struct ata_device *adev); 1057extern struct ata_device *ata_dev_pair(struct ata_device *adev);
1056extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev); 1058extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);
1057extern void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap); 1059extern void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap);
@@ -1254,13 +1256,13 @@ static inline int sata_srst_pmp(struct ata_link *link)
1254/* 1256/*
1255 * printk helpers 1257 * printk helpers
1256 */ 1258 */
1257__attribute__((format (printf, 3, 4))) 1259__printf(3, 4)
1258int ata_port_printk(const struct ata_port *ap, const char *level, 1260int ata_port_printk(const struct ata_port *ap, const char *level,
1259 const char *fmt, ...); 1261 const char *fmt, ...);
1260__attribute__((format (printf, 3, 4))) 1262__printf(3, 4)
1261int ata_link_printk(const struct ata_link *link, const char *level, 1263int ata_link_printk(const struct ata_link *link, const char *level,
1262 const char *fmt, ...); 1264 const char *fmt, ...);
1263__attribute__((format (printf, 3, 4))) 1265__printf(3, 4)
1264int ata_dev_printk(const struct ata_device *dev, const char *level, 1266int ata_dev_printk(const struct ata_device *dev, const char *level,
1265 const char *fmt, ...); 1267 const char *fmt, ...);
1266 1268
@@ -1302,10 +1304,10 @@ void ata_print_version(const struct device *dev, const char *version);
1302/* 1304/*
1303 * ata_eh_info helpers 1305 * ata_eh_info helpers
1304 */ 1306 */
1305extern void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...) 1307extern __printf(2, 3)
1306 __attribute__ ((format (printf, 2, 3))); 1308void __ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...);
1307extern void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...) 1309extern __printf(2, 3)
1308 __attribute__ ((format (printf, 2, 3))); 1310void ata_ehi_push_desc(struct ata_eh_info *ehi, const char *fmt, ...);
1309extern void ata_ehi_clear_desc(struct ata_eh_info *ehi); 1311extern void ata_ehi_clear_desc(struct ata_eh_info *ehi);
1310 1312
1311static inline void ata_ehi_hotplugged(struct ata_eh_info *ehi) 1313static inline void ata_ehi_hotplugged(struct ata_eh_info *ehi)
@@ -1319,8 +1321,8 @@ static inline void ata_ehi_hotplugged(struct ata_eh_info *ehi)
1319/* 1321/*
1320 * port description helpers 1322 * port description helpers
1321 */ 1323 */
1322extern void ata_port_desc(struct ata_port *ap, const char *fmt, ...) 1324extern __printf(2, 3)
1323 __attribute__ ((format (printf, 2, 3))); 1325void ata_port_desc(struct ata_port *ap, const char *fmt, ...);
1324#ifdef CONFIG_PCI 1326#ifdef CONFIG_PCI
1325extern void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset, 1327extern void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset,
1326 const char *name); 1328 const char *name);