From patchwork Wed Feb 25 11:19:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 45043 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 05B9120502 for ; Wed, 25 Feb 2015 11:19:36 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf2865928wib.2 for ; Wed, 25 Feb 2015 03:19:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=sVswbDVIYvxTr5RpBmgOz0AKP2PO9t96rD4A+Ob2cYM=; b=aTg2NvlYxVJ6BCulKjO50VnzRvHT1DhRUbIZ+JVWRHNvEyfFxp1y5jivd/ocBkweAN gEmf5YfdhszhwlZWXjddzcoU3G+0cGWbCvr6kTt/zSGEaJYEyMbaS2NLe70x+s71JMzN X9TXKOpQOEIbA1k6TEtwFQkjLR4vnA5w/Zf6jvycV+t1yvehoC2jO9gxTm/lv08PPo9o wI7zZLHk80bvsmPHxS4ZeNFSl+U9klbHezfaU+IZN5JuVCLwHXKuZWX8sd9wprFvXIif ge5j1Z1koifSQm/oiMh7Z3EJYRpChqGcKq1hIWXyAo0mzC359vO2tVAgSgxGrXr0+dMh y+Ng== X-Gm-Message-State: ALoCoQlu/BXaH+G9PlPgOWziLC6eLmX3xwD+otyEC/9nUYHWdtG20yQ0hV5Zda+Wg3sqzWr/5hOg X-Received: by 10.180.39.164 with SMTP id q4mr427433wik.5.1424863175024; Wed, 25 Feb 2015 03:19:35 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.2.136 with SMTP id 8ls813343lau.1.gmail; Wed, 25 Feb 2015 03:19:34 -0800 (PST) X-Received: by 10.112.211.200 with SMTP id ne8mr2231091lbc.73.1424863174833; Wed, 25 Feb 2015 03:19:34 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id gi10si30592092lbc.160.2015.02.25.03.19.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 03:19:34 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by labgq15 with SMTP id gq15so3158625lab.3 for ; Wed, 25 Feb 2015 03:19:34 -0800 (PST) X-Received: by 10.152.197.34 with SMTP id ir2mr2372642lac.36.1424863174736; Wed, 25 Feb 2015 03:19:34 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp2549514lbj; Wed, 25 Feb 2015 03:19:34 -0800 (PST) X-Received: by 10.68.242.163 with SMTP id wr3mr4365797pbc.159.1424863171918; Wed, 25 Feb 2015 03:19:31 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pr2si49307392pdb.188.2015.02.25.03.19.30; Wed, 25 Feb 2015 03:19:31 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365AbbBYLT2 (ORCPT + 28 others); Wed, 25 Feb 2015 06:19:28 -0500 Received: from mail-we0-f173.google.com ([74.125.82.173]:42503 "EHLO mail-we0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753304AbbBYLTZ (ORCPT ); Wed, 25 Feb 2015 06:19:25 -0500 Received: by wesw62 with SMTP id w62so2885321wes.9 for ; Wed, 25 Feb 2015 03:19:24 -0800 (PST) X-Received: by 10.180.90.197 with SMTP id by5mr5597952wib.70.1424863164053; Wed, 25 Feb 2015 03:19:24 -0800 (PST) Received: from mai.lan (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id m4sm24687356wik.20.2015.02.25.03.19.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 03:19:23 -0800 (PST) From: Daniel Lezcano To: mingo@kernel.org, tglx@linutronix.de Cc: matthias.bgg@gmail.com, robert.jarzmik@free.fr, linux@roeck-us.net, linux@rempel-privat.de, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] clocksource: pxa: Fix section mismatch Date: Wed, 25 Feb 2015 12:19:19 +0100 Message-Id: <1424863159-20620-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424863159-20620-1-git-send-email-daniel.lezcano@linaro.org> References: <54EDAF91.8060308@linaro.org> <1424863159-20620-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Robert Jarzmik As pxa_timer_common_init() is only called in init context, mark it as such, and quiesce the compiler warnings : WARNING: vmlinux.o(.text.unlikely+0x45d4): Section mismatch in reference from the function pxa_timer_common_init() to the function .init.text:sched_clock_register() WARNING: vmlinux.o(.text.unlikely+0x4610): Section mismatch in reference from the function pxa_timer_common_init() to the function .init.text:clocksource_mmio_init() Signed-off-by: Robert Jarzmik Signed-off-by: Daniel Lezcano --- 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);