Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp295948ybh; Wed, 15 Jul 2020 02:07:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHCTU8M480Q8tnCAYKeHvC1Q/uvKfRvU4PcMyfFPYazo9V5o650UX/RVfv/lIRY2uAd6Xf X-Received: by 2002:a17:906:ca4e:: with SMTP id jx14mr5704224ejb.544.1594804061092; Wed, 15 Jul 2020 02:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594804061; cv=none; d=google.com; s=arc-20160816; b=o0mi1vyDQRnj/PxGsbu5hx8enBXl7kcN9byFoDBUQp1Ku+CARaNWcyEb+h4EA9NdMD 2uRgHzs16zIzFNvAhvBjoDoJzmMh9/TJPJn0zVngRSLclsLPzqra1ACvkB8IYGuAFOhA Lr/TJaerMG9FUr5bAIdEdcW04hOvhpt6OqtSk1g3gluLQ5hXJUI0IFaDAO4OM+QhgL27 Zek68LzOF+V1DuTAhqfzLF6YA3dZY3WchZrxYiOBPIIuM9gvul5KZwrRC2tjcEwHno0V F2X49Bt3aI/CJYF2C5sLJtUw0A1kvMGVFJ/mhpmOpb7icxCCWkOjEp6c9kLymOTWdJzW NhzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=B3ejnOQQmWzHP79lAAQ13IkNooDDg0zjPEA+y5ajSb0=; b=Nal2+MJrmjzFKa0D22PcLsmEj6s3UNZVfSFVWqe7a69h492MQmvS9oVGe1zMnuf3hs 6I8Xjxa4lVeOQ+lqGciC/sdDUc9VW/PdkDycVdVgdgYfQicXNsZcZ/mlEaM7FNUdEymh f7FG0kBd2souG+KWWfKWo94G/G8vBXogtZaiZtX3ry/cQgEOYg/OqCjXtYQi4Q/PmhHk u8QTotDpOY87/7P5IwbfZkVwM1iUOBSYfWijP6A2EIjwfN62B9rrJjFqkuDC2AJDFt0p IG4QXWykCAe8nzaqAZR0ilw3gOLdrEIasIxOwCPgVwiNu3XUmVsuhIRkEsh6OSSbasje gg7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pesu-pes-edu.20150623.gappssmtp.com header.s=20150623 header.b=tQqCdYlG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pes.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si1030972ejl.751.2020.07.15.02.07.18; Wed, 15 Jul 2020 02:07:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pesu-pes-edu.20150623.gappssmtp.com header.s=20150623 header.b=tQqCdYlG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pes.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728310AbgGOIap (ORCPT + 99 others); Wed, 15 Jul 2020 04:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726971AbgGOIao (ORCPT ); Wed, 15 Jul 2020 04:30:44 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A2DCC061755 for ; Wed, 15 Jul 2020 01:30:43 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id d17so1661065ljl.3 for ; Wed, 15 Jul 2020 01:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pesu-pes-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B3ejnOQQmWzHP79lAAQ13IkNooDDg0zjPEA+y5ajSb0=; b=tQqCdYlGVkLA0Ex5TiEzuW15QH8ndclmX2zY537HleDy175mergZI0Vit13wECLCfM uDQc7A6zQFdzqF6OFVTjKw1u368mN6BOaN6oQ3DROu1GyJFJxuucJQBveTlVNY5TSpFd 6hrrrf87ZbsyGY7gDGpjwKWUzgGDZNlddX5II8fUjxxV/VukTyr5cTiDn0kk9o1kNfqy Moj/5e49U6whIGBo3EdrG9U7hVd6E+VHyS6x/6CgNk4swNC83guuUZI4Yi9MC3dAdqnb G/bNwEZ3+nPMXVpxfX2Zm8+jKF3Ikzfgi/ckCQHp9HU0JKYRSnKIxV0ProUF271g6bff hqoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B3ejnOQQmWzHP79lAAQ13IkNooDDg0zjPEA+y5ajSb0=; b=IcpptBZ6PigiFSp3/ITS3I4B6sk7hewRaysMhRa6LFLcFLRGS/HiE7dQyai+8lIJ3x ykO/tgiR9IfQeNcyzyY64vQUij+EbxpTyiCj3OC8jT0aEIWziYSVWuYMdh1XOYwW/VIQ LjCWwcJNS7kfVNX0aBIkSEDPjCDpUggGOKAE1/UNRUF34TrygVjDjCrp5Rqh4JN+sNSm Khj8DrTI8LGSPQDnYvMbpnIar4XuUFOaysJlimKUHieqZUIu5NOHLM5jNTEvTVIPCa51 mTC/B2P+T5acJUbtiipQMiJXiagsOY0h0BIMZPReGXcpnytXqu1Da8VslUcR+m7fCga9 rCEw== X-Gm-Message-State: AOAM5337Tnxd8jW1OE4sESnKAWT4FebfmupuJb9e9Zr4dESYNMIHWnqk ZkXwbsQzC8XWIEj0fUGPwE5EAP+CjiIHgJPHE/3ong== X-Received: by 2002:a2e:9cd6:: with SMTP id g22mr4516750ljj.429.1594801841908; Wed, 15 Jul 2020 01:30:41 -0700 (PDT) MIME-Version: 1.0 References: <20200715044813.fww3regsgsbgyp7b@pesu-pes-edu> <20200715070842.GA2303720@kroah.com> In-Reply-To: <20200715070842.GA2303720@kroah.com> From: B K Karthik Date: Wed, 15 Jul 2020 04:30:30 -0400 Message-ID: Subject: Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int * To: Greg Kroah-Hartman Cc: Ian Abbott , H Hartley Sweeten , Al Viro , Xiyu Yang , Michel Lespinasse , Divyansh Kamboj , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 15, 2020 at 3:08 AM Greg Kroah-Hartman wrote: > > On Wed, Jul 15, 2020 at 12:48:13AM -0400, B K Karthik wrote: > > fixed a sparse warning by changing the type in > > assignment from void [noderef] __user * to unsigned int * > > (different address space) > > > > Signed-off-by: B K Karthik > > --- > > drivers/staging/comedi/comedi_fops.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c > > index 3f70e5dfac39..4cc012e231b7 100644 > > --- a/drivers/staging/comedi/comedi_fops.c > > +++ b/drivers/staging/comedi/comedi_fops.c > > @@ -2956,7 +2956,7 @@ static int get_compat_cmd(struct comedi_cmd *cmd, > > cmd->scan_end_arg = v32.scan_end_arg; > > cmd->stop_src = v32.stop_src; > > cmd->stop_arg = v32.stop_arg; > > - cmd->chanlist = compat_ptr(v32.chanlist); > > + cmd->chanlist = (unsigned int *) compat_ptr(v32.chanlist); > > cmd->chanlist_len = v32.chanlist_len; > > cmd->data = compat_ptr(v32.data); > > cmd->data_len = v32.data_len; > > Always run your patches through checkpatch before sending them, so you > do not have a grumpy maintainer telling you that you have to run > checkpatch on your patch before sending them. I will, Sorry for that. But this particular error which showed up after running checkpatch is something 'git format-patch' does unintentionally. It has been reported to the maintainers. thanks, karthik