From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933484AbeAYEN7 (ORCPT ); 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 X-Google-Smtp-Source: AH8x224e6rxnP0qw6sTrz0zGe6KrsZabfG4dyPeDDvffb4qyiXQsR/X4RZVm/rqE8QwXjiphII9BwA== 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 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