From: Bart Van Assche Date: Fri, 25 Aug 2017 20:46:36 +0000 (-0700) Subject: scsi: sg: Fix type of last blk_trace_setup() argument X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7475c8ae1b7bfc20b0fa586e6fc5155bac5d208b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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] *arg drivers/scsi/sg.c:1114:41: got char * This patch does not change any functionality. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Cc: Johannes Thumshirn Signed-off-by: Martin K. Petersen --- 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: