loongarch.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Wentao Guan <guanwentao@uniontech.com>
To: zhaotianrui@loongson.cn
Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org,
	Wentao Guan <guanwentao@uniontech.com>,
	Yuli Wang <wangyuli@uniontech.com>
Subject: [PATCH] LoongArch: KVM: Remove useless MODULE macro for MODULE_DEVICE_TABLE
Date: Tue,  2 Apr 2024 18:39:42 +0800	[thread overview]
Message-ID: <20240402103942.20049-1-guanwentao@uniontech.com> (raw)

MODULE_DEVICE_TABLE use ifdef MODULE macro in module.h,
just clean it up.

Suggested-by: Yuli Wang <wangyuli@uniontech.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
---
 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) },
 	{},
 };
 MODULE_DEVICE_TABLE(cpu, kvm_feature);
-#endif
-- 
2.20.1


             reply	other threads:[~2024-04-02 10:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-02 10:39 Wentao Guan [this message]
2024-04-02 10:43 ` [PATCH] LoongArch: KVM: Remove useless MODULE macro for MODULE_DEVICE_TABLE Xi Ruoyao
2024-04-02 10:45   ` Wentao Guan
2024-04-02 14:39     ` Huacai Chen
2024-04-02 11:21 ` maobibo
     [not found]   ` <tencent_0ED20EAF678A7C93309EA4F6@qq.com>
2024-04-02 13:06     ` maobibo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240402103942.20049-1-guanwentao@uniontech.com \
    --to=guanwentao@uniontech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=wangyuli@uniontech.com \
    --cc=zhaotianrui@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).