diff options
author | Hannes Reinecke <hare@suse.de> | 2016-04-04 11:44:04 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-04-04 12:07:42 -0400 |
commit | 78db6e30281aa056a6773cb4def00afc158c097f (patch) | |
tree | 1eb35641be9d2663fb56ce70e35e7889237954be /include/scsi | |
parent | 06dbde5f3a44248fc02e24d662ac4849202abb48 (diff) | |
download | blackbird-op-linux-78db6e30281aa056a6773cb4def00afc158c097f.tar.gz blackbird-op-linux-78db6e30281aa056a6773cb4def00afc158c097f.zip |
scsi: add scsi_set_sense_field_pointer()
Add a function to set the field pointer for SCSI sense codes.
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_common.h b/include/scsi/scsi_common.h index 11571b2a831e..20bf7eaef05a 100644 --- a/include/scsi/scsi_common.h +++ b/include/scsi/scsi_common.h @@ -63,6 +63,7 @@ extern bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, extern void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq); int scsi_set_sense_information(u8 *buf, int buf_len, u64 info); +int scsi_set_sense_field_pointer(u8 *buf, int buf_len, u16 fp, u8 bp, bool cd); extern const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len, int desc_type); |