Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7082752pxb; Thu, 18 Feb 2021 00:26:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwr5PrLF/TtKqhAtNMj0OE7cFdMLWWB8T3pqj/9UqpChdcdWPprVlrC2SKmmf2rEC41PDXh X-Received: by 2002:a50:fe02:: with SMTP id f2mr2994750edt.173.1613636781031; Thu, 18 Feb 2021 00:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613636781; cv=none; d=google.com; s=arc-20160816; b=OOlI5aJ9+kQIydyAXS2TxmKfECYkjQohaWpnt8nKDGb1EH9ysl8Btpe7YU8hmulxix dbckRmAYj3o7mKYXUHOHQjjcrn1a9lu4OBpOpBh5U2OuRopRjHELxUBaGP/dyKWGrZpG PWtDHIlZRvfnpfXUrx+zItf1ZtCr4ua/l2v4+hNoO/WjHLMPV2ouJk7GeCsjIu/S3bTx pzHQWe569D9sb4vCF9sujsC5AzcwJKzsrYVeDAEVlSCrkhJjDhohuwm2WU/rU8ZhDAXH VbFwcAKOszODpdAnHWS4XVNLQw0o1QZ99G/EvkNtgNAEz6tUhjpVVYQwKZA/3C4kRwJ0 XbiQ== 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=7hXDihGOn+sFvdy+R/pBlNz4ZjrPNWkS6Q+19DXCVE8=; b=aZpATJ4fwMtQHo2K2CKcMc887gaOA+QG3OLvqL6lfViH997662BpUC/yY+ZaALnzdS JA25UCvgv6M30UobIHwwhQFILWT2w/nBStZIOC8n4FiKyS7/YorroeWDBKqTrMRzLUi9 /yiWQhEK6CFweDN3UW6/SxbdP3lDcF6ZD2RTnbkA/qjx5s4sIqxPbnvaKxAf382Wq27C /kG3DqfaK6Uv+qwhSzvYVx4HLgPPvjIuAvM6beZdVuWT+I4UW/DBPzQ12Q2uC8q+dVT8 /rViZwyLz+rAsIcVVq2RgTon1DpWU7jmcG57ZoBYTSj6p3mTES8JFNAD8dRqt9v0aGK8 77NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VCWvovz1; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si3796648ejg.121.2021.02.18.00.25.27; Thu, 18 Feb 2021 00:26:21 -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=@linuxfoundation.org header.s=korg header.b=VCWvovz1; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230095AbhBRISj (ORCPT + 99 others); Thu, 18 Feb 2021 03:18:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:37124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbhBRHVB (ORCPT ); Thu, 18 Feb 2021 02:21:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CBC7164D9F; Thu, 18 Feb 2021 07:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613632232; bh=V0ObLKL8xMIPQWZ+Z7mEwookFjTJoIGtHvN+xm7+Rwk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VCWvovz1y5axANTN4LfJQ8h4mwNxCRNI2xggDWg3Aey16+TaiWX7tCnMcYQfKvN/o HfqLvm3frRgElCkITrRVi/1LkZrwaAWW2nOXPHjW1IZ7Hp0G36NuA86sZg9P9CtqKB 87JPZv3o63E7vCx0wyGKHDmx3bYS9yS8s7LI2JIk= Date: Thu, 18 Feb 2021 08:10:28 +0100 From: Greg KH To: Atul Gopinathan 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: References: <20210218062839.32650-1-atulgopinathan@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210218062839.32650-1-atulgopinathan@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? thanks, greg k-h