Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp668137iog; Thu, 30 Jun 2022 08:02:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u7zpoZFilIxFjS55el5T/RFpaY4ZMZZhlEhADf8TgrgvTyffZ73J9WwVEufmXN3PjKyL82 X-Received: by 2002:a63:8c1b:0:b0:40c:7af0:cdaa with SMTP id m27-20020a638c1b000000b0040c7af0cdaamr7949374pgd.326.1656601339959; Thu, 30 Jun 2022 08:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656601339; cv=none; d=google.com; s=arc-20160816; b=oYG4qxioErolRh5vTWF2D86fEm9l6nEp/m6/f+VRgyPlpWcDp3MFNao7V4bgld+OHI FAthY0gIqgk+c4ATx+ydV54tqBzXV0T6da0HI6Ai5JwDP/GyDbQ6ZkRCraOPtxUCg1zd 4HCtu2AMXI/F6j1wpDklM7HG0hDFwEZRGSbBviouCL4DLW688lJWq8ArHzkkc3h7+4wK VSTgsP1zjnrOJa1UQViZzuqnrDQovu9kINwH40IQVVyaMgF1SelWwoGBshF9M7dhIgv7 wVkogCyOGan+xOn24V5AILS755DvS/7v42wF/ygKdi6sK0Q5c9qrp7vmxpIwkc14+t6j R6ug== 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=gxKyXUP7SMKDnD3OtN4BrGx8BiHkRjpk/xZn+GsE6pM=; b=PxSsvjfaopyfXByjFPRD+jzfXYmJiohmDDUszsczShtxMvsxdIDqf+CwpEUi1YVUF+ 4jAK1M7PU4fnu7+CUXTnK5hx+NzLfAlhvax0p16/EQ5QbTe4hYAefiTPlQYLasl/OsoX Cnpe3M3QW+KI/jXcgZohA/HEyd+r+Ec7loZOW6B0mwg0WhP286ji0/UTYD6n+f/yWHdQ N7RNGg2N7dCekffYfYEy94Nrkdo1BpCVknjT07LCGH4V+MNDLllSaw5hcELX/JNvQLoB GENtAMH/lT6yt1FA5uBtLKF0FQx9eBZvDCWOeJRnr7lmJ/CrcVmu1kkNSCSsqmlzjgRr lFWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="EUE8/8qa"; 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 o20-20020a056a0015d400b005253974cdd0si31001875pfu.222.2022.06.30.08.02.01; Thu, 30 Jun 2022 08:02:19 -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="EUE8/8qa"; 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 S236659AbiF3OHF (ORCPT + 99 others); Thu, 30 Jun 2022 10:07:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236593AbiF3OGJ (ORCPT ); Thu, 30 Jun 2022 10:06:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED0B86EEA9; Thu, 30 Jun 2022 06:54:10 -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 3BA176211C; Thu, 30 Jun 2022 13:54:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48116C34115; Thu, 30 Jun 2022 13:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656597248; bh=tUbC9P3+yubDDefe29H5IMHi8x/o38Uf9ZD+Vi3xwK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EUE8/8qagHcuvBzXf6NoH0yN3Jj4ZAmCTCIckudkX2FSUGcJsrySNKnk93i21osaB wgRltucYMpbCATxhU+7SAUCLWs1HqhUERNukD0YpeJ4Rbi7mxBeOB5Ue0H9hqDzuwE ujelhR/6ChSvkP0O7j6cNhP6f+92teAJralnhojI= 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.10 04/12] clocksource/drivers/ixp4xx: remove __init from ixp4xx_timer_setup() Date: Thu, 30 Jun 2022 15:47:09 +0200 Message-Id: <20220630133230.813883677@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220630133230.676254336@linuxfoundation.org> References: <20220630133230.676254336@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 @@ -170,9 +170,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; @@ -245,9 +244,8 @@ static __init int ixp4xx_timer_register( * @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