Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp375288rwb; Sun, 25 Sep 2022 23:05:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5mTQwCbwQYCZ3ZcdhAjpqiqOarBOitcHF6CGMj9AXON/1Xy7VCPbBmCqCAYgwjtntksMEN X-Received: by 2002:a17:903:11c7:b0:178:af17:e93e with SMTP id q7-20020a17090311c700b00178af17e93emr20464177plh.78.1664172318138; Sun, 25 Sep 2022 23:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664172318; cv=none; d=google.com; s=arc-20160816; b=xOh9DjtB/ma3gOy8m011jOdNKNyYlIPE+RHwn1rZG3iS2wGG5aUmHpnEjDEQsw8Um1 EhUdp5xzFNtyMSbs91xQEh1/ghZZ59MKPadBYuRbdhK0krmw97dZB4hhnGp7rFsxfKZg QjpC9COQUZm6DSh3Q6KgrRtVeV5YIJeEi9Vt+aRT8WrzDbRjtnndowlj07A216pipCjU jfgXw2SsjnrRy5yC4ZucSqGnAoQWdtmqoFuHma0H6YYKeyKog0dSf5qNa4tLvl6a7iTE jolRb+KYxqavJizRd7i3ZNJdH87tJeevzY8V+GNkH7lTRrrNowkJA99N/1AL1mx+AHvT Kx5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=q1MkQ8ILhoEBa3u1R8RbxKh8BDLbaCvY9GtJu4Q7z6E=; b=arjvA2KSlRfDNJOyi1x0gIxs0tyLXfA3S492R0CecIM5vu4rB9KZv3QI3Swvthfd0a vHZDYD6pgb5RzJ9hQVsY8iX6Gm5BjKNE81Ue1E8IIGxo1Zo2AGJpAylam/vV0Swba7vN 4iPbbMkyuPdURuLW8CgIteWs4JGmQk+vSLLvYPAM0wwTWPzbheZxXkPbFrbN1Ibwv+ZK PJnk2u02ZofFaOmU4KqFPwu70yV7aUyed36xot2uDR5ynT0VxZJonInGSh1H12Vj7d1G bWwGx3HADoyjnbhwvK9hjauFCnzno8Fn/6XymobXY/u5+jhju+RiBqbjMAkK9P/UhVdF nKqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pH3strem; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a633103000000b0043cc924d365si322322pgx.451.2022.09.25.23.05.06; Sun, 25 Sep 2022 23:05:18 -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=@linaro.org header.s=google header.b=pH3strem; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233274AbiIZFpx (ORCPT + 99 others); Mon, 26 Sep 2022 01:45:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233157AbiIZFpu (ORCPT ); Mon, 26 Sep 2022 01:45:50 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69A94E00B for ; Sun, 25 Sep 2022 22:45:46 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id a5-20020a17090aa50500b002008eeb040eso11859564pjq.1 for ; Sun, 25 Sep 2022 22:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=q1MkQ8ILhoEBa3u1R8RbxKh8BDLbaCvY9GtJu4Q7z6E=; b=pH3stremd391//HLMBQ6qdN1AET98BpBGv3XILzIY/Hl/oZflhErlSKsjuR9byiu9o cEBtihHrT/fG5C46XWwABpAjX9X6ixT7n5lpNFsZkTC+cJoynrySf7VrH6/gyTg3xV/m XZ3u2aL4TndEo1Qi72ouHsK8qrwPJ8KzMHyTolDhA/nBIi1zp6i/RIixclo14k2XeLUK Od11mvdChBk2ufHxXixPx+OAKz2V7FBkmGZjbcWpJNqoWn0jXGMPPRcFXqxhPGje5ucH xjyrvwe6JYxVDMkseDWQq3OFMJvBE0jeKPhp3M6+4GOG1avixqNyuYcwBeU9BeEatcOt w+Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=q1MkQ8ILhoEBa3u1R8RbxKh8BDLbaCvY9GtJu4Q7z6E=; b=LkyQon4pIr8OjkzNEAc8WVP82saDBzFRjDEa0HcvfG1cyOEKNSBQwmeopR0hoOCaym LO0ut/IeXY9W+n/YGn7hI15OpXkRO3q7FgTa+A8FJ7n8n6odccSIzWM2cuC2y5iJ85n5 5SCJP8+EVLP/ft49wJN05nyOkFDK2yfoiBC1Ks98CAgntzvu7bP+OyrgVPLguNLqPwSN PZUHoFv+5vMYvFiYFbYuR7bHggpcVMvtp5vneKPPwyub3AbM+Zemboapn2rPzYn/8MTz Mjb8fUvf8TdzwyM5vh882Gc+4vN2EcevfHQ7ahJWqhZuM8bc8u9DLooiYB1GyrfgFvHf NpTQ== X-Gm-Message-State: ACrzQf39svANk4ec4vqZy1AiMUX0cfVyL+t8fExGqD8GDeTKwQbv4y1X hXo5MSeFrX7x6pkoQqtRVzTAHVY5rvje0A== X-Received: by 2002:a17:903:120d:b0:178:ab0a:19a1 with SMTP id l13-20020a170903120d00b00178ab0a19a1mr20382501plh.11.1664171145698; Sun, 25 Sep 2022 22:45:45 -0700 (PDT) Received: from localhost ([122.172.85.153]) by smtp.gmail.com with ESMTPSA id rm10-20020a17090b3eca00b002026423d79asm5762961pjb.46.2022.09.25.22.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Sep 2022 22:45:45 -0700 (PDT) Date: Mon, 26 Sep 2022 11:15:42 +0530 From: Viresh Kumar To: Xiu Jianfeng Cc: rafael@kernel.org, patrice.chotard@foss.st.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] cpufreq: Add __init annotation to module init funcs Message-ID: <20220926054542.7lioabuunsdoeqqy@vireshk-i7> References: <20220924092159.56594-1-xiujianfeng@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220924092159.56594-1-xiujianfeng@huawei.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 24-09-22, 17:21, Xiu Jianfeng wrote: > Add missing __init annotation to module init funcs. > > Signed-off-by: Xiu Jianfeng > --- > drivers/cpufreq/highbank-cpufreq.c | 2 +- > drivers/cpufreq/sti-cpufreq.c | 2 +- > drivers/cpufreq/ti-cpufreq.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/cpufreq/highbank-cpufreq.c b/drivers/cpufreq/highbank-cpufreq.c > index ac57cddc5f2f..a45864701143 100644 > --- a/drivers/cpufreq/highbank-cpufreq.c > +++ b/drivers/cpufreq/highbank-cpufreq.c > @@ -55,7 +55,7 @@ static struct notifier_block hb_cpufreq_clk_nb = { > .notifier_call = hb_cpufreq_clk_notify, > }; > > -static int hb_cpufreq_driver_init(void) > +static int __init hb_cpufreq_driver_init(void) > { > struct platform_device_info devinfo = { .name = "cpufreq-dt", }; > struct device *cpu_dev; > diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c > index a67df90848c2..1a63aeea8711 100644 > --- a/drivers/cpufreq/sti-cpufreq.c > +++ b/drivers/cpufreq/sti-cpufreq.c > @@ -252,7 +252,7 @@ static int sti_cpufreq_fetch_syscon_registers(void) > return 0; > } > > -static int sti_cpufreq_init(void) > +static int __init sti_cpufreq_init(void) > { > int ret; > > diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c > index df85a77d476b..f64180dd2005 100644 > --- a/drivers/cpufreq/ti-cpufreq.c > +++ b/drivers/cpufreq/ti-cpufreq.c > @@ -398,7 +398,7 @@ static int ti_cpufreq_probe(struct platform_device *pdev) > return ret; > } > > -static int ti_cpufreq_init(void) > +static int __init ti_cpufreq_init(void) > { > const struct of_device_id *match; Applied. Thanks. -- viresh