Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp402193pxb; Mon, 25 Apr 2022 12:21:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZHW5LZ3/znkvYX1ae1GJ/K6QYzxwWACf5V1H5xi6tS25WQOrspG/ZYvhbOp8FRcSWwNR7 X-Received: by 2002:a17:90a:6d96:b0:1c9:c1de:ef2f with SMTP id a22-20020a17090a6d9600b001c9c1deef2fmr33210393pjk.210.1650914498055; Mon, 25 Apr 2022 12:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650914498; cv=none; d=google.com; s=arc-20160816; b=mFz5Qpg2k+vahA5KBMXgoTX6thQFndOjFwqhxYSDhhecIuQ3QHhBR3v0DQBmMP9rN5 8eJLsfRim/7ZyH/3/kFP193ivawRBbZdCuTax3KVuXfbRPivLenYpYEdzn09qCcyAHt0 8VfIkGaasLzkxq0Uh6ookMShySZ4IEyZidsr4jtfskOCWWgjxljHwCyh2ZFM8vGfO1nT x/hUfXSQn5YQ9QnBeWS3Ta2x/HdKmcpfM36o/2WtMCFV2jIqo9Qj5IMBctiCxvbNeuk9 qvsyjAU48uKnPVj23mdvscaRnGPNrNMMWBNXtNs3cPftWX15bkx1YCP6HlggqotcmxF7 VW4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=P/NOD3HQYXnNSYrB/0k1nvGPoHKrLg3AU9uknY9njKs=; b=YGn/fLHQH4COxzxWTVZyE3Cboi7aavfViPfsXwiT4JGdFXeTSDZQEwvnSWTtTU9fWs KFS9y/bMmL+3RnbSP2+ygizDKlVL/0p34royPvaO/iCt0rKXwyPgk3MiZpSTfwkVmj6k oABq4VsWclqDYxBOMJg1elwqykmwWSgogP8tuExPW55FgZqvuSp7FRXZg+9fgzlxMs3Y zoBriq9eV9/M+M0QyrjO18EmEhkLDkz2i6iru6WewWJejnbb7n3Slykt3x6X70WioMnT sbpkriUawr/3TubGRvVAxXd8O28gn7rGWmEiUTcKU/69OwC0T4F4i0wV8NhtBXhA8L0H ZYRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=TA5UE9Bn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a056a00148200b004fa3a8dff59si18360660pfu.16.2022.04.25.12.21.19; Mon, 25 Apr 2022 12:21:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=TA5UE9Bn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235493AbiDYIdg (ORCPT + 99 others); Mon, 25 Apr 2022 04:33:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231753AbiDYIdY (ORCPT ); Mon, 25 Apr 2022 04:33:24 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD71B93; Mon, 25 Apr 2022 01:30:20 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B8845240005; Mon, 25 Apr 2022 08:30:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1650875418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P/NOD3HQYXnNSYrB/0k1nvGPoHKrLg3AU9uknY9njKs=; b=TA5UE9BnBKepmzRzwXMptNSOitLJEVdWmCcuzNPzXX00mcYTAl0cCq7JBTgXQkFtJbDVUh M4K7kW432xV5NI/IjC/BKhRx4+QBuYcq5tS0xhfG1vUwnpJ4cnmy74snLGA6BjSTB01HQR yCyitR1KAfKXDfNv+N/zYuDbHfwe8L/NnLOhU3z9+5lQF6T6Fz0RquvCKYu5yWpFwGD9RC Tn/tMh7Jvf/uh7dpcMGCFiOMGTfoIvvY7UhTFfc0llKo3EeEcDkOP9H09tvq0SnFpXpAQm 1crpOPlCPg38IHx5FcUIgUii7oMNqF5fzI38i4NHp1rdOtWdD1jsO2sQzD7Z7g== Date: Mon, 25 Apr 2022 10:30:15 +0200 From: Miquel Raynal To: Vincent Whitchurch Cc: kernel test robot , "vigneshr@ti.com" , "richard@nod.at" , "joern@lazybastard.org" , "kbuild-all@lists.01.org" , kernel , "linux-mtd@lists.infradead.org" , "devicetree@vger.kernel.org" , "robh+dt@kernel.org" , "krzk+dt@kernel.org" , "frowand.list@gmail.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 4/4] mtd: phram: Allow cached mappings Message-ID: <20220425103015.1cc05f77@xps13> In-Reply-To: <20220425102816.54619c66@xps13> References: <20220412135302.1682890-5-vincent.whitchurch@axis.com> <202204131446.omJ5mC54-lkp@intel.com> <20220414090402.GA11067@axis.com> <20220425102816.54619c66@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org miquel.raynal@bootlin.com wrote on Mon, 25 Apr 2022 10:28:16 +0200: > Hi Vincent, > > vincent.whitchurch@axis.com wrote on Thu, 14 Apr 2022 11:04:02 +0200: > > > On Wed, Apr 13, 2022 at 08:45:59AM +0200, kernel test robot wrote: > > > All errors (new ones prefixed by >>): > > > > > > In file included from include/linux/io.h:13, > > > from drivers/mtd/devices/phram.c:21: > > > drivers/mtd/devices/phram.c: In function 'register_device': > > > >> arch/sh/include/asm/io.h:274:33: error: expected expression before 'do' > > > 274 | #define iounmap(addr) do { } while (0) > > > | ^~ > > > drivers/mtd/devices/phram.c:150:44: note: in expansion of macro 'iounmap' > > > 150 | cached ? memunmap(new->mtd.priv) : iounmap(new->mtd.priv); > > > | ^~~~~~~ > > > drivers/mtd/devices/phram.c: In function 'phram_remove': > > > >> arch/sh/include/asm/io.h:274:33: error: expected expression before 'do' > > > 274 | #define iounmap(addr) do { } while (0) > > > | ^~ > > > drivers/mtd/devices/phram.c:372:53: note: in expansion of macro 'iounmap' > > > 372 | phram->cached ? memunmap(phram->mtd.priv) : iounmap(phram->mtd.priv); > > > | ^~~~~~~ > > > > > > > > > vim +/do +274 arch/sh/include/asm/io.h > > > > > > d57d64080ddc0f Paul Mundt 2010-01-19 272 > > > 13f1fc870dd747 Christoph Hellwig 2020-07-14 273 #else /* CONFIG_MMU */ > > > 13f1fc870dd747 Christoph Hellwig 2020-07-14 @274 #define iounmap(addr) do { } while (0) > > > 13f1fc870dd747 Christoph Hellwig 2020-07-14 275 #define ioremap(offset, size) ((void __iomem *)(unsigned long)(offset)) > > > 13f1fc870dd747 Christoph Hellwig 2020-07-14 276 #endif /* CONFIG_MMU */ > > > d627a2ebd1a303 Paul Mundt 2010-01-28 277 > > > > Thank you for the report. This patch could certainly be changed to work > > around this, but ISTM that the right fix is in the SH header file, since > > the problem could hit in other cases too. I've posted a fix here now: > > > > https://lore.kernel.org/lkml/20220414081257.1487499-1-vincent.whitchurch@axis.com/ > > Looks good to me but I don't want to be the one "carrying" new compile > errors so I'll drop the series for now, until you get this patch > applied. Please then just resend the series with this thread mentioned > and I'll take it back. BTW, I'm only talking about this improvement, patches 1-3 will remain.