From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753260AbdKFNfB (ORCPT ); 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 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-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:SJwyQEs9HEWgcCPl9aUmqIKUgNB/AqEli4uV+1hvgM/3Y9VVL3s zpOkKzlft7lyLuJS+XFV+JRjailZBcqkKHEuAuoQQPJjm3Lgo/w65bxRjfpCLR6L4BgPKXG h6DOoY2IwqAJqseA7ZXvY+T0oEx2PcDcOKRWcaDKYkUpPDFeXv2kB0RRp5KEXNSLND/JrJi ulMf0qL+722ECGIgiDaCA== X-UI-Out-Filterresults: notjunk:1;V01:K0:CyzdjmoIKPY=:0rd5Denk+rORwiNvhsGhte NPFIGQfDtGoXX9DXDH6R6b8V4ODizJwN6La4YwdIewUxqY0LndHNgTfN2jjQxlXD+2DzffoW4 Zk+oLRHaRUW0PsaGTDXw77kLhkr5y/KGWMhR3Gn6yi3vMCnVdNZNOfEhrTJ7x8I1VxhnfYcQS XuuKXIAAPz7wol3wEphNXsvJctOiUz9Mljl+PkZJ29mCyWEQtZTkFz4QdV12jgHyf+WU1Zots IMOF0tM8wd9Kkw1xedciZpMLi2cOJ+67f11dQmcPDtZ1VZGbD7GuSS+CzGPn7UFDTe3juxAOc cHR+R84wDQI6aN7M3ytyOs3ywim4vXaWPmyuwa4SMwQ5ueTRjUlc9SSvjgurC1PlZ/XpPwCu1 eobB1oBRLCsBOJGVOHQ5p0pGOSR8sg7A+/FSWBlchcDz0uosPo8/ekr0gcUXy1/piW4rOnk5u dlmX5sR30r97fL6y0XCo2axMnp/3a0Cq/s9vq7O72CI1xctTiTd2z+nBJOb5TN7TdekD/MJoE 1kjNi8T0zoBeU2iuMEfYRoPKx1dQgK6E8G708KpFJRXoi/wgHAWZIks3dBzqa+EOkm0d0aCmE f5rlGN5VdOyLD33seOpQ04nZjFtGifnfClaL61uu2RKihHvQHfL4TSr0cyx+Eh+nzgVSV8l9P BJckDteASxtUG+F4RajCVzO0kK6W6tnvNJSDDWflx7h+mP1E7FOD6tndpqo9l7ArbCKjS/Vqy YP4+wcXgij9ESfL0yLT0I39s1DFGwb8wGSk53Q== Sender: linux-kernel-owner@vger.kernel.org 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(-) 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); -- 2.9.0