diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-08-25 22:46:36 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-25 23:08:08 +0200 |
commit | 7475c8ae1b7bfc20b0fa586e6fc5155bac5d208b (patch) | |
tree | 7de5347f305638bc7a0ebf38fa62cea721581642 /drivers/scsi/sg.c | |
parent | scsi: sd: Remove a useless comparison (diff) | |
download | linux-7475c8ae1b7bfc20b0fa586e6fc5155bac5d208b.tar.xz linux-7475c8ae1b7bfc20b0fa586e6fc5155bac5d208b.zip |
scsi: sg: Fix type of last blk_trace_setup() argument
Avoid that sparse reports the following:
drivers/scsi/sg.c:1114:41: warning: incorrect type in argument 5 (different address spaces)
drivers/scsi/sg.c:1114:41: expected char [noderef] <asn:1>*arg
drivers/scsi/sg.c:1114:41: got char *<noident>
This patch does not change any functionality.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/scsi/sg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index f5705a95319f..03194c4b6744 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1110,8 +1110,7 @@ sg_ioctl(struct file *filp, unsigned int cmd_in, unsigned long arg) return blk_trace_setup(sdp->device->request_queue, sdp->disk->disk_name, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), - NULL, - (char *)arg); + NULL, p); case BLKTRACESTART: return blk_trace_startstop(sdp->device->request_queue, 1); case BLKTRACESTOP: |