Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2003898lqz; Tue, 2 Apr 2024 04:40:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDo/y0B8gm2CRJbzn1+IEAb1qkuKPPjH6qE3rqdCg88RDoKgC1NgAJ4scRYfi11t8ZYacpeonpWNqmk/heLp/+pgQ2Wj1nCs8jP/RNpA== X-Google-Smtp-Source: AGHT+IHrLCRWzIENqQrjFm1VOsDvpu6V/uVpac9UAFl5whl7xXPxk8jXenuA3P0G2iaQoEooryZy X-Received: by 2002:a05:6a20:7f90:b0:1a3:5354:490f with SMTP id d16-20020a056a207f9000b001a35354490fmr12644314pzj.2.1712057999919; Tue, 02 Apr 2024 04:39:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712057999; cv=pass; d=google.com; s=arc-20160816; b=hqo7DHKzvdp+gt1XJ8E0af/1HHxdb2rh3d4I4YfMhXkhyNsDRLqSki44b9OwDfPscV 1A4u4eIak4WXwPhbzRK8WijAlu1JWpATtI7YmGmzMah81H2plKCD68kbn0sn4wBQ5P0H odM4Y+BKIZnbdtTCrdZpGIjamX6ENcuiCVWJL5IZhwcfZNgS3iBjHTTvZh126m1D1lQI 15OQ6VCvPFpp2zaLGScQVvDRF+AoR6JahBy9BfObo3+jgJqz6VWdo2HlmDVybQE+Ia4b S0wVW681e/i+1cZfHttiVFKX5IZqR4sWoxyUwDo9wH0zzixgOmnJSFg/jgKeIPnAvOVJ kX/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=NzU7NP0ZnYYzlJ6/NwKEgAGqdyriQGaVIlX+Dco1+ig=; fh=uPLB5kAfr+gYq0GkXePkX/57qPlJJFg3+F36ix6xYn4=; b=rjKkOk42ZxEhdlp4Ej1jKWMkhaYFmWifxB/cR+miNKZ1e3DbDQOpWb99E+410hT5Ks MB7fN0YpcmhTFpGrxids4z2BCBpnYSt1cvtfP/70yXnLoqpy7AxD5PWNcgDPzcrSB51w 5mFhSSztOgiYumP4ETnq9XmVOaamcLqMoXWHKDNtaa6vGLfHk9a7McKlxWzsYEEIqlFz Y760u/M8pFw/P3A8npsRLHLuWzlG6owPkdYZpVFzwNyYyhDqM0b3X/QVRJobYJJo+15M reZDkc6GHRg+EGZHA6AsBkrRz/V7Zij0Rvw+i/TF9332bw0GDeNqBSSNChcvl1NOc9H7 f0+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-127854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127854-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bx21-20020a17090af49500b002a08fa579e2si13432720pjb.11.2024.04.02.04.39.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 04:39:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-127854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127854-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 72815B235A4 for ; Tue, 2 Apr 2024 11:22:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2449633E5; Tue, 2 Apr 2024 11:22:06 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 460B65A4C7 for ; Tue, 2 Apr 2024 11:22:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712056926; cv=none; b=LpoOY2Dr3eiWqQJW6wW94SLWh5oVaE0aLDDd2icAD70keyKrFwAjArfiBcNXOVjXdkVYveIE26eXeFZiXD09tKeKrHTUPwCevj5aQutzCgDjOHSYFkp5Z7lIYxNbXbotpffuB3sbgrLBCUf9dMd5vuceeh+O4cdH6gUOo4sxbJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712056926; c=relaxed/simple; bh=K2KF0PpTcBGK9pz41kFknD/l+QfW5T0zNmdQF5t5FsE=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=qq0XOhhsDKYW615n8E5mFwp7l3rSXBrIKMqrYr63aXhgj/H9KOcKXF1AXC9Cqg9+lNX+N8/G1m8k/jfPrztSL1kQjmAc09obqiH+/OzA6XnLgtD38GzVoTvtmfaTsgcYGuJp7KnjTzdmsEt2Kzf2ndjQ1WYbHh+XKl20lWorIVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.20.42.173]) by gateway (Coremail) with SMTP id _____8BxOPBX6gtmFU4iAA--.13833S3; Tue, 02 Apr 2024 19:21:59 +0800 (CST) Received: from [10.20.42.173] (unknown [10.20.42.173]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxPBNT6gtmmctxAA--.23693S3; Tue, 02 Apr 2024 19:21:57 +0800 (CST) Subject: Re: [PATCH] LoongArch: KVM: Remove useless MODULE macro for MODULE_DEVICE_TABLE To: Wentao Guan , zhaotianrui@loongson.cn Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Yuli Wang References: <20240402103942.20049-1-guanwentao@uniontech.com> From: maobibo Message-ID: <31d39556-79d9-52eb-36aa-5897aea6e28e@loongson.cn> Date: Tue, 2 Apr 2024 19:21:55 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240402103942.20049-1-guanwentao@uniontech.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8DxPBNT6gtmmctxAA--.23693S3 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj9xXoW7Gr1ruF1xKF1xtw1rGry7XFc_yoWDArb_Zr 17Jwn7urW8Xw12v3Wvg3W5G347W3WkGFs0ka42yrn7uF1SqrWayrs7Gwn8Aw1jqrWFyFs3 Aa95Z3ZIkw17tosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbI8YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6F4UJVW0owAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc 02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAF wI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2xFo4 CEbIxvr21l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG 67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMI IYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E 14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVW8JV WxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU2DUU UUUUU On 2024/4/2 下午6:39, Wentao Guan wrote: > MODULE_DEVICE_TABLE use ifdef MODULE macro in module.h, > just clean it up. > > Suggested-by: Yuli Wang > Signed-off-by: Wentao Guan > --- > arch/loongarch/kvm/main.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/loongarch/kvm/main.c b/arch/loongarch/kvm/main.c > index 86a2f2d0cb27..7f2bd9a0814c 100644 > --- a/arch/loongarch/kvm/main.c > +++ b/arch/loongarch/kvm/main.c > @@ -410,10 +410,8 @@ static void kvm_loongarch_exit(void) > module_init(kvm_loongarch_init); > module_exit(kvm_loongarch_exit); > > -#ifdef MODULE > static const struct cpu_feature kvm_feature[] = { > { .feature = cpu_feature(LOONGARCH_LVZ) }, > {}, > }; Wentao, Thanks for your patch, there is static variable kvm_feature which is embraced by macro MODULE also :-), besides MODULE_DEVICE_TABLE. Regards Bibo Mao > MODULE_DEVICE_TABLE(cpu, kvm_feature); > -#endif >