From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755637AbdKBIGa (ORCPT ); Thu, 2 Nov 2017 04:06:30 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54296 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755230AbdKBIG0 (ORCPT ); Thu, 2 Nov 2017 04:06:26 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F02136070B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org Date: Thu, 2 Nov 2017 01:06:24 -0700 From: Stephen Boyd To: Arnd Bergmann Cc: Michael Turquette , Matthias Brugger , Shunli Wang , James Liao , Erin Lo , Philipp Zabel , Sean Wang , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] clk: mediatek: mark mtk_infrasys_init_early __init Message-ID: <20171102080624.GD11011@codeaurora.org> References: <20170915192848.649455-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170915192848.649455-1-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/15, Arnd Bergmann wrote: > On gcc-4.6, we get a harmless link-time warning: > > WARNING: vmlinux.o(.text.unlikely+0x196a0): Section mismatch in reference from the function mtk_infrasys_init_early() to the function .init.text:mtk_clk_register_cpumuxes() > The function mtk_infrasys_init_early() references > the function __init mtk_clk_register_cpumuxes(). > This is often because mtk_infrasys_init_early lacks a __init > annotation or the annotation of mtk_clk_register_cpumuxes is wrong. > > Newer compilers inline this function so they don't warn, but > marking it __init is the right solution for all versions. > > Fixes: e9862118272a ("clk: mediatek: Add MT2701 clock support") > Signed-off-by: Arnd Bergmann > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project