Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3442034pxb; Mon, 4 Apr 2022 17:07:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWUv3SJQzjC9b0SQvqki5lfxly+3HMDh7H+oyquSxqSfxMN0FDdePo2ASCFfqHbVX/Jkr+ X-Received: by 2002:a17:902:a9c5:b0:156:32bf:b526 with SMTP id b5-20020a170902a9c500b0015632bfb526mr690884plr.46.1649117269478; Mon, 04 Apr 2022 17:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649117269; cv=none; d=google.com; s=arc-20160816; b=Pn39QZvH9r0ichJ57GfTSzGAVtNym4iBv1awt0Mz62FDhLKGwVrnU8MtzW53lNr58k f6JtSg5Vw35TGnOkaHy6Uijd9C4MxgPMN12/9X/Wvcq9t6abXjXamvOkg/nUzkUILtOo oeR9BpEPacCUN4EBwBUtWnSyBsjd7WILUjMXGbtIv9NkQQY2l18ENDlrhvZPAEwuOX+X kfDAWDgwyslcVbN7qGe3syy1QJh8V57iD3IseTFvf3M8OXXBYBciRq4T1NXu/UnXkvyD MsnO0SwXGW2lOL4Hk556yWvsD7okJLyO4s6N3r5n4zIPxtRU4svcRwo/P6bBjlrU3+y8 kIlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3GP+2TpGBqvyroMU9Tk08wEiCy27ff0buCUTfZXwWnQ=; b=E05MuPR+eNHPTqNgD8/PYOutWllslu0LLH67PKLWG0DxEcFzGi6h9S8Ar1zMaxPOir OuWcGOM5xjzsjoM9LcO5dzOqyllGQmE6sr7ck+hlsRbiO95MPwOO3cQ0vlgegNHU3UNI P78Z4eb3m/cTF+pN1CSIom+CgiAYuModyIKbFdNbfHr+NHeNzo8ZmJHOC64UWFxhkatf GEKOgwBjbJzc52t8Ki8EJWOAGDggJQGsiC+6tujxzmJDDFJ26DjlVWqnuQtyAUQX2BkU c7aX0HR9iWVCskCp0rNSob11b43K56PZwglxItFrV7vIDmvxfythWYH364BSq1UpJDR/ 0ULQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b10-20020a170903228a00b00156abe4e643si4169476plh.81.2022.04.04.17.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:07:49 -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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD16565431; Mon, 4 Apr 2022 16:41:18 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357879AbiDCOwE (ORCPT + 99 others); Sun, 3 Apr 2022 10:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244926AbiDCOwC (ORCPT ); Sun, 3 Apr 2022 10:52:02 -0400 X-Greylist: delayed 339 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 03 Apr 2022 07:50:06 PDT Received: from glittertind.blackshift.org (glittertind.blackshift.org [IPv6:2a01:4f8:1c1c:29e9::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9D5E396B6; Sun, 3 Apr 2022 07:50:06 -0700 (PDT) Received: from bjornoya.blackshift.org (unknown [IPv6:2a03:f580:87bc:d400:dea6:32ff:feb1:177a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "bjornoya.blackshift.org", Issuer "R3" (verified OK)) by glittertind.blackshift.org (Postfix) with ESMTPS id ED0AE4E1439; Sun, 3 Apr 2022 14:44:25 +0000 (UTC) Received: from pengutronix.de (2a03-f580-87bc-d400-2568-5610-be2e-0839.ip6.dokom21.de [IPv6:2a03:f580:87bc:d400:2568:5610:be2e:839]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 3A11B5932E; Sun, 3 Apr 2022 14:44:25 +0000 (UTC) Date: Sun, 3 Apr 2022 16:44:24 +0200 From: Marc Kleine-Budde To: linux-sh@vger.kernel.org Cc: Kuninori Morimoto , Sam Ravnborg , Geert Uytterhoeven , Rich Felker , Yoshinori Sato , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sh: make iounmap() a static inline again Message-ID: <20220403144424.f5akrad75xtkncgz@pengutronix.de> References: <20220105085746.1116726-1-mkl@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y5qda4tomsttcgy4" Content-Disposition: inline In-Reply-To: <20220105085746.1116726-1-mkl@pengutronix.de> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 --y5qda4tomsttcgy4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 05.01.2022 09:57:47, Marc Kleine-Budde wrote: > The patch >=20 > | 98c90e5ea34e sh: remove __iounmap >=20 > removed the __iounmap macro for the NOMMU case, but also converted the > static inline no-op iounmap() to a macro, resulting in lots of unused > variable warnings. >=20 > This patch coverts the macro into a static inline function, similar to > previous patches in the sh arch: >=20 > | 4580ba4ad2e6 sh: Convert iounmap() macros to inline functions > | 733f0025f0fb sh: prevent warnings when using iounmap The problem still exists in linus/master, can someone take this patch? regards, Marc > Fixes: 98c90e5ea34e ("sh: remove __iounmap") > Cc: Kuninori Morimoto > Cc: Sam Ravnborg > Cc: Geert Uytterhoeven > Cc: Rich Felker > Cc: Yoshinori Sato > Signed-off-by: Marc Kleine-Budde > --- > arch/sh/include/asm/io.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h > index cf9a3ec32406..4960b8ff1ad4 100644 > --- a/arch/sh/include/asm/io.h > +++ b/arch/sh/include/asm/io.h > @@ -271,7 +271,9 @@ static inline void __iomem *ioremap_prot(phys_addr_t = offset, unsigned long size, > #endif /* CONFIG_HAVE_IOREMAP_PROT */ > =20 > #else /* CONFIG_MMU */ > -#define iounmap(addr) do { } while (0) > +static inline void iounmap(void __iomem *addr) > +{ > +} > #define ioremap(offset, size) ((void __iomem *)(unsigned long)(offset)) > #endif /* CONFIG_MMU */ > =20 > --=20 > 2.34.1 --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --y5qda4tomsttcgy4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmJJssQACgkQrX5LkNig 011irQf9HZnQq5ATktTlhzEDcsWEtrTO/zuIuVRQjCjJkoXxx/AXnmr1Bxdhpqpl XrJRgk8pqsrkK1RBHLJNKS19NU6ujciVKnOSbJ1hQkQhiXC9CLZI8O0X+PkyrbbZ de5pUts2RqImI3s+ejZVCAeGnmaEmp0VAKYmehxbAhwGnRmdxkpYa6Yi/iC3Mhxs p0eM6hdbm2wYbMI/jTLUAkZ+vTmK3uG7vHg7Z2m3HWMwQ2024GGiSS97LDKblpEa hfCUQ5gfM9Y4BG1S/QOYkB5bl43ZUkLUOk7Gn2Yqvwz4vGugzZ0js53B9YtI+ZKl 4M/1OI/zd2SHm+ONDwjy4uHfbuj7pQ== =O1BU -----END PGP SIGNATURE----- --y5qda4tomsttcgy4--