From patchwork Wed Feb 25 10:31:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 45036 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D43C920502 for ; Wed, 25 Feb 2015 10:31:48 +0000 (UTC) Received: by lamq1 with SMTP id q1sf2166216lam.0 for ; Wed, 25 Feb 2015 02:31:47 -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=ebrfVqUJmYuzocd90EpmNflG8nLSD13O7xVaKahe4kPkb2T5U0qVEy/u5RSmFgEwUn gSqndIgwOI1OCcE3NyxeEAkNvcWNO9hHwBLu8qrhv58qOBc/IjnDbedOlTjDs+7jTVkC wp0kYONJATcwNWC8p2nlXo/Xa8r4JkAjxEccfQjCdC1A8N5uMjlPB4/m+QRWzV0g/rot voikGnRfqNf7wt08MmYD3XvNtc+JOrfkE1s8vqsu6kzWvao0zcIuWcW1VnTgbCoH2npF EBbVKjWlq/J364vX5azWmtUcebtWOY0OfxExSYwjrmq7T57mxd+1xN0g5ZQ0CTYmZrF8 m8kA== X-Gm-Message-State: ALoCoQnxWer0JzRGekYuSI6OEU/5sU82sN/C3CTaYk4pf8OLm++6mvRiAf0vb3WTTsw/N2wZeBWc X-Received: by 10.112.161.9 with SMTP id xo9mr367291lbb.7.1424860307760; Wed, 25 Feb 2015 02:31:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.98 with SMTP id bf2ls666276lab.70.gmail; Wed, 25 Feb 2015 02:31:47 -0800 (PST) X-Received: by 10.112.138.105 with SMTP id qp9mr2175230lbb.104.1424860307584; Wed, 25 Feb 2015 02:31:47 -0800 (PST) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id k1si9175400laf.111.2015.02.25.02.31.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 02:31:47 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbiw7 with SMTP id w7so2840432lbi.9 for ; Wed, 25 Feb 2015 02:31:47 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr2065138lal.73.1424860307468; Wed, 25 Feb 2015 02:31:47 -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 h5csp2525735lbj; Wed, 25 Feb 2015 02:31:46 -0800 (PST) X-Received: by 10.66.102.33 with SMTP id fl1mr4147125pab.150.1424860305755; Wed, 25 Feb 2015 02:31:45 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fc8si3276250pab.129.2015.02.25.02.31.42; Wed, 25 Feb 2015 02:31:45 -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 S1753348AbbBYKbi (ORCPT + 28 others); Wed, 25 Feb 2015 05:31:38 -0500 Received: from mail-wg0-f47.google.com ([74.125.82.47]:36726 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752608AbbBYKbY (ORCPT ); Wed, 25 Feb 2015 05:31:24 -0500 Received: by wghk14 with SMTP id k14so2710357wgh.3 for ; Wed, 25 Feb 2015 02:31:23 -0800 (PST) X-Received: by 10.180.221.232 with SMTP id qh8mr5050624wic.19.1424860283014; Wed, 25 Feb 2015 02:31:23 -0800 (PST) Received: from localhost.localdomain (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id nb9sm24522798wic.3.2015.02.25.02.31.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Feb 2015 02:31:22 -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 11:31:16 +0100 Message-Id: <1424860276-18334-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424860276-18334-1-git-send-email-daniel.lezcano@linaro.org> References: <54EDA19F.7050903@linaro.org> <1424860276-18334-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.217.174 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);