Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp295625ybh; Wed, 15 Jul 2020 02:07:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2UNDeTT9Xi9s5JQwqvL2TKCBeP13IovbnNCPA76NXmZbP+odRZP4nuDUBLjaomYgQJB8/ X-Received: by 2002:a17:907:7245:: with SMTP id ds5mr8790750ejc.67.1594804029901; Wed, 15 Jul 2020 02:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594804029; cv=none; d=google.com; s=arc-20160816; b=Y2NEthbsgrJywDSPjKyzq3v+kWtRu6TVTu9qyOm/EqNwYKKY1zD5twvuvxsII9USVp mpH1M/M0x+qxZofCZmTQz/R3oJ5IeGhRpRSKjFkg/Fag/rh89PU5JnpnLun+zFsKjSvG CVqHUarRIAdaKxTey/lwQFflaNz/M89A+jZkWq3q72cUtEwvrWnKwwuF3pyKeogc1qCM /2akAKeUaHoXp+BsjHJIvOs1ANZb42GABthFpKqNDVqIiXIc96zHIOx5IIxN6acWwPuM c73QVRzjtIfp68HR9HM/ZQB8s3Weaas8o1ky0T2xb8k8Oo/l0DrV6XFfPGazbi2R1tlG uz4g== 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=wWJ7q1umGG0Grsig+5yviLA+MOGUVndAQ9f5bR2y71c=; b=NxnvrO8lzPsc+2kmF80GMFoxxJuoFPmpY35SivpSMxWjmL9sHe5Ms3o/k8ZI0NQBo5 LSUaHry3GWEv9b3LXj7DA+Q9nymcZWbWWrGokow9d6MlX/LtW7I3xIo/MnK9AirJZ3Z7 67976IKmzeCqi0XpNLcdSz7qKuHyBquHA5x/RqoghLL8frOEb378jBY5nUqW6VS+SPq1 yi4Kwcoc5qUMrRlqmvxy+M++KEdHgMGKxhac3Du7ZKRb05azY3gpzNfnkZfTo5x7vkdd ECZpJziAACwG+i/EflXCFUU9RT4wszfUCnrVvqR4MYbvot3MF88+JovpkN7bnGzwEVde rLAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QDgFNGtz; 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 k5si889736ejr.359.2020.07.15.02.06.46; Wed, 15 Jul 2020 02:07:09 -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=QDgFNGtz; 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 S1730074AbgGOIbt (ORCPT + 99 others); Wed, 15 Jul 2020 04:31:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:39304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728626AbgGOIbs (ORCPT ); Wed, 15 Jul 2020 04:31:48 -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 8DBF620657; Wed, 15 Jul 2020 08:31:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594801908; bh=yiJirQWg9zviSkJbXACuIur4MPrAwCoUUHNi4tNnYFg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QDgFNGtzY6hhT0au1lwQAZoZYeOutZO1dNWi+TzklJXkHm0K8yoe8CgBFrF6bZjrt x4icQi7Qn1aOHEg5jsxqTU0ws/FI8X7zj/XgTzdFzIGkhpp4tixfQ0opMzxHQVz4kt kzzAIXM/piLhm7hOZS1O6DVm3C8g4z6KyBpGxvTQ= Date: Wed, 15 Jul 2020 10:31:44 +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: <20200715083144.GA2716443@kroah.com> References: <20200715044813.fww3regsgsbgyp7b@pesu-pes-edu> <20200715070842.GA2303720@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 01:56:45PM +0530, B K Karthik wrote: > On Wed, Jul 15, 2020, 12:38 PM Greg Kroah-Hartman < > gregkh@linuxfoundation.org> 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 the error that's being shown in this patch is something that comes up > on its own. No it is not. > git format-patch leaves trailing whitespace in blank lines. It does? Where is any trailing whitespace here? That's not the issue. > It has been reported to the maintainers. It was? Where? thanks, greg k-h