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: 101410 Delivered-To: patch@linaro.org Received: by 10.182.112.6 with SMTP id im6csp143557obb; Fri, 16 Dec 2016 01:09:59 -0800 (PST) X-Received: by 10.99.174.75 with SMTP id e11mr3760598pgp.89.1481879399603; Fri, 16 Dec 2016 01:09:59 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si6854175plj.180.2016.12.16.01.09.59; Fri, 16 Dec 2016 01:09:59 -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 S1759988AbcLPJJy (ORCPT + 2 others); 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 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 --- arch/arm/mach-omap2/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;