Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1270331ybh; Thu, 16 Jul 2020 07:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh0KnQIOApU8c5/MRzIqLLc45+fJfNh4KOdYcMULwbHcHeMQi5BJFIlWRhIp0GXN9G7rCB X-Received: by 2002:a05:6402:b57:: with SMTP id bx23mr4600521edb.304.1594910579234; Thu, 16 Jul 2020 07:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594910579; cv=none; d=google.com; s=arc-20160816; b=ENEZcxe77NLcmdcjYc9LjbQU//qnZVp64bvdLQcKyZg+YmamY97EglqviFh8L1rhIp cLBR+cPolmC9r0l6H004Z5qm7sZIDqF3Bh3s31hHLmeynYbDUEpoXIn8mBgbsji9Olxo ksVjcGUi9XjnErZTtWCucgChl+/PJx7HvrF6Gita9UBB/JxZgaSeN/mwiPJBB2ZiYUmL EVQbtvv+rTk+EZdQEByMWIg5CF6VQyxrmnBIDoaYr83e6PHEBYUoQNDgACaG+hhjjkD1 tenCyM61C+otZSLAcORXXGGQu4cWKfb9/Be9HHjmhosZehAJqa75Lq7RpVbbQm6XjbRD Yjng== 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=eJnNPd9H/6J3Rwu7/dpLChUJ9iFwhZrZap3R/5I4OgM=; b=UtyN4+hC4fzTH7efc9bDW251uA+lV0U8vYnq6I8OTeI5GobG//Wnx1oCseDXJQl/d5 SfrNmCYlBCU6B/ZVOkxcXUODLaQ8k+fdU99KwLfAbBUnRh4rUJZWUhjY1FA7Ad20FUQJ eOEj63gPAZE0fp3HfRHh9ujWdWzsAfCZ75V1vErtyMgPLJqLJNGh0Ug/UQMfn3ZViiiJ JkknHOl69EWSvPZ6+RaGZnpRRT+n3jZKDdOabL6zsdnhr4XW/K+3gZqpUy0o2wop7F5g UQLnz7zda2EkI8cDX5WSHodYd6p+oCg30VY90YL11FCA20ln6f99eHaDRLP1wVxlsODq fn9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wTqQV6KU; 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 f14si3252025edm.269.2020.07.16.07.42.36; Thu, 16 Jul 2020 07:42:59 -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=wTqQV6KU; 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 S1729093AbgGPOj6 (ORCPT + 99 others); Thu, 16 Jul 2020 10:39:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:56378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728589AbgGPOj4 (ORCPT ); Thu, 16 Jul 2020 10:39:56 -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 921A5206F4; Thu, 16 Jul 2020 14:39:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594910396; bh=8iw2omV+8rcbIE2y5sg+rVi5KY6cy+c5PEsFn625WuY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wTqQV6KUMnjpRsu1sz4//WWIEsxgic8HNIIfQe05WfEVGsAvcynFS7DsrPSkizuIB MzjhcxIOYPk1cDld8mdlE/11Pi2/xcEneZ9IDPOckuftgUI2K2hKFrWyHzAR8Yim71 nPKtVOpo6CY6nidbg3xc87XIG6JxJWCx55F8urts= Date: Thu, 16 Jul 2020 16:39:49 +0200 From: Greg Kroah-Hartman To: B K Karthik Cc: devel@driverdev.osuosl.org, Xiyu Yang , linux-kernel@vger.kernel.org, Ian Abbott , Al Viro , Michel Lespinasse , Divyansh Kamboj , Vlastimil Babka Subject: Re: [PATCH v3] staging: comedi: comedi_fops.c: added casts to get rid of sparse warnings Message-ID: <20200716143949.GA2230084@kroah.com> References: <20200716141747.wewrnejrygosqhd5@pesu-pes-edu> <20200716142537.GA2176745@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 Thu, Jul 16, 2020 at 10:28:06AM -0400, B K Karthik wrote: > On Thu, Jul 16, 2020 at 10:25 AM Greg Kroah-Hartman > wrote: > > > > On Thu, Jul 16, 2020 at 10:17:47AM -0400, B K Karthik wrote: > > > fixed sparse warnings by adding a cast in assignment from > > > void [noderef] __user * to unsigned int __force * > > > and a reverse cast in argument from > > > unsigned int * to unsigned int __user * . > > > > > > Signed-off-by: B K Karthik > > > --- > > > drivers/staging/comedi/comedi_fops.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > What changed from previous versions? > > As Ian Abbott said "Minor quibble: the reverse cast is actually from > unsigned int * to" > > Hence this is a change in the commit description. How was anyone supposed to know this? :) > > That always goes below the --- line. > > I did not understand this sir, can you please clarify? Please read the documentation for how to properly version patches, it's in the submitting patches document. Do that and send a v4 for this. thanks, greg k-h