Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7125570pxb; Thu, 18 Feb 2021 02:01:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzg1fwsZ+XcewH/9TVqXSENAdY1Jd867QPO97pLto+8tryGFN5YenzCkXgRj+736CD8q5VN X-Received: by 2002:a05:6402:2683:: with SMTP id w3mr3338246edd.378.1613642469135; Thu, 18 Feb 2021 02:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613642469; cv=none; d=google.com; s=arc-20160816; b=W8fdx1rxW6MmWkvKTPaQFb5WRIQUEc5ayCB09C1rgm+UF0xP7mS/DQQhXDgjgMfhcm uEePY2CD+OUyFGmYOW5aqDFCriMb1qtYY5vfPI+vA/FBPvLJVxJVg0jA1qONyfH23JGI HMSZneGHiR2m/OvVBXC4ezmbWcB+uN9cF847bGTPbrlp/EmI40Kz0j/rwEobYA/cbUfg Ni57RFWlltVxgxjYkVgn9AwSYHGK2PlQsXhzP+8No5znS3TTrUmugvmFKsOKe5P3fHME yL6H8lyXoTYHjdOjsD55GG+8yjYizJzXLU8A5PoNRngtnzSX/yo+Pbnr9bFJSVxF/+it wacA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZXmJoWMTsUrH2ZYtYp6YioWvsZMFTlZD5M/gphHqrR0=; b=o7FaKvWrJsL5ma+SJaPIPdzSUP7djs+99UqO2I3CItl9R49Iy0+g20Xtepoz5YDRvD rCpTt30+V/tYIh0aTeW4kuHxhFfIizj1WMi1ulQaYnfUMSLIu/zEZ19B9B1NtKKo7iqO qg35bMfHMXftV0cDlzEDSoZDxLt65a7mzu+YK0bYdYAPa9NifsV5xklXp+QvsMaSnQXJ Qy2TguvE8KkmBUTLVN/HmjsneLWdIto+2S5GSfJajmIQj40Reu9/pGVghSdIwUiKxXjw Y7v1z8YryoOHcuhrPuw4ZOy3QPr6XxwiHRTkNP3GPQrXOthEu3AJ/YQH2gZ9g/K8+GGq UU4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hc4WfW2O; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si3331408edn.302.2021.02.18.02.00.45; Thu, 18 Feb 2021 02:01:09 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Hc4WfW2O; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230340AbhBRJf7 (ORCPT + 99 others); Thu, 18 Feb 2021 04:35:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbhBRIZt (ORCPT ); Thu, 18 Feb 2021 03:25:49 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86F57C061756 for ; Thu, 18 Feb 2021 00:25:08 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id f8so842539plg.5 for ; Thu, 18 Feb 2021 00:25:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ZXmJoWMTsUrH2ZYtYp6YioWvsZMFTlZD5M/gphHqrR0=; b=Hc4WfW2OwdvOfAd4uK/tsJFBw9Y3KnhIHI15RQioABsLIYYJ/F0keIOX4rFXdiTdPA 3oF6krSEpCdiFEoF+R6hRv6c10f0Kh77dxSGhGkVvAmNWNnSDsRhtpTX27g6SUtHMZ1D 9AEyQTMzteT2PtGkgLjLV9v49y316FbgxGlQzyfRJu+b9PBsYucAf2fIHMBjOZ/G9EbC CGFUXXJ6Lc7VnIG5CDYG+TSwQCi6gS33E+k2WEwpodQP/FyPSC2N/Com0PD5W8xd1003 8bjep+nikHR8OdnsB1NdNmPGDMr+B97t3gnaARMA6P7jCmrSRLOrp/7jqSO78BWGq/YN xZVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZXmJoWMTsUrH2ZYtYp6YioWvsZMFTlZD5M/gphHqrR0=; b=grG5j0ZnqLBYUILgmf26/cw+RkdyfJ5LCwAHrvgRYjrLo2B8Go0qxL3RupldZKZlji BWhPyIVTjyJpfJia2g/vzonMFXH+MrRRyLYLw0rDBA9l1vU0qq9jAgQYvAxELwweHQBF QkFdtCw6N3R5rF2zDnaeWc4Rtgv2NzEZxlN5B5vmw/xk6eZJipOXuYji3XkjSxLKl0Zl 2EmUyfuzPRrQzmK5Jj5NRbQnjNHAHyiuvv6OPWYPiM+4e7ERN7bAJVzQfK7dLc8B5d4z weh2cY3k7uQfHLNvZ38qsEgoPQy07YWXZ04stLDWERj2iLSlKoDSSxojxrFT9Xr916wx NNOA== X-Gm-Message-State: AOAM530aOAVgZ7cygx6+TKAKtTGKMWuQYtwjW37fzB4h5lI7frn4IKYo CQCdEQmDHcGSZ+eAexJnUj4= X-Received: by 2002:a17:90a:de97:: with SMTP id n23mr2973053pjv.165.1613636708080; Thu, 18 Feb 2021 00:25:08 -0800 (PST) Received: from atulu-ubuntu ([27.61.13.238]) by smtp.gmail.com with ESMTPSA id l11sm4602059pfd.194.2021.02.18.00.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 00:25:07 -0800 (PST) Date: Thu, 18 Feb 2021 13:55:02 +0530 From: Atul Gopinathan To: Greg KH Cc: abbotti@mev.co.uk, hsweeten@visionengravers.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: comedi: cast to (void __user *) Message-ID: <20210218082502.GA2257@atulu-ubuntu> References: <20210218062839.32650-1-atulgopinathan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 18, 2021 at 08:10:28AM +0100, Greg KH wrote: > On Thu, Feb 18, 2021 at 11:58:40AM +0530, Atul Gopinathan wrote: > > Resolve the following sparse warning: > > drivers/staging//comedi/comedi_fops.c:2983:41: warning: incorrect type in argument 1 (different address spaces) > > drivers/staging//comedi/comedi_fops.c:2983:41: expected void [noderef] *uptr > > drivers/staging//comedi/comedi_fops.c:2983:41: got unsigned int *chanlist > > > > cmd->chanlist is of type (unsigned int *) as defined in > > "struct comedi_cmd" in file drivers/staging/comedi/comedi.h > > > > The function "ptr_to_compat()" expects argument of type > > (void __user *) as defined in include/linux/compat.h > > > > Signed-off-by: Atul Gopinathan > > --- > > drivers/staging/comedi/comedi_fops.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Is this different from your previous patch: > https://lore.kernel.org/r/20210217165907.9777-1-atulgopinathan@gmail.com > > if so, you might need a better subject line here, and for that one, as > they look alike at a quick glance. > > Which one goes first? > > Can you resend both of these as a patch series with better subjects as a > v2 patch set? Sure! That subject line was a terrible result of me trying really hard to make it concise and fit within git's recommended 50 character limit for commit headings. I will make sure to prioritize on quality more. :D Thanks for the feedback! Atul