Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1975846lqz; Tue, 2 Apr 2024 03:41:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLshw+g79C/o29YwwNTyP1fSLHxDaZ1Vc2G7k0Zgtia87IZTBIUNoovKg24FI0sujX0aSMnmEk7oqbeY8conecwHLVieXNbrpjRMfY5w== X-Google-Smtp-Source: AGHT+IETHpjxGPumj8b+Ls119081XctSNLmfxSbANncPLgnpFYNF9zjzRourqjQom7qnQiPPR4CE X-Received: by 2002:a17:90a:710:b0:2a2:5869:f36d with SMTP id l16-20020a17090a071000b002a25869f36dmr1345484pjl.34.1712054511668; Tue, 02 Apr 2024 03:41:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712054511; cv=pass; d=google.com; s=arc-20160816; b=wPec0oP86ohzr5JSRsKOo+w32Y2b7DYlL8VlEtg/OxtUSM0Rf+NSCLBjfEAQMMF391 y/1JX3EY4vXQ3PFiQgeJbrd7w+S1+Y3y4UILcymrZz0SWCu2ApgBClBPcsi1Rh15GTOI WaThvdMOHNQUrfif5snYzsNFkm4z7rp55SbuOVuC0GpHESzcm7Zx3vgHStHHy+DLb5kc S9daBvwFT/jB0IsNt5GKBRADbVhU01HDTIyXW5PyASOxp6zqMkExIa5IVfJ7nerIqB+i +DLXPsRGlkyRcLwxtp9Z4+uDDB+uqlz3NVrU6++ytPDAJlh6D9VgAXXjKW+WCUR2ijEF 7qEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=fczBZCNkIlsSTIYV73P7r6IIeMEC58UwQxki8hwzu8E=; fh=pOLr1y15AoRKRwbIy19syV6heaTTQOyHQxmYFYtuiME=; b=mawPhAIgk+Ii6BNePRWZ+ewmpAuPfQpzutDqCGnA/fVdFatjAC8JieGJYQyVrHxtuc 8V/SjN/tSwHrp4Tk0a9iun72k6RoGzK5tsbeDgNwXFb9zl03wM+GNzFMefXG6peanyrM fMcR+uu08TEw1zPi+4cR8r/MCzp4Q/choZBgVkPmSGvjAItbmPucsScoBj6pe5cExksz uZekiKFbbz8qRiGgGn4F9jeNlKBAQHQMdFakfIjlbZNsz+gg3T08fOhWG/krmGtvOioc ZsXB4r+bZQk/BaKh4oMwibIArRdD89utEIiC/5sintB/h/xaUo/yAPEfcimN5AOR6smg Mwnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=uniontech.com); spf=pass (google.com: domain of linux-kernel+bounces-127758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127758-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i11-20020a17090a650b00b0029c798bd1f4si13166335pjj.1.2024.04.02.03.41.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 03:41:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=uniontech.com); spf=pass (google.com: domain of linux-kernel+bounces-127758-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127758-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 561032828A1 for ; Tue, 2 Apr 2024 10:41:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACA0D605CE; Tue, 2 Apr 2024 10:40:55 +0000 (UTC) Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CFF4604C8 for ; Tue, 2 Apr 2024 10:40:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.92.39.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712054455; cv=none; b=tjTES4NjZ3Tz3yhTjN7SvZLblwecLSu5Kgs+Kx6Bp7J7ApulP27O3X/jdmSM86zczpi/3xQhkdU414p0aFXTbcIbIzOmuRzqHwFC0lK1KrNugToLZBvdB5lAxtziq2pQlEkibhwjxjZrYIFTuGGocb4qxEXBIDU7liYRqJN4lR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712054455; c=relaxed/simple; bh=zlkeU6jpjojNIbiATur5Go6ZRJPdDmGjYR+bSmWYh/o=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=VVdoJacKMs8TNuE+3xzEO2yXskxtTp5pdFOu87m2VWZ/oFTwln6y+CMSKwZmqUQWiW4nYug2MJybebhd2ZMm5YR3a0GL8sn1KohUKY1PSK+Hol59eBOh3tl3v3k1ifBUWIT8ILDMVvlCGTy7mzh4kkkyspcLZs4UDTu/q42g22w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uniontech.com; spf=pass smtp.mailfrom=uniontech.com; arc=none smtp.client-ip=54.92.39.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uniontech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com X-QQ-mid: bizesmtp87t1712054393t2i27laa X-QQ-Originating-IP: pQTYK67xRdtnui0t3nN3/WaiLvBKI0ftL7JGDsgYtec= Received: from localhost.localdomain ( [113.57.152.160]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 02 Apr 2024 18:39:51 +0800 (CST) X-QQ-SSF: 01400000000000G0G000000A0000000 X-QQ-FEAT: SX/WFj88WPXNfEQ5MBA40yVv9m/8TTEpOkDjsxEXYeDgJs8qCxwvtxlXfQmgS hRixDCy/B7Rld6Pa40LS/5KOHlSl6Z4305rQDo5t5Ew5YQSdLfuOD9v4GgzqT8PoAQkI6b0 ZxHfASTynNFv5EJ5b8kgeNPtHwwGT9sDMCQHQoX2NNiyd80YMolKd2X8hV6HR2Gvb5YKLMO hs6iVbQsansRA3TyxaMDypBzxZZGDwUzUIPRznW1hamuy1Sn0bhC7LmLhJAto9yfB1edcUt PJKHrYp0Z1CHV03vSityjlXXkhQPf7CH1SaMK88/Ahw81vEo+CeG8sVE5mHJLLAMsrT0OcF EEAqIEY5+IebYp6gYt466UcVocI8U1QchuoUF/LdOWcsNZuyxL7zeG0MvpUy66ddnt3QNYB X-QQ-GoodBg: 1 X-BIZMAIL-ID: 9711682065161928136 From: Wentao Guan To: zhaotianrui@loongson.cn Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Wentao Guan , Yuli Wang Subject: [PATCH] LoongArch: KVM: Remove useless MODULE macro for MODULE_DEVICE_TABLE Date: Tue, 2 Apr 2024 18:39:42 +0800 Message-Id: <20240402103942.20049-1-guanwentao@uniontech.com> X-Mailer: git-send-email 2.20.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybglogicsvrsz:qybglogicsvrsz4a-1 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) }, {}, }; MODULE_DEVICE_TABLE(cpu, kvm_feature); -#endif -- 2.20.1