sd: Allow sd_print_sense_hdr to be called outside of sd.c Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> --- diff -r 431a96f963a6 drivers/scsi/sd.c --- a/drivers/scsi/sd.c Fri Apr 25 13:36:00 2008 -0400 +++ b/drivers/scsi/sd.c Fri Apr 25 13:36:39 2008 -0400 @@ -96,7 +96,6 @@ static int sd_done(struct scsi_cmnd *); static void sd_read_capacity(struct scsi_disk *sdkp, unsigned char *buffer); static void scsi_disk_release(struct device *cdev); -static void sd_print_sense_hdr(struct scsi_disk *, struct scsi_sense_hdr *); static void sd_print_result(struct scsi_disk *, int); static DEFINE_IDR(sd_index_idr); @@ -1930,14 +1929,14 @@ module_init(init_sd); module_exit(exit_sd); -static void sd_print_sense_hdr(struct scsi_disk *sdkp, - struct scsi_sense_hdr *sshdr) +void sd_print_sense_hdr(struct scsi_disk *sdkp, struct scsi_sense_hdr *sshdr) { sd_printk(KERN_INFO, sdkp, ""); scsi_show_sense_hdr(sshdr); sd_printk(KERN_INFO, sdkp, ""); scsi_show_extd_sense(sshdr->asc, sshdr->ascq); } +EXPORT_SYMBOL(sd_print_sense_hdr); static void sd_print_result(struct scsi_disk *sdkp, int result) { diff -r 431a96f963a6 drivers/scsi/sd.h --- a/drivers/scsi/sd.h Fri Apr 25 13:36:00 2008 -0400 +++ b/drivers/scsi/sd.h Fri Apr 25 13:36:39 2008 -0400 @@ -48,6 +48,8 @@ }; #define to_scsi_disk(obj) container_of(obj,struct scsi_disk,dev) +extern void sd_print_sense_hdr(struct scsi_disk *, struct scsi_sense_hdr *); + #define sd_printk(prefix, sdsk, fmt, a...) \ (sdsk)->disk ? \ sdev_printk(prefix, (sdsk)->device, "[%s] " fmt, \ -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html