From patchwork Tue Jun 23 19:56:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 223159 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22220C433DF for ; Tue, 23 Jun 2020 21:26:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 00E1420781 for ; Tue, 23 Jun 2020 21:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592947560; bh=mENqh6y1+loYM3lndCqWeQVz3f18lqycNcM3H9cKtfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=d89oIFs/CZQUpFpPeVTwd6+AkSilg85t2L7FB1ZKb1KwDeemFl26HGvwe2rhspkm/ CvyhxV0+2FBMqMMUkutEW44rB+LhZ6kwP7HLo1TAUYeDot3DjCW2nCCk2GIVeDt7eS p4wLoeRnk2BkS3TsdN7CNbB/ZomAcTSY9g92RAPs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388373AbgFWVZz (ORCPT ); Tue, 23 Jun 2020 17:25:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:35450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389686AbgFWUSb (ORCPT ); Tue, 23 Jun 2020 16:18:31 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 957B52080C; Tue, 23 Jun 2020 20:18:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592943511; bh=mENqh6y1+loYM3lndCqWeQVz3f18lqycNcM3H9cKtfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O0cxYweT8MQrUeVVXYYfSdiSx9zD0H9YdUZFVLhlIURKfosRBluMUB29zlgQxrfel xPQNaL+J736mN1vzLYHe7SzshZYgI7AEg8Ynk0Y731fcPW5LaVeth3X4VTUWNwnSsL Rv47b7NMOtHywNZUnj3obWnerfEoT/oI3UiQHEIw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kuninori Morimoto , Rich Felker Subject: [PATCH 5.7 420/477] sh: Convert iounmap() macros to inline functions Date: Tue, 23 Jun 2020 21:56:57 +0200 Message-Id: <20200623195427.382451217@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200623195407.572062007@linuxfoundation.org> References: <20200623195407.572062007@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Kuninori Morimoto commit 4580ba4ad2e6b8ddaada3db61d179d4dfac12047 upstream. Macro iounmap() do nothing, but that results in unused variable warnings all over the place. This patch convert it to inline to avoid warning We will get this warning without this patch ${LINUX}/drivers/thermal/broadcom/ns-thermal.c:78:21: \ warning: unused variable 'ns_thermal' [-Wunused-variable] struct ns_thermal *ns_thermal = platform_get_drvdata(pdev); ^~~~~~~~~~ Fixes: 98c90e5ea34e9 ("sh: remove __iounmap") Signed-off-by: Kuninori Morimoto Signed-off-by: Rich Felker Signed-off-by: Greg Kroah-Hartman --- arch/sh/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h @@ -328,7 +328,7 @@ __ioremap_mode(phys_addr_t offset, unsig #else #define __ioremap(offset, size, prot) ((void __iomem *)(offset)) #define __ioremap_mode(offset, size, prot) ((void __iomem *)(offset)) -#define iounmap(addr) do { } while (0) +static inline void iounmap(void __iomem *addr) {} #endif /* CONFIG_MMU */ static inline void __iomem *ioremap(phys_addr_t offset, unsigned long size)