Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp198221ybh; Tue, 14 Jul 2020 22:55:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy69l507xEfNM1u3QlM54biOQbqxCfYxhdbEcFwSWZBKmeGGCEmwKMZW0JoUq+BMNnvuZ7I X-Received: by 2002:a05:6402:1655:: with SMTP id s21mr7814152edx.289.1594792556007; Tue, 14 Jul 2020 22:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594792555; cv=none; d=google.com; s=arc-20160816; b=Vo9YPFb7hlSxy8Tykq8q/SZGZqSW1V/H+1n8h5BRQ/aCLw/BQkbw/fCi7c375MeceO OFm4TzFf6mZAlvw6opkbX/H8Us6aMNKEARmUBfiDwnOgFn9tHFJ9Rn2+rOsHInilg6Dy SdODH0u8k4Msi+2iNWfgVsfans+ZoU001mKPbMHYxhsInvUlMA5Ap9DRucC4Auyf1oi8 qvkwgZ36KBr0bZGq6roVE77bsEg537IHSncF2Dd+2MM6dNbnG3T53UH5mNwZmPwyvwTg QKIZT4YSKyZErkO7/4b0BrIWLJ3zJ0+cDi4pLBkedU7ZNPos4wKA8RfeeptKrqwT1Hp9 KkAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:date:from:dkim-signature; bh=Ucz8GbnPJF4zpNltFDDoIlnK5RPRDiSbEKeMvIDNSms=; b=Oc2OwiB+2y+WBT099JTzZ1JGeZk1uq5RZnknmsqC5jRmYM29fbfqAD08dTc8FZI9rK xfEQcryh1eEIF/PteRcVZgGFZVBIwYtMLgkA/LLpx+KLU+wWOg9uNZ1zlDq6952pZeB5 u407k040kVCbSQ51f0YMsTB37ltbsIh4wD41o4BwAtG0ZCpcayG78BwBlM9Ua/KVf5Iw nnKP9LKJfu1G1+yomduyw12Dntz3GS0LwyyN+ixsSemM8IbFKmGr6lhCvTe8VK9i4PJL u5HDa1CZ4oiU+1bEm9c+0B+ljHHVZLHFJXLC+zIvgcBNYAl8a+Muv4WAKqvaCuw0KLIJ vJtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pesu-pes-edu.20150623.gappssmtp.com header.s=20150623 header.b="G/qxY342"; 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 md1si578370ejb.749.2020.07.14.22.55.33; Tue, 14 Jul 2020 22:55:55 -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="G/qxY342"; 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 S1725823AbgGOEsV (ORCPT + 99 others); Wed, 15 Jul 2020 00:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbgGOEsU (ORCPT ); Wed, 15 Jul 2020 00:48:20 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A74E8C061755 for ; Tue, 14 Jul 2020 21:48:20 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id w2so2355042pgg.10 for ; Tue, 14 Jul 2020 21:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pesu-pes-edu.20150623.gappssmtp.com; s=20150623; h=from:date:to:subject:message-id:mime-version:content-disposition :user-agent; bh=Ucz8GbnPJF4zpNltFDDoIlnK5RPRDiSbEKeMvIDNSms=; b=G/qxY342vJe0TGREY3YmbBetGnnrWnYSMmwtMiu1E1yW5Q5crieV0sU2SkdHMzW0Zm 9gIEsyWvRKIURZHMCvBXhuhAnKVtiX3Nl6+tVZuhs73soWS77lUp9wMeNlf/gZ9sjsKY RT1WWIZNFYIH6AXDEt3JQMg7sNkbjS2JZTMfNs3MmC2jgrWUP5G3CqGtbL41Ic3J8yM2 6T7WS5EiY0T/Nyym6YQOFYay/46bTJdcmG+yAawqz716GKwD9n0Ca2LHFGC50ukOvkiD zrOkfVX+Fiu7EaBNQnk0qXc1ZUNfQZac9zM0+2rnkg7QDV0XlNFXtwW1k6aSlajzKNwV dlEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mime-version :content-disposition:user-agent; bh=Ucz8GbnPJF4zpNltFDDoIlnK5RPRDiSbEKeMvIDNSms=; b=IiqXYkRheWaO52dPop7YdEc0q1QY/P3HqoZHj/UJl/J52CXFvBPeDUdLN9ntUZ7acN eftccM2ahHKQKzhemkyxzu6t5z2irD2TFDZ0AwKl1By1haROkIBP6cpWBlnLIy9Fh7Yf HISLi+QZlnMK6FwtZZ+Njs/hlZbZdWQ2UxT2E2eiSyujNA4l/ErhUR/z7CChkLwv97lc 0k75isQq83J2TKM46thBUPxUBOKDsombZ1S/mcUsHupVNQW4CH0/SqBeiQ2NdgjZ53Fy umskK/DS6mlcfngFt6724NK0tKoTIfpjGwaxq87/Y6oW3cwgPaffeu5yL3WsRo8u0VQ5 XRAA== X-Gm-Message-State: AOAM531kHsMgll3e5hQOHFVmOLz0yO5PXoQB2enreU0clIBP0wupnT7v S+WfCRKc106I9a3HfelowbT9WA== X-Received: by 2002:aa7:9ec2:: with SMTP id r2mr7263307pfq.265.1594788500190; Tue, 14 Jul 2020 21:48:20 -0700 (PDT) Received: from localhost ([2406:7400:73:524b:c130:77cd:11f8:53c3]) by smtp.gmail.com with ESMTPSA id a11sm584795pjw.35.2020.07.14.21.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 21:48:19 -0700 (PDT) From: B K Karthik X-Google-Original-From: B K Karthik Date: Wed, 15 Jul 2020 00:48:13 -0400 To: Ian Abbott , H Hartley Sweeten , Greg Kroah-Hartman , Al Viro , Xiyu Yang , Michel Lespinasse , Divyansh Kamboj , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int * Message-ID: <20200715044813.fww3regsgsbgyp7b@pesu-pes-edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xc3ogj6of4zis4qg" Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xc3ogj6of4zis4qg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 =3D v32.scan_end_arg; cmd->stop_src =3D v32.stop_src; cmd->stop_arg =3D v32.stop_arg; - cmd->chanlist =3D compat_ptr(v32.chanlist); + cmd->chanlist =3D (unsigned int *) compat_ptr(v32.chanlist); cmd->chanlist_len =3D v32.chanlist_len; cmd->data =3D compat_ptr(v32.data); cmd->data_len =3D v32.data_len; --=20 2.20.1 --xc3ogj6of4zis4qg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEEpIrzAt4LvWLJmKjp471Q5AHeZ2oFAl8Oio0ACgkQ471Q5AHe Z2pzTgv/bcR7Jh7Awo66b4++4R0Rse5QDht5KJ4JwMALghXs0bUeKiIILQJ42zDO wmpv/4hNFndKAB2QOWbE8gdTV/MQCLlWzOCT7g0o7JMk9DZfa6ZQJsRQ+bcChj7c FLEOXx4kTuX7TY5YiEy5v8xGv8y5CScIg3t8ZndHb11Rem54nyE1d6EkdNBT6jfO BDAX2eLv6AT68brxcIUYpj+ZN1Ak0a1krSmfeVqXirf8m5taeOdf7FmZwU35VwjY wS3+U0fvjo+2oCnzsUYEmhNbA99fZCuOk4ZnvIvnHlvyWmFaP40Qa7hiSZmYwpaA vlQU6ugQ41RsrUVmyuWXqa4k7oo2SsaSDABRzEUrjgQzunNQOJQ+lFQEoMCUBi5u 3qtPnxMqe89qMV4BHhZOBzT9NRu5n6h5nfPKOwPC2eaU0kzJPFDeIzDsBScp9neq hm39BGXzIZzWMxhZcHWD3XuBtR/WxdLaSjZn5Cl0Xsp4s1QfGBf9pjgOntbUC/JC OjTP/gje =WlRW -----END PGP SIGNATURE----- --xc3ogj6of4zis4qg--