Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp53421lfe; Fri, 15 Apr 2022 19:07:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqaLKBMp0bbzD2Zkq0JRyoMJvqH5ECgkp4F3O1T6fGRvTYCC8VdmtPp1usUUTbyGsqFx89 X-Received: by 2002:a63:fa06:0:b0:39c:f169:18e6 with SMTP id y6-20020a63fa06000000b0039cf16918e6mr1374620pgh.129.1650074838458; Fri, 15 Apr 2022 19:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650074838; cv=none; d=google.com; s=arc-20160816; b=dOKkZKx1eMPQfwn1grgnAZ4+vsVja9AD0UmyNbvHNhTulpbaIoqPl9YZbKVBA3BQgh 4weEDVLgfwBrOga02pMFdMvmfu8+0PUco4qlAxh/P25MgQGWFdEZ+ijO5IAqTDn4aYY1 N5Y+sUfTgeEPOYTXYcWndwkZlxNDB3BZjq3+T641rZWBZU7FChBr9ND09YERCKt/pyYC BWT3PIemWQF8apcqQVMTUt7xlcmLwXVjE+18iQpNDPWUVbGgHEzc7cVbP4O1FcoIXLaz ol3+mli0t8GxyF6Wr4RERb7WXAxIgfofiYdO0f+xs4QZol5SucP0JX9WYaFQJKqf3u8E CWVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5reGpRw2ZgFSQZbtLRzu9ib8DlUy/I3RASjMk4c7wAc=; b=DgImyHLSpzHHIF15eddzFEVXOkhwUmswOHjW0Rv8NDYlEIbn6Is0s6FB+NTOQPViSq 3qFXR/Ayr0/M3wpfPN9W4n5RZ4I95dSAyPvi9UJjuo8UJWareOTNYafzzOrn7k5wsqaO l6gLY/tsuJKe6vBf9WOdlh726tgm6Kpue77mDbMoJsDiJnWUmhafjFaYo2WPa23TAD6i r/zw8KuxnQLM12wv4Vg0aYsjKaVwwFjnZxGVBCbM9emjFIqWSB58/ymfLj2BYTF8ODI8 ICzU3urxEjce0MY5+7VVj4zxg5IwvYR7cG+hUtB/ErB2k/CD7Udqcn+dKAsQmoyAuzu6 sAaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=jVAm81si; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u1-20020a17090341c100b00158420dafa3si3083359ple.61.2022.04.15.19.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:07:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=jVAm81si; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 435E21FA49; Fri, 15 Apr 2022 18:25:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241611AbiDNJGx (ORCPT + 99 others); Thu, 14 Apr 2022 05:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241654AbiDNJGe (ORCPT ); Thu, 14 Apr 2022 05:06:34 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF21A6FA05; Thu, 14 Apr 2022 02:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1649927045; x=1681463045; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5reGpRw2ZgFSQZbtLRzu9ib8DlUy/I3RASjMk4c7wAc=; b=jVAm81si+ueDMpri6APpKbf83xGhXkIzuQTthfttlAW3X+zpQ5AqTvIm N4bZV/ygjHe+wshrhPvv07KKw92LpTmLYTj2ehlSmT7JDXeU7DgTwnQ4u 6IDeW5ln/H6TtXxqgJ3QaCQMwDYfJzBHw3YIcBOuqA/086upjnqrUzERz gIgwRilTfKAt+89mYiUQPlWOvpTjL6xW6ZtnJ2VC8xB+sfSeiTkbF+euf SdYUGeW7Qy9v4GM2ilEQZgnQTqkfIW8eYxKlPzdIzHUxFQlsaLK92P6Et 1KXb1txmSvZgL3gj3Yq7QFrs7j6wtJpFPe6J4PeC3Ka1pRcbERFTqNYyS A==; Date: Thu, 14 Apr 2022 11:04:02 +0200 From: Vincent Whitchurch To: kernel test robot CC: "vigneshr@ti.com" , "richard@nod.at" , "miquel.raynal@bootlin.com" , "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: <20220414090402.GA11067@axis.com> References: <20220412135302.1682890-5-vincent.whitchurch@axis.com> <202204131446.omJ5mC54-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <202204131446.omJ5mC54-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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/