From patchwork Thu Mar 7 10:35:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10842667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8F1C1575 for ; Thu, 7 Mar 2019 10:36:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3D492D0E2 for ; Thu, 7 Mar 2019 10:36:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B7AAF2E5A8; Thu, 7 Mar 2019 10:36:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F1ED2D0E2 for ; Thu, 7 Mar 2019 10:36:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=EXArrraSJx/ZYhPo16QE3oDnWflhIrkgOI1jeFBNv5k=; b=LQ83PTniUlgtxf FLJBDldSlaFsUSk7LzdXhH+7347eU00tjbSOh0h4rhCV6R1PbbXH4TqXGM5Y0vpvJyGEnsM2bhahP 70A0fT7BUI8rV1ruKmzTNeWqEddaaOUIW4lb1jQsF+9eR7mdVfMclae8kswh1JKUnqpNr8E3fkCcj qAz+VW6d6O+BbwYxXyCWzf3ISi017jXPpqDSWANh7kI6SJe26s9VTxkHODoOUiwZ5nqbWJmwrCOEI EpyCTyRSBY975YsIwZYw1B4xXD3nNGHZ8TPyE+RUQoUshyT/CXlXGg8b6Paj4AW74VaVFF4BNwBas vZbHtjeNtvVSusUQafGA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1qNr-000163-9Z; Thu, 07 Mar 2019 10:36:15 +0000 Received: from mout.kundenserver.de ([217.72.192.75]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1qNn-00015i-Pt for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 10:36:13 +0000 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1My3In-1gsYQg1Oxz-00zTVM; Thu, 07 Mar 2019 11:36:01 +0100 From: Arnd Bergmann To: Rajendra Nayak , Paul Walmsley , Tony Lindgren Subject: [PATCH] ARM: omap2: remove incorrect __init annotation Date: Thu, 7 Mar 2019 11:35:50 +0100 Message-Id: <20190307103557.1688556-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:LCeZ8nJDgheXtzbal88ne6DVF2b1EjKAznFCO0b7vu1q4X+VgKO DsTTgM5j0Jik5I+eQblHhjfjC208TgdYt0orWo7fY6QVf8v+/YMdV6n0+HjMLjSJW4nya8Y Xpe59qL1tAY0m8tzUUiXyMND50PpLAhYk7mvvQexydQrrLr1QBpbz8JKSzjhAd9tiPVMCI+ iD71CHv/o0b7YsTczQYcQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:D06kPh9TurA=:fafGtZQkGBhTcoJXDoeBQd DuKhaNiFM1I2T7f6EjmoKBxPqEvk+WONoQiTuYJMN8Gzdq8tq0ToIR9RZDaUi4UTP1fih21eJ OZI6et8DLsI/gAgsyl4nypuqFbdYG05ppZhc58RhnODeGMgxA6I7CS1lnMTBxYKefBgpICmQ4 GgzzoQ4h5pekUQtsfo/rj/mTcSwwM6VvKQFDYM4lQTEEjOV5qzXJGi33gXCOX3iXapQL3Hwwb 094uo/J7cnjTFodDM/mYQ4jWVYLDVBdZDXzJzNafgTpSMRdDevk/pbwAyzlUgzIYbRhP8ewwm /5oArmAWjFY/C4AWmS8FkgSexwbTCn/Jx1u0/JiX4Ivd5Vd/6cF7XhBgR56itxZyx4DzJjHr7 maM0txBcwXDgHGjnTjAmyVpX0uDSK5PqMnA+khj+3bYfHK5REPZEf7tpsrzZTP6+idc2MpLbN +aUlcCGZnGqK/MlcYaoyKvyOCMxUtZOdls5pxI82VOVxyKlRDAeTYAYhrNWX/qHc/fbArFsMM sQAPeRdNpBHr5LapO1gV9CqurMovr8IuTEtE7Unh4fRKVlBW7AYkRjxqH8guTu9C+xeRHu4mu gR8kJ0uJ4aUlJm2p5/vlC881pfuKBVXFaVBbghuowdvxZLSB9ZP4zl35ArIrVB1tftRqy5mu/ emMoPAi0r6sKayhXHtyhEN1hAW4FP7+/aX2XFvGLo2xUaGl0gCd75fAb+IbF4OpvXfhJpFdt9 bMaEZiECVIMDnYXvEPNOX7DGoOb9l+iluyTvpg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_023612_149213_F31E93CA X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-omap@vger.kernel.org, Nick Desaulniers , linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP omap3xxx_prm_enable_io_wakeup() is marked __init, but its caller is not, so we get a warning with clang-8: WARNING: vmlinux.o(.text+0x343c8): Section mismatch in reference from the function omap3xxx_prm_late_init() to the function .init.text:omap3xxx_prm_enable_io_wakeup() The function omap3xxx_prm_late_init() references the function __init omap3xxx_prm_enable_io_wakeup(). This is often because omap3xxx_prm_late_init lacks a __init annotation or the annotation of omap3xxx_prm_enable_io_wakeup is wrong. When building with gcc, omap3xxx_prm_enable_io_wakeup() is always inlined, so we never noticed in the past. Signed-off-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Acked-by: Tony Lindgren --- arch/arm/mach-omap2/prm3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c index 05858f966f7d..dfa65fc2c82b 100644 --- a/arch/arm/mach-omap2/prm3xxx.c +++ b/arch/arm/mach-omap2/prm3xxx.c @@ -433,7 +433,7 @@ static void omap3_prm_reconfigure_io_chain(void) * registers, and omap3xxx_prm_reconfigure_io_chain() must be called. * No return value. */ -static void __init omap3xxx_prm_enable_io_wakeup(void) +static void omap3xxx_prm_enable_io_wakeup(void) { if (prm_features & PRM_HAS_IO_WAKEUP) omap2_prm_set_mod_reg_bits(OMAP3430_EN_IO_MASK, WKUP_MOD,