From patchwork Fri Dec 16 09:08:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9477603 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 4C8326047D for ; Fri, 16 Dec 2016 09:10:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36FD72880D for ; Fri, 16 Dec 2016 09:10:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A1F62883E; Fri, 16 Dec 2016 09:10:00 +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 AE1A02880D for ; Fri, 16 Dec 2016 09:09:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759988AbcLPJJy (ORCPT ); Fri, 16 Dec 2016 04:09:54 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:55342 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759984AbcLPJJw (ORCPT ); Fri, 16 Dec 2016 04:09:52 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0LxGqg-1cfMlT0gcU-016zxA; Fri, 16 Dec 2016 10:09:09 +0100 From: Arnd Bergmann To: Tony Lindgren Cc: Arnd Bergmann , Javier Martinez Canillas , Peter Ujfalusi , Suman Anna , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] omap2: mark omap_init_rng as __init Date: Fri, 16 Dec 2016 10:08:55 +0100 Message-Id: <20161216090906.2313595-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:4//FkJV2kCAhYA+QILi5OsAi09/YnO/luPgK7AABWKpCjTI2WS7 NQweJ4fLjUhlSu1GnQVj0eys6/4jfWa8zO0xnWMlDdR5qTRAx52eZ335VzDAVD0G7ruOcUG 6gaZ45o4IR/qqXCcob4TWwz8e2bYCPxi0uQiEAgb2uiacRV9d/q4blJU/S0X44FJdxOBO8n 58+OOgP0+9or+JLmYoKWg== X-UI-Out-Filterresults: notjunk:1; V01:K0:ROm6hmc45vo=:IxRhdbSRKD7zNMmFQIWf4c qKqpp1sb14gTnWr9Js6h6DDofSesAndaOGWXV8hT6+G/C4DmHLhWmjRbKdhX56f0W/9hXVHzK niapAJ9tZtVpboj73FFHx4FBnFZNqqk/1HVdRCY1PAy9bRT3Rfo4DkQhOhbGa6kSaDrQjuaV9 gBhvcbXK/wI6WWWG2tp0aiO5JNdNubzyPXcJi3muueIKjzv8cDZg19cgOf4MJgjhBUJIi8yOV FS3b7sDgL/2JUPusA3QpH1AYpDO4fIegFfyCzn0lYf/og6Cm9XW83dPENtL9GjpqKBBTbLJsQ /zcApsnLIaLX2MvT+oT8UqoAyj+0lPTrxbP8tPs4D204Pc3M49pQuMcnjWTAUMzYLqPuzC3Kb SGAEhiYjQhJr9y2GQsFC0CP3CNwLkJIZMOasPCz9MwJJfaTS+UVIPxx7PomWzw3YQEoYXZg14 xTEa35Um+Nsi538yz9ij3LBK0Fi9N7yNQZwZ4Ln9A3eMolHlyL3wM6lI6DhLnJGJKSqqS+5Up y88+UOUITJQToh7c/Ku0MvPhuLVWnsRSxVUSgTev2I9eXHSIuRNN2BLQCbz8UvKx0/IV1C71G zUfXGiBpFZcDYSI5pfXtRn8V1bAUo/0J46iaIrQiEwAgDHwVYzmHGWwGcRoXipS1vCskzWga7 pEluwjN0hBg7u93CY5g2PaXI8ZgUG+j1fQhXIapHB3UKAj3khna4HZS6JshzmZwBZoK0= 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 --- 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;