From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751906AbdIRHmL (ORCPT ); Mon, 18 Sep 2017 03:42:11 -0400 Received: from terminus.zytor.com ([65.50.211.136]:49335 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbdIRHmJ (ORCPT ); Mon, 18 Sep 2017 03:42:09 -0400 Date: Mon, 18 Sep 2017 00:39:54 -0700 From: tip-bot for Arnd Bergmann Message-ID: Cc: daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, treding@nvidia.com, arnd@arndb.de, hpa@zytor.com, linus.walleij@linaro.org, mingo@kernel.org Reply-To: mingo@kernel.org, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, daniel.lezcano@linaro.org, arnd@arndb.de, hpa@zytor.com, treding@nvidia.com, tglx@linutronix.de In-Reply-To: <20170915194310.1170514-1-arnd@arndb.de> References: <20170915194310.1170514-1-arnd@arndb.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/urgent] clocksource/integrator: Fix section mismatch warning Git-Commit-ID: 8fce3dc5c5d6f6301f67311fa79f333902b58cea X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8fce3dc5c5d6f6301f67311fa79f333902b58cea Gitweb: http://git.kernel.org/tip/8fce3dc5c5d6f6301f67311fa79f333902b58cea Author: Arnd Bergmann AuthorDate: Fri, 15 Sep 2017 21:42:59 +0200 Committer: Thomas Gleixner CommitDate: Mon, 18 Sep 2017 09:37:33 +0200 clocksource/integrator: Fix section mismatch warning gcc-4.6 and older fail to inline integrator_clocksource_init, so they end up showing a harmless warning: WARNING: vmlinux.o(.text+0x4aa94c): Section mismatch in reference from the function integrator_clocksource_init() to the function .init.text:clocksource_mmio_init() The function integrator_clocksource_init() references the function __init clocksource_mmio_init(). This is often because integrator_clocksource_init lacks a __init annotation or the annotation of clocksource_mmio_init is wrong. Add the missing __init annotation that makes it build cleanly with all compilers. Signed-off-by: Arnd Bergmann Signed-off-by: Thomas Gleixner Cc: Thierry Reding Cc: Linus Walleij Cc: Daniel Lezcano Link: http://lkml.kernel.org/r/20170915194310.1170514-1-arnd@arndb.de --- drivers/clocksource/timer-integrator-ap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-integrator-ap.c b/drivers/clocksource/timer-integrator-ap.c index 2ff64d9..62d2469 100644 --- a/drivers/clocksource/timer-integrator-ap.c +++ b/drivers/clocksource/timer-integrator-ap.c @@ -36,8 +36,8 @@ static u64 notrace integrator_read_sched_clock(void) return -readl(sched_clk_base + TIMER_VALUE); } -static int integrator_clocksource_init(unsigned long inrate, - void __iomem *base) +static int __init integrator_clocksource_init(unsigned long inrate, + void __iomem *base) { u32 ctrl = TIMER_CTRL_ENABLE | TIMER_CTRL_PERIODIC; unsigned long rate = inrate;