Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp654709iog; Thu, 30 Jun 2022 07:46:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tDWet2hXuhEGeI13DUTb/g5rSxAlE1VoNhu5n7yZEfNm5XuwKMCc6Z6Tfc/DLtgLDmFzFZ X-Received: by 2002:a17:90b:3a8d:b0:1ef:7d4:6a5f with SMTP id om13-20020a17090b3a8d00b001ef07d46a5fmr10559938pjb.139.1656600389104; Thu, 30 Jun 2022 07:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656600389; cv=none; d=google.com; s=arc-20160816; b=vHvfEPPxgInpGBECLbXV/aiH3/1uFq2jK+nY+tAg+18NZuWRXuyGvG7s9OOcl0N+er pbK2KVl6zAvlNH5wGJn48lhoSPwNWzoqIO+lqj0hIGgwAOvVKb720z4v/z388UjQU/3j 6y9K3lueIy5h2ly+S1JsYqE0Yd7YP1smyVSiRPkHN0fFsP9bcxqljdES+Jo9KvGf+vUS 9BjcKGvRgh9moq2ZzTh64DXfW+984JCVZtIyetZFCgop9Lxq8t2yiqtFybq6MbjLQtci 69xUO4L8mEPrjM9BBD45MbCQ/nWndJ/RGuLuht2P8aN5idGbkwMtKQAWlx9g8+YRYOMT vaeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Bs64oKpaSkzZyNnoOkg3LWBJIS8J+QKWI5/aThBrMjM=; b=bYMHaYAogF6dW4SVmfgviUtrKmsgaDGKlqgt/vZAUTZYDn5HwAL8kUXVW9tQRjvkiw t/2ivcikRu+bzg7bHHAPdFN1CMU+Amhe0Bp+07H8TUmHkctJ5RCeZpXkEFBDOlbz6U1z s7Z7EIfQQ3BwcdvamabcmSzOmu1gUHI20DXLSROt4Z0dpoj7/+Ohi7JG6JpegbaANalk h2T8Fx5ZJtGjIABakc2ZueGQ2WB1JSfWcNz8hEgP4ASUdyqHT1P+7AimK8gnXf8Rb8re ayvpOvxI/8rBPDaG/2NEkgaibaye4rxqWCCm5MAepGW1MMWIgmUEg8AuFn3YR4NfK32x J11g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eyxXY+kM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g33-20020a635221000000b003fd74779846si28511099pgb.826.2022.06.30.07.46.17; Thu, 30 Jun 2022 07:46:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eyxXY+kM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236475AbiF3OI0 (ORCPT + 99 others); Thu, 30 Jun 2022 10:08:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236826AbiF3OHh (ORCPT ); Thu, 30 Jun 2022 10:07:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A18B748835; Thu, 30 Jun 2022 06:54:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6542662123; Thu, 30 Jun 2022 13:54:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6920FC3411E; Thu, 30 Jun 2022 13:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656597281; bh=piyC3L6uuPyfoT9X7ui+FEczQZnzKsyn7sl7Q/Oeuds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eyxXY+kMFidI4c4DISExrtIyEW+V2MERDvTzigtF7NbbCppcwGbpz315Cxk8RX84H 1es1MgQYe0BcrlDA8FiZ50OCIwW15JZiYeCExM8jVnHJghyUy1G4NqDsnxkxAA/oR3 2wHuaWEE6OcwH419KYTjfZn2jKyocLEI5hnT+G0Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Walleij , Daniel Lezcano Subject: [PATCH 5.15 02/28] clocksource/drivers/ixp4xx: remove __init from ixp4xx_timer_setup() Date: Thu, 30 Jun 2022 15:46:58 +0200 Message-Id: <20220630133233.000575254@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220630133232.926711493@linuxfoundation.org> References: <20220630133232.926711493@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman ixp4xx_timer_setup is exported, and so can not be an __init function. Remove the __init marking as the build system is rightfully claiming this is an error in older kernels. This is fixed "properly" in commit 41929c9f628b ("clocksource/drivers/ixp4xx: Drop boardfile probe path") but that can not be backported to older kernels as the reworking of the IXP4xx codebase is not suitable for stable releases. Cc: Linus Walleij Cc: Daniel Lezcano Signed-off-by: Greg Kroah-Hartman --- drivers/clocksource/mmio.c | 2 +- drivers/clocksource/timer-ixp4xx.c | 10 ++++------ include/linux/platform_data/timer-ixp4xx.h | 5 ++--- 3 files changed, 7 insertions(+), 10 deletions(-) --- a/drivers/clocksource/mmio.c +++ b/drivers/clocksource/mmio.c @@ -46,7 +46,7 @@ u64 clocksource_mmio_readw_down(struct c * @bits: Number of valid bits * @read: One of clocksource_mmio_read*() above */ -int __init clocksource_mmio_init(void __iomem *base, const char *name, +int clocksource_mmio_init(void __iomem *base, const char *name, unsigned long hz, int rating, unsigned bits, u64 (*read)(struct clocksource *)) { --- a/drivers/clocksource/timer-ixp4xx.c +++ b/drivers/clocksource/timer-ixp4xx.c @@ -161,9 +161,8 @@ static int ixp4xx_resume(struct clock_ev * We use OS timer1 on the CPU for the timer tick and the timestamp * counter as a source of real clock ticks to account for missed jiffies. */ -static __init int ixp4xx_timer_register(void __iomem *base, - int timer_irq, - unsigned int timer_freq) +static int ixp4xx_timer_register(void __iomem *base, int timer_irq, + unsigned int timer_freq) { struct ixp4xx_timer *tmr; int ret; @@ -269,9 +268,8 @@ builtin_platform_driver(ixp4xx_timer_dri * @timer_irq: Linux IRQ number for the timer * @timer_freq: Fixed frequency of the timer */ -void __init ixp4xx_timer_setup(resource_size_t timerbase, - int timer_irq, - unsigned int timer_freq) +void ixp4xx_timer_setup(resource_size_t timerbase, int timer_irq, + unsigned int timer_freq) { void __iomem *base; --- a/include/linux/platform_data/timer-ixp4xx.h +++ b/include/linux/platform_data/timer-ixp4xx.h @@ -4,8 +4,7 @@ #include -void __init ixp4xx_timer_setup(resource_size_t timerbase, - int timer_irq, - unsigned int timer_freq); +void ixp4xx_timer_setup(resource_size_t timerbase, int timer_irq, + unsigned int timer_freq); #endif