Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2088790rwb; Sat, 24 Sep 2022 02:46:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5yMmcXTG/a+UL98G8F0yfhhcXE9PWbalwT5C7vuu6wrV8jKU9iwTm8Okkp8aVFSwEgR9ms X-Received: by 2002:a05:6a00:e1b:b0:537:7c74:c405 with SMTP id bq27-20020a056a000e1b00b005377c74c405mr13154910pfb.43.1664012783065; Sat, 24 Sep 2022 02:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664012783; cv=none; d=google.com; s=arc-20160816; b=h3KysX7uzuZxGmBi+YExF0Pi2yy2+u0U0thEDG1WI0cY5CjlzfpCBtrVdPeId6SOYA Fq1gOu7lXT2j8LTtEc/gCn/w/lCTVFhJLNUnCYEj+3kzoL+gPEUF9s/kvM4htV95PxWt 5WzbQOmvINtkI6sjyy1hk+wW29qm+jK5cyMXZ0szb1rUKS0ZEvqVALgocB+7JkBx7QU0 er1nbK/y3eUykHa5JMyBGR4ZRq6LcRZtkTboUNe1yBBZDfccML1D++y79Nulum4hHdQD dl6ssJM9S5n/bqEO4777vp6MuCdsUUOxdeIJnsICJyZYNrXXkQuhIAJVerj1P8V77TSG AP+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=hlCtvZKgumt4dOEIMLfFNK/ZAvX6icELc9WO3vbuVjs=; b=HgWXn6YY4YdfEsUVl5DV+5PZQztOsHRKDJqiPqdAltueKWMWqcuwvlicPGu8JUnDZZ 5oYntyKYKQxRFzyJECNGdNlVsxrQpGWzhmcGSv/PXW8x/ZKPT3u9BV3GwnT2yB6pyl4j jiXMu4bVo8j0d3pOEfN2Xmc6mCY+WP5bsPX157NQ9Y6sCnJAcM3T+y1fy0MY9Hoq7yT8 GqBC9VbQuU/fZy66wN0aUVpecbjtuGbBc0bmhi/LWMrzwIf9q7jTfaCgzsaQ/XywUuOQ qE3U9YSEadO1yJFrNwlaenhv1jhPLCTRUsqSgNwq6KL8JU+tB1TGKZQobtjKMhPSfA26 A+Ig== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8-20020a170902ec8800b00178bd919d9esi7136807plg.253.2022.09.24.02.46.12; Sat, 24 Sep 2022 02:46:23 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233102AbiIXJ0L (ORCPT + 99 others); Sat, 24 Sep 2022 05:26:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233550AbiIXJZr (ORCPT ); Sat, 24 Sep 2022 05:25:47 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53C6D41D2D; Sat, 24 Sep 2022 02:25:45 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MZNn82HCYzlXKk; Sat, 24 Sep 2022 17:21:32 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.58) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 17:25:43 +0800 From: Xiu Jianfeng To: , , CC: , , Subject: [PATCH] cpufreq: Add __init annotation to module init funcs Date: Sat, 24 Sep 2022 17:21:59 +0800 Message-ID: <20220924092159.56594-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.58] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 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; -- 2.17.1