scsi: remove scsi_cmd_print_sense_hdr()
authorHannes Reinecke <hare@suse.de>
Fri, 24 Oct 2014 12:26:41 +0000 (14:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 10:15:56 +0000 (11:15 +0100)
Unused.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/constants.c
include/scsi/scsi_dbg.h

index d35a5d6c8d7c8219f5b142b82a02a8f79009a48d..2f447075adbbc23eb152a91b1fcabc8e2e3ec668 100644 (file)
@@ -1428,20 +1428,6 @@ scsi_print_sense_hdr(const char *name, struct scsi_sense_hdr *sshdr)
 }
 EXPORT_SYMBOL(scsi_print_sense_hdr);
 
-/*
- * Print normalized SCSI sense header with device information and a prefix.
- */
-void
-scsi_cmd_print_sense_hdr(struct scsi_cmnd *scmd, const char *desc,
-                         struct scsi_sense_hdr *sshdr)
-{
-       scmd_printk(KERN_INFO, scmd, "%s: ", desc);
-       scsi_show_sense_hdr(sshdr);
-       scmd_printk(KERN_INFO, scmd, "%s: ", desc);
-       scsi_show_extd_sense(sshdr->asc, sshdr->ascq);
-}
-EXPORT_SYMBOL(scsi_cmd_print_sense_hdr);
-
 static void
 scsi_decode_sense_buffer(const unsigned char *sense_buffer, int sense_len,
                       struct scsi_sense_hdr *sshdr)
index e89844cc2cd359bf281574f45f942826b1af9056..5a43a4cd96c6f6ea9f11d9818fb4e4c5780046a5 100644 (file)
@@ -9,8 +9,6 @@ extern void __scsi_print_command(unsigned char *);
 extern void scsi_show_extd_sense(unsigned char, unsigned char);
 extern void scsi_show_sense_hdr(struct scsi_sense_hdr *);
 extern void scsi_print_sense_hdr(const char *, struct scsi_sense_hdr *);
-extern void scsi_cmd_print_sense_hdr(struct scsi_cmnd *, const char *,
-                                    struct scsi_sense_hdr *);
 extern void scsi_print_sense(char *, struct scsi_cmnd *);
 extern void __scsi_print_sense(const char *name,
                               const unsigned char *sense_buffer,