Received: by 10.213.65.68 with SMTP id h4csp1803256imn; Mon, 19 Mar 2018 13:42:54 -0700 (PDT) X-Google-Smtp-Source: AG47ELt8GUkNvix+jJykChFHdyaSj8g6jSxv4Tp2f3KICcxY6qZXtkbH1sMBqsTvGnd4L30ynoLn X-Received: by 10.99.97.16 with SMTP id v16mr10266964pgb.104.1521492173936; Mon, 19 Mar 2018 13:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521492173; cv=none; d=google.com; s=arc-20160816; b=qfXw5NMPXl5RcGuzgV/HHQ7XuvKQCd66gWlT76mGLKvIlSz++MRRbUaA7Md/61Nifn GyoqV8tN2osEOB1EDv9/otK7c4rP/8ZegaS8rH4bIqc8bojJyTT2cdHp6RtULyNZDMOh Hejug1H9DhP/JnUJXd1jryXvimip+5VPopJ5eU9rqX8PggNdwIJ9AmpWvtvrybF2t3N0 xvMA67NJ1XMiq+zjEIkyzzs7DM/bku7JxhQjiLc4lbX095nio6FKZ6eBANfvDy31EEcd D9KtxQd7ckOR3PQOLH0YkYo+djYGCc1fPkzshpPOuEY2OSFqhJtJfwfKni0yzkwLF9rU ALEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:arc-authentication-results; bh=7TQ6w95QjOu8ley9edFrc7vBbNnP6vOrJXlZL5fYsVQ=; b=vLMgx2TIzj7jwzXFA3SJ/WHkJbYqFybr6rxE50OPWdDE0JBPr/E40PL3C8YAzoFRaP MD1kuqZ36VyMjaVmZI27VTRLsB3RjQtPtNjUw1KOCRY3JDPYFTJrcnZURz7j4JZrEN49 O/47cXSI5b6uZG665J/B2qN+GhneOGSMxnA5X9lwIwfrXO3gT9MiWZcAAW3iCsNeperg Qp/ramU5S8dUzQCe7St9RFNzxHEVd1DBXDRYbUI5y/9nEURETFA2JNcChpQIHl+Gs2M7 3ulaKMVNkkyPsGvRBP28NEktJkWCHPJm5xm9kF/juTU/vKmYmx3rn7ofNjMWo8dnZX4T AVtA== ARC-Authentication-Results: i=1; mx.google.com; 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 y70si18640pgd.777.2018.03.19.13.42.09; Mon, 19 Mar 2018 13:42:53 -0700 (PDT) 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; 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 S971378AbeCSUia (ORCPT + 99 others); Mon, 19 Mar 2018 16:38:30 -0400 Received: from ale.deltatee.com ([207.54.116.67]:44546 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935530AbeCSUiX (ORCPT ); Mon, 19 Mar 2018 16:38:23 -0400 Received: from s0106602ad0811846.cg.shawcable.net ([68.147.191.165] helo=[192.168.0.18]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1ey1Xl-0004gC-Hn; Mon, 19 Mar 2018 14:38:10 -0600 To: Luc Van Oostenryck Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-ntb@googlegroups.com, linux-crypto@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann , Andy Shevchenko , =?UTF-8?Q?Horia_Geant=c4=83?= , Thomas Gleixner , Philippe Ombredanne , Kate Stewart References: <20180316154852.13206-1-logang@deltatee.com> <20180316154852.13206-2-logang@deltatee.com> <20180317190311.tdmx2vlcjttsjs5j@ltop.local> From: Logan Gunthorpe Message-ID: <9a55914e-142c-2a1b-2eef-66d7922a58b8@deltatee.com> Date: Mon, 19 Mar 2018 14:38:04 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180317190311.tdmx2vlcjttsjs5j@ltop.local> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.191.165 X-SA-Exim-Rcpt-To: kstewart@linuxfoundation.org, pombredanne@nexb.com, tglx@linutronix.de, horia.geanta@nxp.com, andy.shevchenko@gmail.com, arnd@arndb.de, gregkh@linuxfoundation.org, linux-crypto@vger.kernel.org, linux-ntb@googlegroups.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, luc.vanoostenryck@gmail.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: [PATCH v12 1/9] iomap: Fix sparse endian check warnings X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luc, Thanks for the feedback. I'll try to address your points in a v13 shortly. Logan On 18/03/18 10:13 AM, Luc Van Oostenryck wrote: > it looks correct but if you should explain why the warning > is not a valid one. Once done, you can then explain what problem > you have fixed instead of saying you suppressed a warning. > >> Also, it looks like the wrong conversion function was used in > > I would suggest to split the patch in two since it does two > different things which should have their own explanation. > >> diff --git a/lib/iomap.c b/lib/iomap.c >> index 541d926da95e..a05d9fa21794 100644 >> --- a/lib/iomap.c >> +++ b/lib/iomap.c >> @@ -106,8 +106,10 @@ EXPORT_SYMBOL(ioread32be); >> #endif >> >> #ifndef mmio_write16be >> -#define mmio_write16be(val,port) __raw_writew(be16_to_cpu(val),port) >> -#define mmio_write32be(val,port) __raw_writel(be32_to_cpu(val),port) >> +#define mmio_write16be(val, port) \ >> + __raw_writew((u16 __force)cpu_to_be16(val), port) >> +#define mmio_write32be(val, port) \ >> + __raw_writel((u32 __force)cpu_to_be32(val), port) >> #endif > > I think that in this sort of replacement, it's better to not split > the lines (even if larger than 80, that's it). > > -- Luc Van Oostenryck >