Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1262174ybh; Thu, 16 Jul 2020 07:31:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRAxqxJDSXELXjxmX8P65W7SRA0Cvcpf/BEfBNXwnO/7bMXXFFPU1aBLJuFGqxRPXMBKzH X-Received: by 2002:a17:906:3152:: with SMTP id e18mr4136632eje.137.1594909870943; Thu, 16 Jul 2020 07:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594909870; cv=none; d=google.com; s=arc-20160816; b=YaGioh1JSc58delBkg7B4/lpH03jz96BMPd3kPr8MscJI63eCIZAG2FKUgAxdUmw0A hzZxGKI9DOOPFfVSOUI8a1ByUtHIIbRGUVmNZqUR1i6reTrkgKO/7L1Pg3geyclWrScZ T23U8wyHsXMyXpv7a+s5oOwWzJke19f9sZu1773TrW99U+kiY2j+63FrQIgLmwWQ6t9o BUScEK0w34+yZn4BGbfT4gBDEVUBDjZ6bDuFypZekROQZ528yu2Q8FRnLzjOJfrzoCR6 ybnWfS/teH5/KoGpS+EjM0DWOyEu/TjmufM9Y8ZRDvzA0Y3Pt4PX6yHfoKY+9+fgnhSa cBoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8z5jVj0dStGocFUNAEWnetN1Y7eNdK3d0AYJ2HaWYpg=; b=UqaGupWW3bDnT+KdMmcKM8gCtdpaOJQW14+ItFWoaU7n2YmRG1QoA3wyqvfcphgtoK NobIhQHX7OPexGEBqfV6/YJBob2TrvphWJFxTGxERMEbt5pwUBQ9tWGCpf0r5C7lbjNQ elkBKexT6oa2wFgHPEEz+yfCN3z6pz7aOVP658L5xtRvDozwHSNCQIyOrZUsVAPqK6rn 8HDFSNbcnwg6uKkEOxAK2KtFNlr3bplUxEk4/XHo/77aKp/Mi7HisJUxBDRHIWBPdZC6 u/mu1b4svzLZ+MVMH97eqWvSEfssSIoW/7NsLV9nuYHzE1wEQQPwNXsOH6GD2Ac1R5t2 G0bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pesu-pes-edu.20150623.gappssmtp.com header.s=20150623 header.b="obEan/jt"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=pes.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zh8si3547760ejb.305.2020.07.16.07.30.46; Thu, 16 Jul 2020 07:31:10 -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=@pesu-pes-edu.20150623.gappssmtp.com header.s=20150623 header.b="obEan/jt"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=pes.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728345AbgGPO2U (ORCPT + 99 others); Thu, 16 Jul 2020 10:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728084AbgGPO2U (ORCPT ); Thu, 16 Jul 2020 10:28:20 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC7A0C061755 for ; Thu, 16 Jul 2020 07:28:19 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id y13so3372835lfe.9 for ; Thu, 16 Jul 2020 07:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pesu-pes-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8z5jVj0dStGocFUNAEWnetN1Y7eNdK3d0AYJ2HaWYpg=; b=obEan/jtTHl0udOXHPR3KmPT44fbc0xUj31hTcpD//hyUGJUo81vOrGp3s283u40T1 +qx/p4WjECHNx0owRE2krlth8/ZwxMnWsqxm3kOLnSPpUXtrxBGdDPOb85rjIShvDPTY y1Kkvd6voK4s7xyTce53xenzUbxCnYvr5MnUF3r/QUX9tqP6CRCIK1WZvGZKnjURvtkD lBkPWQnsLJpo4BwQYoKapbk8y06OaXZGnBv79TP8RJuOOXmcgkWMZEHn8lfN9UGcu38a r20Hp3VmyT0dPMPN9GUdee/eU0E0Nu+BqwP2vGnJ0SXrosdffcUs8QdJhwJodn7wIEZ3 Qhug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8z5jVj0dStGocFUNAEWnetN1Y7eNdK3d0AYJ2HaWYpg=; b=d8f5FrmDOvAGU2ilfy707wxM8L1vgv5z0X0kG2j4keiWcIUwkoM09JYjRoBrA7RuBO +ZQTihQvY/Ccaiyzfxeumz8NaahfGWnODxDNwIVyQ3/1LAEWMiLn7nYqyhE7FIS9PNW7 p75L7mp3PI5RNZPAc95jC8W9BTIfJPqZWqTGzJONKKSJFt1OZlBA4KBP7h1m5cu5ju4U wDPlItrZbXd6bbdEz6gYWrRJnXugzE4c7Yn2PwAqVMWa9YrmMPfCn4jMPa/Ff/AKftRR k78zF20G2c/Jm45OgfE3YJ+wHK56NAB/hJsQFs3+nsOqubSyMg/7f8KJAC/WvELNMitJ +jNw== X-Gm-Message-State: AOAM531OnpKvUpjoytfZ5qz9Ut4lAoc7ehAsk9OEjtnd88Vr+Ha/86h6 8HxzcDad1g4+irFbLISxgRFk6oQNJ9P+d+k29T4FdA== X-Received: by 2002:a19:c797:: with SMTP id x145mr2250613lff.143.1594909698207; Thu, 16 Jul 2020 07:28:18 -0700 (PDT) MIME-Version: 1.0 References: <20200716141747.wewrnejrygosqhd5@pesu-pes-edu> <20200716142537.GA2176745@kroah.com> In-Reply-To: <20200716142537.GA2176745@kroah.com> From: B K Karthik Date: Thu, 16 Jul 2020 10:28:06 -0400 Message-ID: Subject: Re: [PATCH v3] staging: comedi: comedi_fops.c: added casts to get rid of sparse warnings To: Greg Kroah-Hartman Cc: Ian Abbott , H Hartley Sweeten , Al Viro , Vlastimil Babka , Xiyu Yang , Michel Lespinasse , Divyansh Kamboj , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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: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. > > That always goes below the --- line. I did not understand this sir, can you please clarify? thanks, karthik