From patchwork Tue Mar 14 21:24:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9624551 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CC8A060244 for ; Tue, 14 Mar 2017 21:25:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEA3626E81 for ; Tue, 14 Mar 2017 21:25:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B377F285CC; Tue, 14 Mar 2017 21:25:37 +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=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33ABD26E81 for ; Tue, 14 Mar 2017 21:25:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751220AbdCNVZg (ORCPT ); Tue, 14 Mar 2017 17:25:36 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:61538 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbdCNVZf (ORCPT ); Tue, 14 Mar 2017 17:25:35 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0LjtbV-1cCuEN0rqT-00bu2Z; Tue, 14 Mar 2017 22:25:06 +0100 From: Arnd Bergmann To: Tony Lindgren Cc: Arnd Bergmann , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] ARM: omap2: mark omap_init_rng as __init Date: Tue, 14 Mar 2017 22:24:48 +0100 Message-Id: <20170314212500.3612283-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:aNoUo5fVy3rhEBtxNIJ40HJHdA/Xr/HQlW5giNXHGlhGdpCiKpQ xkY5Qgb58VJlD+sbiRKhjol8ggkrI9Xna2cA0puYIAbH0P92la/8KkA8LCt9pwKtE3oxvmd xGhG20hdNAZTBefADnmxnhz9r6ljcdinin9/xn2Ni+FG3LXnjuagxEl9eS0jEMexxgGsC5a ewKxP6X+RcZd1c779K+gQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:bLuWdeB7NYM=:6I56aidhVyGS6FS0TKPQif Lpnf4FUnntyRrS/G4Yu+U+R3c4XqUwN0oFIjeqiUjHexN4iSQQs6yCjmS7t3tlJy8PD3cCEyi /Ksc70Sr92Y3fgxC7K1aXsGCKe+p/yjs6LgHyzwCu8LmeCGs3tLZF1DvrLPYRTOShujO6lDMM jcPUXchwsyMRPu+d3n5KPONTwrt4C7YqOrqYmNqOboZt7kfbf+hsPt9nmOanKaBxboZwMUOrI qAycLNsZtVOcehZAPbxAOaCC8vig3oHBjNtmjjv48bnUBGqg0uHJQEzDVC4Dhm+Eo9BTMVkJU 7kjeoPW8Fjd7Zb14XDyW8WTWZWqobnm582e/vW1iW1uCHbUS9dVSMaklwhKo4kMCHjClSG6/k 99JCOWpTwPJPn1eVis9ad9RHKCes0lHER/gDr/GUlgGf1U8602QUl9Va6TEdEPAfG8Bsal9uz OD8Zx29zXgoeZc3YYTBtXFLvwU4xE3kT+1o3xYhxbN3jPwEP2dwmYX0ivno8B5uwvPEMmVHKU AXT5N6bu5/X+miejMaVk5jA3t81UgsDI8Z3ZbYzSLad1kKGOYTNxmpwHzhYz48MKigJzyo5c2 g11+mEmIQmSXV0lwS15PuzAiC97HRrsFOXycu1y2uC9rdFsZCqFomhPmavpA2+1alHNaeEXUT +eawIG33DLzZRKWyLEEKDUFMBroVmvzTM/fkxItluMqPkdVdDI/BiMIZL6SXWvPglvvI= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I found this section mismatch when building with an older compiler release: WARNING: vmlinux.o(.text+0x3051c): Section mismatch in reference from the function omap_init_rng() to the function .init.text:omap_device_build() Obviously this one function should be __init as well. Normally we don't get a warning as the function gets inlined into its caller. Signed-off-by: Arnd Bergmann Acked-by: Tony Lindgren --- Originally submitted on Dec 16. Tony, could you pick it up for v4.12? We haven't started merging stuff yet, and I forgot to apply it earlier but want to get it out of my backlog. --- arch/arm/mach-omap2/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 3fdb94599184..473951203104 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -121,7 +121,7 @@ static inline void omap_init_mcspi(void) {} * * Bind the RNG hwmod to the RNG omap_device. No return value. */ -static void omap_init_rng(void) +static void __init omap_init_rng(void) { struct omap_hwmod *oh; struct platform_device *pdev;