From nobody Mon Apr 6 03:11:36 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 434BFC54EE9 for ; Sun, 11 Sep 2022 03:42:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbiIKDl5 (ORCPT ); Sat, 10 Sep 2022 23:41:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbiIKDly (ORCPT ); Sat, 10 Sep 2022 23:41:54 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4C12A404; Sat, 10 Sep 2022 20:41:53 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MQFmz54BqzmVBh; Sun, 11 Sep 2022 11:38:11 +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; Sun, 11 Sep 2022 11:41:52 +0800 From: Xiu Jianfeng To: , , , , , , CC: , , Subject: [PATCH] x86: platform: add __init/__exit annotations to module init/exit funcs Date: Sun, 11 Sep 2022 11:38:23 +0800 Message-ID: <20220911033823.127075-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.67.174.58] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add missing __init/__exit annotations to module init/exit funcs. Signed-off-by: Xiu Jianfeng --- arch/x86/platform/iris/iris.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/iris/iris.c b/arch/x86/platform/iris/iris.c index b42bfdab01a9..d3381340c5f3 100644 --- a/arch/x86/platform/iris/iris.c +++ b/arch/x86/platform/iris/iris.c @@ -88,7 +88,7 @@ static struct resource iris_resources[] =3D { =20 static struct platform_device *iris_device; =20 -static int iris_init(void) +static int __init iris_init(void) { int ret; if (force !=3D 1) { @@ -112,7 +112,7 @@ static int iris_init(void) return 0; } =20 -static void iris_exit(void) +static void __exit iris_exit(void) { platform_device_unregister(iris_device); platform_driver_unregister(&iris_driver); --=20 2.17.1