Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3765087rwn; Sat, 10 Sep 2022 20:25:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR6EWhEBR0ak9VPYYqaNvyyH1Pgsp4l2JzJlWCG/luxrlp82dwF3wkQGGQIdObFSQOZR96CI X-Received: by 2002:a17:907:320a:b0:741:72ee:8f3 with SMTP id xg10-20020a170907320a00b0074172ee08f3mr14761048ejb.168.1662866713175; Sat, 10 Sep 2022 20:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662866713; cv=none; d=google.com; s=arc-20160816; b=cgU83qjPfnl5XiM528FXKsD9sqjnhtL6VyFMFtUY0prmIIGBbkMvOApo2jmQw0Lsak 7g3/H/hcBGHF3+OjyJnR3mKdLGzKhQozKbf/j69CcOnXXM/okyu4nDFmqxP3mpZMBcbl ivPq28TQcEJ7BwYUR0/kj/9TQpLoo7+M5ichAOhF/9H4A+la0L2D0TbDnaW1PCXoRUHd 2IkTHtp/Mtyry6gpm/YntRTeCYPphMfbPl/SGC3ZdIWg3gyAGUOV5lh4esD+3AsQr5tc DzubB6pUYdBB+s3YuU7CSKC+DcXUdY1/8R9CLCyfJl9/2oapwGlMSYJpWNsXR7txZX03 jM8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:references:cc:to:from :subject; bh=VVtOaJ+CgLtKPEz5NllqwuUGlvb6U+Qh/jIqN6tJsvY=; b=kN9mMfkDcNM3BaV9xB/1gO3jnVtI6WWWJsvBp9gKnwLDxXoaMqz7tQmwq/YZGK5P4X nG90FytOroiJwxr6c9V04KiMYDEIxEYpdni4EeZ33M4YbNJSzCedJ2OQO8PpF089cQ+T thLd+m11+0fbBlpdJA9n+BRq16+ry3rbiR/sMf04BEIGwnW/+2/Wpf5OcRGdME60RXiL y4fhpnFmxLVNUbh3It/ToSiAUBX03Bv5qeCN1b6vAPMiZQrrBXedh9szEB/cUyIPNKfE ODt31ro0A613VuJIbCkovwhk99gCNDiQss/QULH3vBiPUQXS7JTcK4B5i/W4q0TTyw80 juvw== 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 dt12-20020a170907728c00b0076f0a1c1501si319662ejc.698.2022.09.10.20.24.48; Sat, 10 Sep 2022 20:25:13 -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 S229780AbiIKCwb (ORCPT + 99 others); Sat, 10 Sep 2022 22:52:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiIKCwa (ORCPT ); Sat, 10 Sep 2022 22:52:30 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F62332D80 for ; Sat, 10 Sep 2022 19:52:29 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MQDgj3nKfzlVjm; Sun, 11 Sep 2022 10:48:33 +0800 (CST) Received: from [10.67.110.112] (10.67.110.112) 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:52:27 +0800 Subject: Re: [PATCH -next 1/2] um: virt-pci: add __init/__exit annotations to module init/exit funcs From: xiujianfeng To: , , , , CC: , References: <20220911024350.17444-1-xiujianfeng@huawei.com> Message-ID: <652e3501-3a7c-7806-0bd0-cb2a81db0c1c@huawei.com> Date: Sun, 11 Sep 2022 10:52:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20220911024350.17444-1-xiujianfeng@huawei.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.110.112] 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.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 sorry, bad patch format, drop it. ?? 2022/9/11 10:43, Xiu Jianfeng ะด??: > 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); >