Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3807862rwn; Sat, 10 Sep 2022 21:41:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR7L1rBSgms2ug/WiYo/iYCUjM26d7MUHQPCGzoflM9LEDI2EMzhT2X1agefDeVFhRigeDvd X-Received: by 2002:a17:906:5d0f:b0:732:fb97:780d with SMTP id g15-20020a1709065d0f00b00732fb97780dmr15039587ejt.269.1662871318779; Sat, 10 Sep 2022 21:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662871318; cv=none; d=google.com; s=arc-20160816; b=lHOVBIjm4k3CkG/p85yCHvmNxMV8Hb6fOtSMhFucs4qTkTe2H17CUUGXwsQrmVs/Cb vouhKMf2bSaF2hSXqK+xo0ugzk3DXSbkp0ObT++77iE9ChXo0dMubJC1jS3kH7CNz7xP ONZVdtvaROzlThyRG1CS73dQN6Ad9U/GAOCdLuED+wJFHn+Ih4p8TcxUH53iTTUDUElQ LjylXRR11JuBagX3KXNa59wxGZU2qHZHzXlIhYvgl6d4GWKkPHu7a8AfB4gZ+bDLkIqh SnTEAf0NQ/8FCCA245e+8ik4Mk2NQPOWCkbOJLyDWT/fnI4uuEMI/uloFWnpXip2bcNp ESJw== 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=lHzsYrNwGnANr5cykpo8iodki1zyVjW7uDky/R5q0pA=; b=xYDI+XLU8CZrQSB62SSAN8sDU20JEO0Hq+0/rIxChJNp8udRShuxwo5oRZ2uqKhGNk 8lFI47C0mMRkRqSF1oTtLIDlrqcMZvUq3/LsZYxSM815XdBEjcqt7ZSeFWVr7AXHN8M2 R2hAgs5zIXyANQNi6JT3eOJdyqtws2tSTC0P0VLLsAClgxHFgwqjrDcp3UqYgcSk1vgh YcJi+nN2XqHUoPR3co3ZtJLn2OEWuBZjffAepU2vs2vQ6iPqqr3qJjl0yguMnj+P2ryt qM15OEMaHPpNy6hB3XuQMyf1Ay07fDMQnfkwKXtEI46uNbgnaYjt7DFSDFnVobwb1f6G W/eQ== 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 z20-20020a05640235d400b00447d3d95e3dsi4809084edc.492.2022.09.10.21.41.12; Sat, 10 Sep 2022 21:41:58 -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 S229651AbiIKDl4 (ORCPT + 99 others); Sat, 10 Sep 2022 23:41:56 -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 Content-Type: text/plain 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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 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[] = { static struct platform_device *iris_device; -static int iris_init(void) +static int __init iris_init(void) { int ret; if (force != 1) { @@ -112,7 +112,7 @@ static int iris_init(void) return 0; } -static void iris_exit(void) +static void __exit iris_exit(void) { platform_device_unregister(iris_device); platform_driver_unregister(&iris_driver); -- 2.17.1