From patchwork Mon Nov 6 13:34:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 118039 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2772891qgn; Mon, 6 Nov 2017 05:35:03 -0800 (PST) X-Google-Smtp-Source: ABhQp+SmAYjjflsoemwYImg2kpV7O73gfQfWxRwHvyLeIUYdGhkmYefSY8xer1SqOOUEdh0R+eXo X-Received: by 10.84.193.129 with SMTP id f1mr6291961pld.317.1509975302988; Mon, 06 Nov 2017 05:35:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509975302; cv=none; d=google.com; s=arc-20160816; b=k/+JJpSXQ47rR7qNzkZrxiR54//3ym0NRUly3QmWRBY8mD25Cvvb2d/WW5Kyj/nc2I LghAMfULdDT74PLZWx+wWkXCVMtTTKUnaXyHhbBMw5diRSwAcqfYm7oDV0P+D5NU89Zb 87gHXMqGAVBIRB9DbW/gwLTrczdoWpMowds715uFNg2iVN4qFS7uo8oRW0CdsPXufUh0 ZjFBd/PpJOkXwCN6X2f9XUBfROGjdLHYZkUx9aQVXyxiflzHzf7fPnICWOtL5sIYGQvN JwfeX77pq7wBxUNa6ruAuH3n+JWmdkF/sM7p13ouYEv+OlSvnW1tkLXO28WEdy/+jFEi UOsA== 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=Bmj3fX9jQ6x7BxMyuhdeNKGWBl2zdd/tUMoe8zIsLbA=; b=wz/dqtYELyK5YHWcfAJBVZ5fb4p2twvk1EO0QHqo5zlEdCkKcB+1Hf3N7J+iWeFVzU SlYJal52Noy0tvbOlcuuzTguOUwePsj//T336RKQeN1Qu/W8w2MUC25MERbu7mA7waHO e5GQDRwiJdj0ltdWfZfP+A6C4BuO4/dVZukS3v4h5JhqHfVD7K7d8v7N6kIN8RUsLG5i DvEm1PA0IZ5Vx1hH1fBEb1MyMRWH2CokxmFLvPpSPWiRPoCc0w9MXrXpMIiJVXwlaETU s0QOeCmRkn3/ofA4dDyVi2GmYHolBoVXilEtOPWd7QWaM76oL/ivTIbFEwUgNAyLqJvE Vx6w== 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 t125si11523190pgc.19.2017.11.06.05.35.02; Mon, 06 Nov 2017 05:35:02 -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 S1753261AbdKFNfB (ORCPT + 26 others); Mon, 6 Nov 2017 08:35:01 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:53981 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753043AbdKFNe7 (ORCPT ); Mon, 6 Nov 2017 08:34:59 -0500 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0MUPRO-1ecY3d24I6-00R11L; Mon, 06 Nov 2017 14:34:51 +0100 From: Arnd Bergmann To: Daniel Lezcano , Thomas Gleixner Cc: Arnd Bergmann , Benjamin Gaignard , linux-kernel@vger.kernel.org Subject: [PATCH] clocksource/drivers/timer-of: mark timer_of_exit as __init Date: Mon, 6 Nov 2017 14:34:35 +0100 Message-Id: <20171106133450.482858-1-arnd@arndb.de> X-M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Gwb8wGSk53Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The newly added function triggers a harmless Kbuild warning because of a missing annotation: WARNING: vmlinux.o(.text+0x448098): Section mismatch in reference from the function timer_of_exit() to the function .init.text:timer_clk_exit() The function timer_of_exit() references the function __init timer_clk_exit(). This is often because timer_of_exit lacks a __init annotation or the annotation of timer_clk_exit is wrong. The function is only called from other __init functions, so it can safely be marked as __init as well. Fixes: f48729a999ee ("clocksource/drivers/timer-of: Add timer_of_exit function") Signed-off-by: Arnd Bergmann --- drivers/clocksource/timer-of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index 7c64a5c1bfc1..e301fdb1286e 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c @@ -177,7 +177,7 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to) return ret; } -void timer_of_exit(struct timer_of *to) +void __init timer_of_exit(struct timer_of *to) { if (to->flags & TIMER_OF_IRQ) timer_irq_exit(&to->of_irq);