Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754921AbaJWQxz (ORCPT ); Thu, 23 Oct 2014 12:53:55 -0400 Received: from mailrelay008.isp.belgacom.be ([195.238.6.174]:5721 "EHLO mailrelay008.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754464AbaJWQxx (ORCPT ); Thu, 23 Oct 2014 12:53:53 -0400 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswNADgySVRbtA79/2dsb2JhbABcgw66QwUBdJo+gRMXAX2EMC8jgRo3iEUBuiWOeoYlijMdhDUFnV2MaIlFgUcBgjI7L4JLAQEB From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Fabian Frederick , FUJITA Tomonori , Jens Axboe , linux-scsi@vger.kernel.org Subject: [PATCH 1/1 linux-next] bsg: fix shadow warning in bsg_ioctl() Date: Thu, 23 Oct 2014 18:53:47 +0200 Message-Id: <1414083227-9922-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 1.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org directly call scsi_cmd_ioctl() with (void __user *)arg instead of uarg redeclaration. Signed-off-by: Fabian Frederick --- block/bsg.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/block/bsg.c b/block/bsg.c index 276e869..c2f90bd 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -921,10 +921,9 @@ static long bsg_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case SG_GET_RESERVED_SIZE: case SG_SET_RESERVED_SIZE: case SG_EMULATED_HOST: - case SCSI_IOCTL_SEND_COMMAND: { - void __user *uarg = (void __user *) arg; - return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, uarg); - } + case SCSI_IOCTL_SEND_COMMAND: + return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, + (void __user *)arg); case SG_IO: { struct request *rq; struct bio *bio, *bidi_bio = NULL; -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/