From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751843AbdIOTnW (ORCPT ); Fri, 15 Sep 2017 15:43:22 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:49987 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbdIOTnV (ORCPT ); Fri, 15 Sep 2017 15:43:21 -0400 From: Arnd Bergmann To: Daniel Lezcano , Thomas Gleixner Cc: Arnd Bergmann , Thierry Reding , Linus Walleij , linux-kernel@vger.kernel.org Subject: [PATCH] clocksource: integrator: fix section mismatch warning Date: Fri, 15 Sep 2017 21:42:59 +0200 Message-Id: <20170915194310.1170514-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:ZrxncCofLyNbI0XK5nshq2e0Wf1n4V4Y3LV+tlNPRlbtq4e+6d0 Wyawg8uAPG80/ZPT/6We7llzQRjpo9IQLkj50K6To6OypokuU4pUDYi+hc1Eh8SFLtNTneD OGAlCBC28o+Ib8LDf78cW1jt54uyFtELbIocVoWjZ6Wpck89dVqnnjl3sUi8oeOyweM9Wgu klCc7NcAIzdhR2a+9TUUA== X-UI-Out-Filterresults: notjunk:1;V01:K0:A6k/VG9vUPg=:ThIIEQEyILAWKD7/Px+apL SCQHOPRSq2onK0s1mvTRsl0Ajg4DlXaPxuuAbiKhxgCZCrKUnDuh43GfvbhPOAjOj1c2vu+ja R5rB2XlPfFJFfQxtrRF/9jS7/o3xoIwfcCblCK1q9y0zFZbRiWuzbCUaF4u74//almTBtD/GE esDKwNQKROBL+cBpCqsVt/IkvqEtNcBVo7PrEf2DPeSSBeSzkRW0iZg68Vwlexp7GOohlzrzh DhQkfaPoArGfms7DnHU1hNuOy055OJGInOthJJK3xHV/YaiZYJms5L9ktTgrp/ajbbnjJVJkB x7DtKtIZQ+DcrWq4bykC6fPgR/OzzQdi/0FT31kUJBT+4dTRJZyW08BsQ8lQ0WI9zqqpXQdqI Dc7ioTZLttrrqmQFbsa/0m2vf/pSZqRFrIDXEb8r8GzBSwEWXm8usTGWHx5dd1DfkWfdLCXWG Q++CW0d6LBiP1JQgsJNcHhOZ+7ZhlWeZDtD3bxfPJiVKgGyohYQAkvdSQVvPs9X6jP+szpPn4 wQuqWREFLUFkouRiK2n7sV9UOv/O9Qr+DekAWJOpWOOYvtLI4kXX5bYvp42FD9w/G+Sg8sI5D +fQmcBNlWram9FsmqTnSh4CR9Lv7/Dudszj2YsDyKvvJzw2L/FGaHIhUufNZEMFI2sGXqwtIT YRh3v/PQh2CoiRcIjQpD9xxBNfyxFvKRfVy/wvACBG5Gq8taqJdKRT9U7cCr7Y249natDqUKc tj7TMpBvzsh9B6Z0V14lQMwnYtPg8wMcBFeXsw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gcc-4.6 and older fail to inline integrator_clocksource_init, so they end up showing a harmless warning: WARNING: vmlinux.o(.text+0x4aa94c): Section mismatch in reference from the function integrator_clocksource_init() to the function .init.text:clocksource_mmio_init() The function integrator_clocksource_init() references the function __init clocksource_mmio_init(). This is often because integrator_clocksource_init lacks a __init annotation or the annotation of clocksource_mmio_init is wrong. This adds the missing __init annotation that makes it build cleanly with all compilers. Signed-off-by: Arnd Bergmann --- drivers/clocksource/timer-integrator-ap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-integrator-ap.c b/drivers/clocksource/timer-integrator-ap.c index 2ff64d9d4fb3..62d24690ba02 100644 --- a/drivers/clocksource/timer-integrator-ap.c +++ b/drivers/clocksource/timer-integrator-ap.c @@ -36,8 +36,8 @@ static u64 notrace integrator_read_sched_clock(void) return -readl(sched_clk_base + TIMER_VALUE); } -static int integrator_clocksource_init(unsigned long inrate, - void __iomem *base) +static int __init integrator_clocksource_init(unsigned long inrate, + void __iomem *base) { u32 ctrl = TIMER_CTRL_ENABLE | TIMER_CTRL_PERIODIC; unsigned long rate = inrate; -- 2.9.0