Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1749082rwb; Fri, 23 Sep 2022 18:32:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eiAtCKTR3VhMPkRTL5jyL1BTBVNatDcfIwsDunsT/wgzkApzcGNzgWpI5i4Ya88BBLIEz X-Received: by 2002:a05:6402:8c3:b0:454:2c73:3381 with SMTP id d3-20020a05640208c300b004542c733381mr11382479edz.308.1663983137623; Fri, 23 Sep 2022 18:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663983137; cv=none; d=google.com; s=arc-20160816; b=PT16OdpE+m00WzF7wcT5WHP2YtfQYCLSt41foDat5nxQ3SXHPc9M6ssbau/H7FVwjc g+DqoZU3Ae0OkN4zg/w3mQ5/7M2X5PmHCYbXxI199uZj1tfWvR5SWp6n3jdKsqwmckEU 6kspt5b+XfUkVDqv7KFeeLuGpE35IduxMzkV6QowoJJO7ZH3zkJINNCpIC+xDak3CO0O F4tS49g2Qa3VaIFcGdFpTrxSL/8lD9t3ZOezC/EwRL/ol9qp3Twc7MomRbldM78AfUvt /5e/O6CBSQ0K55KgdgM1MzoEKspeXcihboetHV/WuHQV7ej+LwpVVNywiFM4AnfK5HOg /k9w== 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=QFtE2PX+KWyEjJK9BwgKhzBwokSWLr0nhpT5+EHltZg=; b=ec+fflEQCRp2FY2Of/Dg9BBURVrvL7ug7GnxyH0qgTdJQeoWlGd2uUzRtvzcNU2ogB lf+OabUta69kvej5M1RMgliD+L+vDPUo9S3Ts7tP0jWNljKn9avFaq0VEkfnwJfWJ6xr IdieHUI5+ooELPRYQ3eVHerUdudc9O9ccf4bigTlpgEowvOjUt0pMrknnpQvYS0+CUXi rJNSujLGTthWUPynertq6QzNMMSOUqpn4WyngeneCrMdhWT6i4VPdmIhY0RaJWItY0sX dQ4eWhlGDtPrlZxJZDsZnzi4W8uE+zN5Gc0e/LWhQosAcU4UvZZaos5nurEDuWI8g0HI qFMw== 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 qk19-20020a1709077f9300b00779a3220c5asi10560708ejc.343.2022.09.23.18.31.18; Fri, 23 Sep 2022 18:32:17 -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 S232339AbiIXA4D (ORCPT + 99 others); Fri, 23 Sep 2022 20:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiIXAz7 (ORCPT ); Fri, 23 Sep 2022 20:55:59 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0661011E95E for ; Fri, 23 Sep 2022 17:55:57 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MZ9VS3YKJzpTsG; Sat, 24 Sep 2022 08:53:04 +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 08:55:56 +0800 From: Xiu Jianfeng To: , , , CC: , Subject: [PATCH] fsi: Add __init/__exit annotations to module init/exit funcs Date: Sat, 24 Sep 2022 08:52:14 +0800 Message-ID: <20220924005214.186304-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: dggems706-chm.china.huawei.com (10.3.19.183) 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/__exit annotations to module init/exit funcs. Signed-off-by: Xiu Jianfeng --- drivers/fsi/fsi-occ.c | 4 ++-- drivers/fsi/fsi-sbefifo.c | 4 ++-- drivers/fsi/fsi-scom.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/fsi/fsi-occ.c b/drivers/fsi/fsi-occ.c index 8f7f602b909d..69273575f61f 100644 --- a/drivers/fsi/fsi-occ.c +++ b/drivers/fsi/fsi-occ.c @@ -719,12 +719,12 @@ static struct platform_driver occ_driver = { .remove = occ_remove, }; -static int occ_init(void) +static int __init occ_init(void) { return platform_driver_register(&occ_driver); } -static void occ_exit(void) +static void __exit occ_exit(void) { platform_driver_unregister(&occ_driver); diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c index 5f93a53846aa..bf313689012a 100644 --- a/drivers/fsi/fsi-sbefifo.c +++ b/drivers/fsi/fsi-sbefifo.c @@ -1124,12 +1124,12 @@ static struct fsi_driver sbefifo_drv = { } }; -static int sbefifo_init(void) +static int __init sbefifo_init(void) { return fsi_driver_register(&sbefifo_drv); } -static void sbefifo_exit(void) +static void __exit sbefifo_exit(void) { fsi_driver_unregister(&sbefifo_drv); } diff --git a/drivers/fsi/fsi-scom.c b/drivers/fsi/fsi-scom.c index bcb756dc9866..10f071255a85 100644 --- a/drivers/fsi/fsi-scom.c +++ b/drivers/fsi/fsi-scom.c @@ -605,12 +605,12 @@ static struct fsi_driver scom_drv = { } }; -static int scom_init(void) +static int __init scom_init(void) { return fsi_driver_register(&scom_drv); } -static void scom_exit(void) +static void __exit scom_exit(void) { fsi_driver_unregister(&scom_drv); } -- 2.17.1