From patchwork Wed Jun 19 13:04:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 167236 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp708644ilk; Wed, 19 Jun 2019 06:05:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqylE6IF+LY6KG3QinHtLZlNEyfUqCvb/S6fYRw5dPDfQTh1gC9yJw23vIjTJA99WXIjxUIl X-Received: by 2002:a17:90a:1b0c:: with SMTP id q12mr11234760pjq.76.1560949555068; Wed, 19 Jun 2019 06:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560949555; cv=none; d=google.com; s=arc-20160816; b=eE/SWyWSEwUlTFYkqEB6hId/0W0xQOkawpurp3wkEKceVRTL5imf0aue8uYyiQEGR7 U2re6pz1JFVxzglGTafkP3T9jcgiShhp38yyVkkrxKYIbiFHufDjd5YEZIZPGIOw65Zk 3+0gZROVXpw6BTNvyEBO9CK915VkLWM6fBcNBpowhN32e9t0vn/fGOacxFgzLRGV4TMS rolDMrU7g/9oZ4Vo7DYuSAW8R7eqe4fMb39eSDHSFKotuBKHvLQD/a6Qlg9MeXNOQG+i Z5zuJipOvEg7mN9gpSIejiTnYFX8v3/Q0MC0Q0W6kIQ9gkOfxyNZpDXNzf1v74LcGPxA RzUQ== 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=lGfFO7qdbBRBxFYZyuDsrfZqdGM+zaS8c9rlNuHYgF8=; b=bB+e5wwRWHdYlbhqeqAV6pIzx36PAeI0e1QD0vWninCzCBI1Y4yskIYhQ0eDXQOglk X3XgNuu03hxzF7b+icBYMNIicQ9LJkntVG4gAhpdezlgWcjU2TJ6cUdGA/bWw7pKPX9W GrMpweymK9lZ8WPchL8eplU7LHX9zE9ChsrxBKgvnysUyFUn2V1VMO/c1Yu44u3NNzw9 +mOW+3VOrmTzGNazUWAf4khdGZbVgBdblzYQFkR3m3M0K/3ngMfABwxpKPH+IdymAgj3 RggCtXJsbzdY1IUbdcgQ6WuLhZOJ0IknmfW5oQt0IYM0YegsApwvHxhEq/ETbBJVDSGN tssA== 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 b12si1153212pgj.597.2019.06.19.06.05.54; Wed, 19 Jun 2019 06:05:55 -0700 (PDT) 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 S1731724AbfFSNFy (ORCPT + 5 others); Wed, 19 Jun 2019 09:05:54 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:60669 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731178AbfFSNFx (ORCPT ); Wed, 19 Jun 2019 09:05:53 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1M7s1M-1hhPlr438s-0051Nk; Wed, 19 Jun 2019 15:05:38 +0200 From: Arnd Bergmann To: arm@kernel.org Cc: Arnd Bergmann , Nathan Chancellor , Tony Lindgren , Rajendra Nayak , Paul Walmsley , 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: Wed, 19 Jun 2019 15:04:54 +0200 Message-Id: <20190619130529.1502322-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:dnAraIqnAFKO4Ee+PXPJF/LL3WFx+kBCx35hS/zH3XPenx1T9Ys kgXaZ8E4MOrxh9YQWe2g5fxpnQBAjZAJiNm8/rhI/Q9x58NdE5suxhAdEY176sJhbxqO0ZU 0dwSTg4Gvhn+nxBMPKr9Wz38owbJx2ueOa5DEA60MCmTAC8sdf7kVmXLR/nWg7mc692p9Le BvoIQPBnyZctUKgIRs8/g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:0mRlXBkSslw=:FoLq8ELxMpa2ObJt7RxxZ7 QQJlQ/XyvjcJchlJGmvbu+7W4CFnMm5z4zxQ1TwUtjrpriuekVOwMyX0PdzUFJ7fXpmHcF/ZW yjCB7+ZOpMJj+0ECdwIc0Pd9O0t3fYDc1ahzT9prtfhu/uu4/kd6/jSuXvKKbcE9IdoX3iIkA ZAFlq9IT9R+8iOEvGQG7iGZiJAjbBA1MfTwMuxlvDkv7tBZR1ezHdDQjwg4shzvEvIDVl7hEg WlPAfmpIvWKIyqR7KHkYlbjHCHvt/gmpzfzsCYJQIEHKW9LSAESmDmoVDV7v8Om9kXBh9BwQT ZH0bhfooDV5RhLKH6euGrIeQEl1DeNKGp3DP/huqIiEYezEH0k1KCdkBRduZr9EHFAvEUJChY rhMi6qLhqnzdUHUcdc7jpaunWTtFbN7hvCinLppWvCEUCjxHfnlxnoCAIHhBTSlIjusySXLhM jftrcky1AQcVoBAgxOGxxnvT1B9qA8y0R9PU/Tfdw34KZ9oUz2P3n0heMcClgTD/qoDKorXGy Z27RxBCvyruSt90PIPKW5mSl7huKCyW3u4tDQWwATKwZlHvA3nt6aJtxeAawRaHn6rITq5JXm FvTuguSX2tcSG8yNuTNTJ/6iE45AJ222Mr4tj+JbceubmXOsFyceBnZ5iNa5efEIAdwW7oJu9 Wvj8eI0QnD9UHilbLOp7yk63PY/iCCHOOWdCc6VQoyE460y7ceIEvWFYYO8F86sTz1OjTNA6B FxGgg1lfBa7KgEULX59U37Mgu4FH1j2G2JzutA== 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 Reviewed-by: Nathan Chancellor Acked-by: Tony Lindgren --- arch/arm/mach-omap2/prm3xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 Reviewed-by: Andrew Murray 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,