Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3764198rwn; Sat, 10 Sep 2022 20:23:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR6olH7LjWxIIwEwCVICVtHqR4WP3fPYXvplOlaI8R//cy8gll7X0ezemLQmuI3sk5q8Txtb X-Received: by 2002:aa7:d617:0:b0:44e:d2de:3fe1 with SMTP id c23-20020aa7d617000000b0044ed2de3fe1mr17520501edr.104.1662866622136; Sat, 10 Sep 2022 20:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662866622; cv=none; d=google.com; s=arc-20160816; b=Qi+wSZuxGIqT+fwuMjRMzMi4OQUkgd9baUxnc9yQ4cKswIjUCE5JhZENQTOfVMNk+2 KhZ1ktgS6UnA7aHc5OpQSAoZS3asTKxBrI6LLaiGNm7NwZaYaJgLKa2iKwfDgYuX4Z+w 3sHm9dZ5Mm0glemwoQ+YJSkzJXvml1K0CznxfjxPxT1W2o4G4PXml9HKJ4xl8sS2Efsa 20gbkQ0DbvD5FHUJfeycx1JOsH56wYTjnSzj8FXQCLo/k0/YAOypTe+6b99akxhns2GH ybIl8lf0skN5bKQD66+qPrQXISGnEi8IgOgSyHfpejCev2kQ/VTDLotdx0oSF3pY3gC2 iJhA== 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=hqRW3CYvlgRbkI6g3Lfc1QOHaqDv7qN/XqEDe0Oa/4s=; b=gzvnq4UW98zBLOQyE5FFz7BHZJPhK+N8pGXSOCdJWnyX/duvUsk1/aJhW/bXD1hvqT 802Bncn+N8a4rl5ff+chlbbuFAJar2KScY9rOjtQL82mPbDnFz8nQ2CyUv2StyzxbIk1 8W39+Ik9mRKEqglIXQjzP2ckwEMACKjXfLCdGBlAZHY2IKiN2Kol9veIAcHBtJPK+NUY /DQ0E94r53mePtQQlC7q2uXVH+gSFyAJmpQTd2J6EZxIMgz5OXtdH9L3AkjNFyr5cYir w3WhPbfh2RpwjC9oZ39P3fmv9B5/P763ekQ7UtTlxt1k7CnGUr72bIDUPqkr6n381mkW /iFg== 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 y19-20020a1709063a9300b00730a5a456e9si3747183ejd.758.2022.09.10.20.23.16; Sat, 10 Sep 2022 20:23:42 -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 S229774AbiIKCzR (ORCPT + 99 others); Sat, 10 Sep 2022 22:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbiIKCzP (ORCPT ); Sat, 10 Sep 2022 22:55:15 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52BEC2126E for ; Sat, 10 Sep 2022 19:55:10 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MQDk35MlNzNm8w; Sun, 11 Sep 2022 10:50:35 +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 10:55:08 +0800 From: Xiu Jianfeng To: , , , , CC: , Subject: [PATCH -next] um: virt-pci: add __init/__exit annotations to module init/exit funcs Date: Sun, 11 Sep 2022 10:51:40 +0800 Message-ID: <20220911025140.22193-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/um/drivers/virt-pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/um/drivers/virt-pci.c b/arch/um/drivers/virt-pci.c index 027847023184..acb55b302b14 100644 --- a/arch/um/drivers/virt-pci.c +++ b/arch/um/drivers/virt-pci.c @@ -857,7 +857,7 @@ void *pci_root_bus_fwnode(struct pci_bus *bus) return um_pci_fwnode; } -static int um_pci_init(void) +static int __init um_pci_init(void) { int err, i; @@ -940,7 +940,7 @@ static int um_pci_init(void) } module_init(um_pci_init); -static void um_pci_exit(void) +static void __exit um_pci_exit(void) { unregister_virtio_driver(&um_pci_virtio_driver); irq_domain_remove(um_pci_msi_domain); -- 2.17.1