From patchwork Mon Nov 6 14:48:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 118060 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2847448qgn; Mon, 6 Nov 2017 06:48:49 -0800 (PST) X-Google-Smtp-Source: ABhQp+RrL5dQ2Ci9bA0dbFS7ID/WMEwUGWzh/iXK0arwo+txE+IB1PjFgfYJuXnKgE6UA16cw+Sr X-Received: by 10.99.106.136 with SMTP id f130mr15526730pgc.430.1509979729070; Mon, 06 Nov 2017 06:48:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509979729; cv=none; d=google.com; s=arc-20160816; b=Cu147q1vW/8HyKTELM4IFNHd1/G/sITvFraQG9FRKmeCyDMns0TTK6Z7NnW4AKFudi MMEi6a+jM9JA8i1Gtl29XsRPwS2mN21QT9na64QOsxXC4+8L0rM7UMgxBcjLcUb+IMLG Le5OtuLTn5hsRF5GAnSICvsqBdrTIeMeJRwSYaLxlCQLdYiVBld2LibTmuKlJre9lcE8 GBxtxfhfkRBRclAYwKNi5FEys1Y9Zz4LuHzro8ANNUgGf9VSsUsh7beCGdRtxVJpUrEF jFkgrhpLUlaIpRAXoO1nM+qzMwJblmFTrC4yuDa5G16ommsAsd+yeB5K07KRJK/REg7o Cq+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3+Syx6BTzQC98BqF/Wc+8ku0qE9L/XdGvFw3s7UxK28=; b=glWSYOptcxONCsatf4erwCFswYdyQIngGMfKGRHvN4A1xeo86zGkNXxyjZSwyqYjzu P9jZVrjNjmM6OEBZ6mXrsBv/7G1WV8L4J15k70tLa3rOPj6r8r7hMHQKK9CfMyOq+nkU wf42lxguyM4R9BK/4tMfC+2CREBbUesJCncHqgzzv322DCbtGOqQGFp54f8VnCiOJIDs OiwBIksgBZcpzYHYaus53YEYncg2ZLfPxliyWQuVWUiGVt/dVtqHfsUc1SbpIFkAZ6o8 91GmJZJiXJMmbwXT/Njo3klZI2tF+eF6IPDyJisx2yJPURnitoJUzAwsiaBN6zDyF3di XEgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si11513975pgc.681.2017.11.06.06.48.48; Mon, 06 Nov 2017 06:48:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932465AbdKFOsr (ORCPT + 26 others); Mon, 6 Nov 2017 09:48:47 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36446 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753206AbdKFOsq (ORCPT ); Mon, 6 Nov 2017 09:48:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B13F41435; Mon, 6 Nov 2017 06:48:45 -0800 (PST) Received: from e107155-lin.cambridge.arm.com (e107155-lin.cambridge.arm.com [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C53E13F3DF; Mon, 6 Nov 2017 06:48:44 -0800 (PST) From: Sudeep Holla To: linux-kernel@vger.kernel.org Cc: Sudeep Holla , Daniel Lezcano , Thomas Gleixner Subject: [PATCH] clocksource: timer-of: drop __init annotations in timer_*_exit functions Date: Mon, 6 Nov 2017 14:48:36 +0000 Message-Id: <1509979716-10646-1-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org timer_{base,clk,irq}_exit functions have __init annotations. Commit f48729a999ee ("clocksource/drivers/timer-of: Add timer_of_exit function") added timer_of_exit to undo what has been done by the timer_of_init() function, which means we need to drop __init to use timer_*_exit functions. It also generates the build time warning: "WARNING: vmlinux.o: Section mismatch in reference from the function timer_of_exit() to the variable .init.text:$x The function timer_of_exit() references the variable __init $x. This is often because timer_of_exit lacks a __init annotation or the annotation of $x is wrong." This patch fixes the above build warning. Fixes: f48729a999ee ("clocksource/drivers/timer-of: Add timer_of_exit function") Cc: Daniel Lezcano Cc: Thomas Gleixner Signed-off-by: Sudeep Holla --- drivers/clocksource/timer-of.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index 7c64a5c1bfc1..701b476ccc7c 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c @@ -24,7 +24,7 @@ #include "timer-of.h" -static __init void timer_irq_exit(struct of_timer_irq *of_irq) +static void timer_irq_exit(struct of_timer_irq *of_irq) { struct timer_of *to = container_of(of_irq, struct timer_of, of_irq); @@ -72,7 +72,7 @@ static __init int timer_irq_init(struct device_node *np, return 0; } -static __init void timer_clk_exit(struct of_timer_clk *of_clk) +static void timer_clk_exit(struct of_timer_clk *of_clk) { of_clk->rate = 0; clk_disable_unprepare(of_clk->clk); @@ -116,7 +116,7 @@ static __init int timer_clk_init(struct device_node *np, goto out; } -static __init void timer_base_exit(struct of_timer_base *of_base) +static void timer_base_exit(struct of_timer_base *of_base) { iounmap(of_base->base); }