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: 159837 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp7271367jad; Thu, 7 Mar 2019 02:36:15 -0800 (PST) X-Google-Smtp-Source: APXvYqyPmOmrUJt8E9jMZSNDImlfkK5fGQWSSMicYoBHFEMPre5KnwP6OS6azoGHzUOQpcho0wlF X-Received: by 2002:a63:4e1d:: with SMTP id c29mr10889883pgb.433.1551954975888; Thu, 07 Mar 2019 02:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551954975; cv=none; d=google.com; s=arc-20160816; b=pNBeefUOcnl26aNHtO0km6bBJnzoQg9rvAg0Iful2dav78grgcxs4iP+VzCqR7eg83 khfeQDPtapc6aCrKB7ADRa1BJMZQRo0KVYDT9CN1DbEDoqBQzD56oKeROzfjGGQPocbB orDzQ1nof6FzpBRB2e8+d5u7V6oBJp0R3QI7QmnYPCtASqvvnGpi38yqCVAha+l7vIAq c9nHuw+CYXz+XMYu5wcZgXUCdW9I9mPxRGp2lw14XOVSHyBjO1d99XlRv0xiCWg91tRz yV7S2DYwAnMKEi0Xj052blQKeF3XKQ0aB2JM1mBlT0WSb4W9hU18j/WUepW6zJlx5GHY I6jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ZtHgqNcXcoAvpy1Sfcg/LwAwlx7C6O7YOp0awWLIECA=; b=1G1rhaJN91aE95B9wDI2KlsFkc9SYij3ZaXAqIiDdJLjIbGdjCCsLFg2WnDMZEMosD rnUj/pBm/bvTlKVIzzLVyDkFdNR7L2r0Nv0Lsj/JQ3SpHZMAt94hxP+wNaKDWFamNqLL 4SflvEYQRNKI64htPiF5CEHd9vT5wW4XmNXFhf1Kq1Cg48K1sP8hDNo6MP0NuUVu2zw/ mY35bKugvnv3R1UPrnteCl4GwrKHOgLePv4/JCS4Z22B8YoekGs0KAokDcxY2Oww0tkT 0H/nPuDmNDuXzluMAFEG1NYh6rIQ4pJy/B5dXnx0qn92wF1OfkPp/KEP69msAj60Ds8F IFjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k86si4018121pfj.145.2019.03.07.02.36.15; Thu, 07 Mar 2019 02:36:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726166AbfCGKgP (ORCPT + 5 others); Thu, 7 Mar 2019 05:36:15 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:54813 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfCGKgO (ORCPT ); Thu, 7 Mar 2019 05:36:14 -0500 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 Cc: Nick Desaulniers , Arnd Bergmann , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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-Spam-Flag: NO 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== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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 --- arch/arm/mach-omap2/prm3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 Reviewed-by: Nathan Chancellor Acked-by: Tony Lindgren 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,