Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1976418lqz; Tue, 2 Apr 2024 03:43:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWK248/N4jb0Kk0WnwrA8BFHhrAkpwDDzqs1dJYwk3P2xXj7n4RLVWSkHgcAlMfM3/tGmO+V1GG1AGU64UJLUxqDh58eH8AQrQos4xQQA== X-Google-Smtp-Source: AGHT+IGTEQS8UwWA37DsHlbCoPAzgbngUd+JkGOCpzz0MwS4oOJxMcvcbSdJJ/x23o47YlPd5t6D X-Received: by 2002:a05:620a:51c4:b0:78a:517d:5093 with SMTP id cx4-20020a05620a51c400b0078a517d5093mr12365037qkb.48.1712054600566; Tue, 02 Apr 2024 03:43:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712054600; cv=pass; d=google.com; s=arc-20160816; b=fgbbaVbxdYbWFpIgNryPcqat60cGSKlFE/UdGdfJm65O49ev20maIluAduIPvZg4/A KpPKX2Pn1A4yj6QTQmH8grp58XAA61Le+Kbx+Sc0LhK1lJvVV1m4BvUeXLLlzJa/s61b peQI5iakpV7hRs9VEdoJHbN4h65DsoDQ2OzSvOrJcDQ+ze87yoJX6zzAtDtZ8IjNGDOF UbnQmlnwNUghEYA44f0yXIKwEhNQ2E8vP4CxbapnjdcdjgtBsgh0UlS+y904pp+lmhPW 8Urt9X4oyHPLX3M153lz4Y6Xtf6KWkbmNg2pnkiDjOOB+jV5cBBODd1MyUGRmnBUC9GZ pCxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=MpwmMtCONKW6COYnJ5R/X3JgqTe4qYtzURyHeCRDFbM=; fh=nNcXKSxKAqUxfRQCBNTzy9B+nY2ukTMjczHcT57O3EQ=; b=DZcisrRMy7b212bGEp1HH9DHyCZOra1KyeInp9mliXPTQqUvcA80JZMjF53j9TrBU4 ggQayLc8AM6Dphppr+ZIyFqw1xHMQkIpneiYf5aVdm4d0py3i8/tu5171qKnnSSYDl+z HCpi6Mrf2dQOb9YwVbvmpNvI9aaSe5awFBDuui6fDuyyeRcbOi1ubBxMb6smJTVjIfv4 pjJ7WCqes5oAUYbOPjRKx9+gESfG/fage5bxI3rFNWvfMsm5w4nMxRpS06NEnZ+h4BC2 IOo70V/GyRPTKIL/0bz+vkxpBb2FFV1+Hl8/0yw9u1Wz2DFqKeuhhnPidqFm+OQieR99 78UQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=ie1knSeZ; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-127761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a11-20020a05620a102b00b0078a3fe706cfsi11901174qkk.10.2024.04.02.03.43.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 03:43:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=ie1knSeZ; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-127761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 17C821C20442 for ; Tue, 2 Apr 2024 10:43:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58F855F873; Tue, 2 Apr 2024 10:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="ie1knSeZ" Received: from xry111.site (xry111.site [89.208.246.23]) (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 27DD758AB2; Tue, 2 Apr 2024 10:43:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712054590; cv=none; b=jAkQkfFQ4+RKsTMUxsBkySFhgR8KOs6MJQQCtvZmyGtB7x4O20CuioPTk9PvxMXcAt7M/zra0TjvP2f/RHhmCMQtsIUXDSso6sN7XU9l5ocJ2unRTYIxwuS1XiIB5m6t8iH0oyR2LemY6IyviJEx+Zyam64iB0x2323+1Yx2mHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712054590; c=relaxed/simple; bh=5X/RCnWgW7Me0UMaw2a54c5PJ7QgmEA+BiHGMby2/AE=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=UPP0Xu1hd6usyG6r8PRgOYDrevfpjeqeqsoilY4q8CXDxPAMW6qXnj91H8oMCBGibxxlAPqdicnde4A0BejGUSpRpfTEQb6V4eu6IhE34Qs98OP6Fgni+d7ZD/Du+/ywK4G0RD0Z2Nb3k9Gbfg+aV1UQCRg2a1B2QKEYnfAFH+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=ie1knSeZ; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1712054588; bh=5X/RCnWgW7Me0UMaw2a54c5PJ7QgmEA+BiHGMby2/AE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=ie1knSeZV6WxXfXRehWyULWzizmu//36sf/jGZSc3uuar4e8vx9iVOFmzmhBAteIj Faauyw/etLmyyayzivwSQdu1mkkgrbYGXnMW+e9c8EEWba05qlJxbeK4V+eTwczq1G yYavjHtvykqQoYVIXtNDAi+fofMbYcuTgK2953vQ= Received: from [192.168.124.9] (unknown [113.200.174.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 9054266FF7; Tue, 2 Apr 2024 06:43:06 -0400 (EDT) Message-ID: <453b49801d789523f7366507d1620728315b1097.camel@xry111.site> Subject: Re: [PATCH] LoongArch: KVM: Remove useless MODULE macro for MODULE_DEVICE_TABLE From: Xi Ruoyao To: Wentao Guan , zhaotianrui@loongson.cn Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Yuli Wang , kvm@vger.kernel.org Date: Tue, 02 Apr 2024 18:43:04 +0800 In-Reply-To: <20240402103942.20049-1-guanwentao@uniontech.com> References: <20240402103942.20049-1-guanwentao@uniontech.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This should be Cc'ed to the KVM list. On Tue, 2024-04-02 at 18:39 +0800, Wentao Guan wrote: > MODULE_DEVICE_TABLE use ifdef MODULE macro in module.h, > just clean it up. >=20 > Suggested-by: Yuli Wang > Signed-off-by: Wentao Guan > --- > =C2=A0arch/loongarch/kvm/main.c | 2 -- > =C2=A01 file changed, 2 deletions(-) >=20 > 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) > =C2=A0module_init(kvm_loongarch_init); > =C2=A0module_exit(kvm_loongarch_exit); > =C2=A0 > -#ifdef MODULE > =C2=A0static const struct cpu_feature kvm_feature[] =3D { > =C2=A0 { .feature =3D cpu_feature(LOONGARCH_LVZ) }, > =C2=A0 {}, > =C2=A0}; > =C2=A0MODULE_DEVICE_TABLE(cpu, kvm_feature); > -#endif --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University