Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp236618ybh; Wed, 15 Jul 2020 00:10:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxks0zE4FGMc+wZ5dcDS8brfoLxV80hyGvk82wnh2/nwIQRGmck7WTL67g0qt2xSOT91FKL X-Received: by 2002:a50:cbcd:: with SMTP id l13mr8021439edi.384.1594797027558; Wed, 15 Jul 2020 00:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594797027; cv=none; d=google.com; s=arc-20160816; b=ZRNZ0059iWFR0W5aFCVrAe0PKum0BX3WBhkZ68U0dqyRa+ZlPqiqYsiDdeoMbB7MWc 944fZa7I5eXrwVr+oRbbOImLS2BrVYfePJVBTAUefxMElLKqC9tFCaoR8NBK18Tt/dC4 +Ssvj5wVKT+/cfTiZiYSbkFtfzucf021qIvM9nRXiEdQmjGslELGuiEK/66eBeH+pORk PItgxmwm7k4OIUCqgdWnU+iLfHDfCu81DRhlHB3/x/8+ufaqpXUzwSJdRmsqedQOCj0O hV1MeDbD8Q43x1FIe6PtPQmUYlYwwhYUFe0tYS4EKX7dtJPxqE3cl4oRhfTGtNLVHXGk 5r1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=xDqBz3XTlP+GtyizlgGh+FWlc3Cjd1NSJJ7EHJ2vMl0=; b=c9SS6CE9tZIEoXdjg7RkbW7pSymXOZJ8xtHFOf5GNIMSxK2h5suB8TOc1oUWwUZ1rV EmC2zmMz79YgHGsCu5FfD7K9PfLHZ6geBcCGViUE5L9ovzA0xKqm1G+kXCdfeKjlEK+n kxCKUmYOrMN4ZpFHIqpALFZrt9ptUKFp8AAdgLzyZw2sb2hffq//uTp6RYjocQM8HU5R YhHTA2n0d44fodKr8gGvxTjJ1fELUZ2VMlzqpwb3pCIUqk9CukHrvbbUxPtnpJUIl6dv hwdOd7ygL3G/I1/KphcNPkFohy0C+BzIHDgbc9dev2utCfdndmDBAR5YpkmpQoRxbPUN y/IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wR17Hza5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e4si775080edn.100.2020.07.15.00.10.04; Wed, 15 Jul 2020 00:10:27 -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=@kernel.org header.s=default header.b=wR17Hza5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729064AbgGOHIq (ORCPT + 99 others); Wed, 15 Jul 2020 03:08:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:58418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726212AbgGOHIq (ORCPT ); Wed, 15 Jul 2020 03:08:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85F1B2065E; Wed, 15 Jul 2020 07:08:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594796926; bh=cd7EBK6ejhx0Q0/uzC7b76QRiDZdxfcuOiocUXAovWo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wR17Hza5UBzs+eLV5QKBnPYd6OqgPBHHqOn8+UqnmwCRHq/Cg7a7sjTC6CWtdmW/9 y2ZD1tOxOTAIK0XQlBWAdtDDyBqyR1ETDZ3uXH2SgJA41vJ2wo+Ym6kXWqIVUxqUfN ZCsnqaKrr+LlyfhO/lLSIc8CzhtsHCBBzA392A3s= Date: Wed, 15 Jul 2020 09:08:42 +0200 From: Greg Kroah-Hartman To: B K Karthik Cc: Ian Abbott , H Hartley Sweeten , Al Viro , Xiyu Yang , Michel Lespinasse , Divyansh Kamboj , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: comedi: comedi_fops.c: changed type in assignment to unsigned int * Message-ID: <20200715070842.GA2303720@kroah.com> References: <20200715044813.fww3regsgsbgyp7b@pesu-pes-edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200715044813.fww3regsgsbgyp7b@pesu-pes-edu> 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 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. thanks, greg k-h