Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751545AbaLQVEr (ORCPT ); Wed, 17 Dec 2014 16:04:47 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:42205 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751201AbaLQVEq (ORCPT ); Wed, 17 Dec 2014 16:04:46 -0500 From: Dmitry Eremin-Solenikov To: Thomas Gleixner , Daniel Lezcano Cc: linux-kernel@vger.kernel.org Subject: [PATCH] pxa_timer: fix session missmatch warning Date: Thu, 18 Dec 2014 00:04:41 +0300 Message-Id: <1418850281-22411-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 2.1.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warning: WARNING: drivers/clocksource/built-in.o(.text.unlikely+0x70): Section mismatch in reference from the function pxa_timer_common_init() to the function .init.text:clocksource_mmio_init() The function pxa_timer_common_init() references the function __init clocksource_mmio_init(). This is often because pxa_timer_common_init lacks a __init annotation or the annotation of clocksource_mmio_init is wrong. Signed-off-by: Dmitry Eremin-Solenikov --- drivers/clocksource/pxa_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/pxa_timer.c b/drivers/clocksource/pxa_timer.c index 941f3f3..d9438af 100644 --- a/drivers/clocksource/pxa_timer.c +++ b/drivers/clocksource/pxa_timer.c @@ -163,7 +163,7 @@ static struct irqaction pxa_ost0_irq = { .dev_id = &ckevt_pxa_osmr0, }; -static void pxa_timer_common_init(int irq, unsigned long clock_tick_rate) +static void __init pxa_timer_common_init(int irq, unsigned long clock_tick_rate) { timer_writel(0, OIER); timer_writel(OSSR_M0 | OSSR_M1 | OSSR_M2 | OSSR_M3, OSSR); -- 2.1.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/