Received: by 10.223.176.46 with SMTP id f43csp1602362wra; Wed, 24 Jan 2018 20:15:12 -0800 (PST) X-Google-Smtp-Source: AH8x227ZXa+vQZ+UuDmssLFCmNulFwX+IDh0hTLCXbgxgsv8VgReoBoXA7BG2a0pY0Y7Voa66Y8J X-Received: by 10.99.97.202 with SMTP id v193mr11881558pgb.84.1516853712313; Wed, 24 Jan 2018 20:15:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516853712; cv=none; d=google.com; s=arc-20160816; b=ac0RNsdxkVciovugdJWBGrRcLWbTxoBY+KV7axWkQEVCQ0vFt3VPqpIa1/aBD+xSX8 KhA9uif13hiz0lL7i9hpAvT+4+VpkEuvgAi0AWYFkd7v7i2sMNuF0jsR3CtrNzdX122d zBydOXj1ouQ6ZvBW4CopxErSivKTIIA1/li/IvQK7Bo7bLQYv6bgXkpGhrregUU29Vkf AAWy7l6xOBY4om3T3E6HsLUMLIbmPls/CDrTlqzK6KXBB8XO5CdGnZQt6kIFZWHJnXqP bDd1ZNRYNOA8USvwGzZdl3TzDKZ+M74Ix7xxpO9ok8MXQ5nntsktnliLkHkZgfVbybOx GOjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=P+9NyPG6PXXDiSlz51BxfaiEqswmxI1GvNqo0MjHHM8=; b=vc3c8WAyZ57qeJa2bqJBVifkREgC3J0x/qPisQ7R8beUmDuacGUcQHkTZUdbem+eLS S/yJlVHigB/RWqJiX1g+nlzrir5qnn+c/3Gs6y3mDqOZHv2vdyTWyVLktaCL9T309Hzh d+PKyA57KYCH1+DLb9FufWOtj9uii7K/4tyQScZJ1ci548CGJ2nnW+qtW0L3ZqADXYTO P8K+gbjD9HzAxd204w1Tu5BqtRELPVC+wg+CFHgTVwUpKkV/4CwaVFlGQ66CJ4r5XfGx x4eOv29LZbbQ4tFJxgAYz13HhAAtEMedCCFcwYARCMWyk4RsTxaLnnnbW4cIgWtmmOBG oUcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=aX6E6o9e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8-v6si1299654pla.105.2018.01.24.20.14.58; Wed, 24 Jan 2018 20:15:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kudzu-us.20150623.gappssmtp.com header.s=20150623 header.b=aX6E6o9e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933476AbeAYEN7 (ORCPT + 99 others); Wed, 24 Jan 2018 23:13:59 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:46335 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933218AbeAYEN5 (ORCPT ); Wed, 24 Jan 2018 23:13:57 -0500 Received: by mail-qt0-f195.google.com with SMTP id o35so16090703qtj.13 for ; Wed, 24 Jan 2018 20:13:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kudzu-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=P+9NyPG6PXXDiSlz51BxfaiEqswmxI1GvNqo0MjHHM8=; b=aX6E6o9eGwTleat77XNKPJW+mHW9Fwl896Sb8GLpd/cLKazSmzVn7SklStntPY800Y jkjiDmpzJf3Kvk+HFLvfmjNolrOQhMUJ+adqDHkwzFgDAde7NxMZc+IuDIcUfoh5VTIC hlSwJpxW6XMkuNCNKnVVjTgffhQQkgFxiPReyxgrXEbX0GnqKC4sL1ZH/fhH+N6vtaRW Kv7WCb7kWvurwpELuCff5gPc+pRiiI5ePwz23enjKQ1WkwKbbDRHuzR7RdZ5v9Jh38OY RWLqxP8st84JiZO4UX4oDQ8hfeUzO7fYJBTOJKF1jAPhfgYRD/H/v5BtSJbExRTHqtNO ta0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P+9NyPG6PXXDiSlz51BxfaiEqswmxI1GvNqo0MjHHM8=; b=uJ1G/fEXbG1zIWcrU5mxjjt8F2LzlP+w2L9M31+BewQXvU3HK5w8ldGU8UdeaaTpgG jEyoHd/mi7W1Dbe/fnXkk11B8htOHTtcfpc2Ny75fUdGeOUO7XNfPws80GSob8u5P706 phSUnkcy1SwufA9uFWwpx1q8ExC3GtfsFaYBcv4EyM9mtIGC28n+KqNsK+/x9JkH+v2G +DpjAQtKWgkFISkY3ADc/jrsczysKkNH4cPk7uSlZUwrzK8y5Lk9aO9xw1XyLYQiJHbb YFiZQHiXEE3sSrlHfk5UYgBQUboi8rIBoJxdi0v4hwZu+01r1IxdWDm8gHU/dvZgWJnu UIIg== X-Gm-Message-State: AKwxytep2LPscH2tef9EbRJy4eBJLb+l4rqRarLYtLOv8o4djO35i8Uy Q8X9lJhNZ/ZYZvmY2kvXQb5TgA== X-Received: by 10.237.57.231 with SMTP id m94mr8080459qte.17.1516853637149; Wed, 24 Jan 2018 20:13:57 -0800 (PST) Received: from kudzu.us ([98.122.141.161]) by smtp.gmail.com with ESMTPSA id l24sm3323230qtb.65.2018.01.24.20.13.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jan 2018 20:13:56 -0800 (PST) Date: Wed, 24 Jan 2018 23:13:54 -0500 From: Jon Mason To: Arnd Bergmann Cc: Serge Semin , Dave Jiang , allenbh@gmail.com, "Hook, Gary" , Sergey.Semin@t-platforms.ru, linux-ntb@googlegroups.com, Linux Kernel Mailing List Subject: Re: [PATCH v2] NTB: ntb_perf: fix cast to restricted __le32 Message-ID: <20180125041353.GA9887@kudzu.us> References: <20180119173044.8013-1-fancer.lancer@gmail.com> <20180124074845.32125-1-fancer.lancer@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 24, 2018 at 09:07:26AM +0100, Arnd Bergmann wrote: > On Wed, Jan 24, 2018 at 8:48 AM, Serge Semin wrote: > > Sparse is whining about the u32 and __le32 mixed usage in the driver > > > > drivers/ntb/test/ntb_perf.c:288:21: warning: cast to restricted __le32 > > drivers/ntb/test/ntb_perf.c:295:37: warning: incorrect type in argument 4 (different base types) > > drivers/ntb/test/ntb_perf.c:295:37: expected unsigned int [unsigned] [usertype] val > > drivers/ntb/test/ntb_perf.c:295:37: got restricted __le32 [usertype] > > ... > > > > NTB hardware drivers shall accept CPU-endian data and translate it to > > the portable formate by internal means, so the explicit conversions > > are not necessary before Scratchpad/Messages API usage anymore. > > > > Fixes: b83003b3fdc1 ("NTB: ntb_perf: Add full multi-port NTB API support") > > Signed-off-by: Serge Semin > > Looks good to me, > > Acked-by: Arnd Bergmann Applied to my ntb-next branch. Thanks for all of the help on this. Thanks, Jon