Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp868595rwb; Tue, 27 Sep 2022 05:49:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5EGM2vOWOVawieaVJGYuhLE+w9WgDs0tMv1Wn5Ya3MF/Ib5zfdf19NPiv96O+qxADleM/g X-Received: by 2002:a05:6402:1f84:b0:455:27b8:27aa with SMTP id c4-20020a0564021f8400b0045527b827aamr26283072edc.243.1664282949873; Tue, 27 Sep 2022 05:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664282949; cv=none; d=google.com; s=arc-20160816; b=wAgcVRtozp5+p0Y+W7qi8Sm/+bqfBRkS9cSM3uSqnFEwONOwR//57IEnOmEEOzP7Ow OS0EVYgFapzWLD7JuRXAiVIQuzEnZyQlRgerwFatdWiQsvfuKsVL76KzakS08GITNcJC 84tEYb8HrqgcKfBhLERyD2OlTIRkgeBdq2pGkeClHr7+LONIZ72y9ong8c5c6TV3+fBe VyNlLjP9nUzeLYZioohOh2qjbYs0uVJ8cScE9EekilIjgnZd0EZEqgmDyCQB7gXTpNrR /CE+emjAGPUOkFKqhWuREvxW24VX2buz48irizhuXh0mMd7mjslvQYmlWUYZipU43SIn nzzg== 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=H4tMVDi4qCTNFLz5vFPwnXCVwCtc0ihmHLq6jXY76D8=; b=iosQJZdC2oQh1r+yC6/8coL7JyHiLg4Jz/uY2pt3uyOa8eP+vtX1QjFB2HzDR0o9LF jcnaZUvbzHdSVhspedF7x/PdA+9meHPoZdMCe53CBwpGEwD+qxh1efJuK420fkvW2Vu+ 0yWV9j0w9g7d4x8hgl5P2GSNCsiIqtI0rIh4kiJ90uZGlMI/qgX56yuUNCWNahT/z8PK Qp+EwfWCfQfct1x2hwIOinRjv0R9j0h2Lf+A2sdEuuyYNVSde2TAsZm7IgAyVIpOHt2v C80S8vYRrOOXf93xBJMelqy3wPccRm3me7C8u8k+SZnZgQfKuhp+QWYUmPTRq3FRlu+o TrXQ== 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 c62-20020a509fc4000000b004574dc3490fsi1377572edf.474.2022.09.27.05.48.43; Tue, 27 Sep 2022 05:49:09 -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 S231984AbiI0LzY (ORCPT + 99 others); Tue, 27 Sep 2022 07:55:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231260AbiI0LzW (ORCPT ); Tue, 27 Sep 2022 07:55:22 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A432E564D7 for ; Tue, 27 Sep 2022 04:55:20 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4McHyV2yfWzWgsp; Tue, 27 Sep 2022 19:51:14 +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; Tue, 27 Sep 2022 19:55:18 +0800 From: Xiu Jianfeng To: , , CC: Subject: [PATCH] cpu_pm: Add __init annotation to cpu_pm_init() Date: Tue, 27 Sep 2022 19:51:34 +0800 Message-ID: <20220927115134.209490-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: dggems701-chm.china.huawei.com (10.3.19.178) 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 It's a core_initcall entry, add __init annotation to it. Signed-off-by: Xiu Jianfeng --- kernel/cpu_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu_pm.c b/kernel/cpu_pm.c index ba4ba71facf9..57d32d73b429 100644 --- a/kernel/cpu_pm.c +++ b/kernel/cpu_pm.c @@ -205,7 +205,7 @@ static struct syscore_ops cpu_pm_syscore_ops = { .resume = cpu_pm_resume, }; -static int cpu_pm_init(void) +static int __init cpu_pm_init(void) { register_syscore_ops(&cpu_pm_syscore_ops); return 0; -- 2.17.1