From nobody Thu Dec 18 10:37:43 2025 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 E1E291FBBDE for ; Tue, 14 Jan 2025 06:47:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736837261; cv=none; b=fd0gaPzpeK7hrvQ1JSdBLkfF/RDcnM4InsAlF2le1vw0dnIYBcCYZZLoA8oZhBvMM+J+CGo4TJK8X/PdTy7HMJe4EDURM8jZHlAP2AZg+uAj9qOVsBPGvBxwLBEsrrBwYXj6xfbXaJ4hZ5PPydN4HmHgEb7WG4DymfMhnNzibCU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736837261; c=relaxed/simple; bh=CGWBLDIeQ3qOXFC/CbM1S2qAFV8nPEkURe2AFlZBSsI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=GlLrbTWjQ+4R/ZWg59Qr4GH/42+1+05WmtQXsxHOiHMrdcMXOFPVUWvpGVU8nqpfVpbUzho97iQ6dARliylbQKB2Pkt5s5A/ekjkhuGuejsBhcDJkSUNIG1JnCzDOKkhQbbJBhsrLx/OFuxma37yZ9ZavqGkThW0mr8BDq6uric= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 6c6e0e10d24311efa216b1d71e6e1362-20250114 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.45,REQID:a944e3e1-01fc-4c28-ab15-b98f6d33a208,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:6493067,CLOUDID:16ec472e98dba6bff5eea2305603cc40,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0|50,EDM:-3,IP:nil,UR L:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,S PR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 6c6e0e10d24311efa216b1d71e6e1362-20250114 Received: from node2.com.cn [(10.44.16.197)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA) with ESMTP id 1249712274; Tue, 14 Jan 2025 14:47:29 +0800 Received: from node2.com.cn (localhost [127.0.0.1]) by node2.com.cn (NSMail) with SMTP id 5AFB3B803964; Tue, 14 Jan 2025 14:47:29 +0800 (CST) X-ns-mid: postfix-67860881-1774315569 Received: from localhost.localdomain (unknown [10.42.12.106]) by node2.com.cn (NSMail) with ESMTPA id 7E325B803964; Tue, 14 Jan 2025 06:47:28 +0000 (UTC) From: Yufeng Wang To: "Michael S . Tsirkin" , Jason Wang , Xuan Zhuo , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Yufeng Wang , virtualization@lists.linux.dev Cc: linux-kernel@vger.kernel.org Subject: [PATCH] tools: virtio/linux/module.h add MODULE_DESCRIPTION() define. Date: Tue, 14 Jan 2025 14:47:26 +0800 Message-Id: <20250114064726.33079-1-wangyufeng@kylinos.cn> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" when we build tools/virtio, meet below error information. cc -g -O2 -Werror -Wno-maybe-uninitialized -Wall -I. -I../include/ -I ../../usr/include/ -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -include ../../include/linux/kconfig.h -mfunction-return=3Dthunk -fcf-protection=3Dnone -mindirect-branch-register -pthread -c -o virtio_ring.o ../../drivers/virtio/virtio_ring.c ../../drivers/virtio/virtio_ring.c:3276:20: error=EF=BC=9Aexpected declarat= ion specifiers or =E2=80=98...=E2=80=99 before string constant 3276 | MODULE_DESCRIPTION("Virtio ring implementation"); | Fixes: ("virtio: add missing MODULE_DESCRIPTION() macros") also add MODULE_DESCRIPTION() define for virtio test. Signed-off-by: Yufeng Wang --- tools/virtio/linux/module.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/virtio/linux/module.h b/tools/virtio/linux/module.h index 9dfa96fea2b2..b91681fc1571 100644 --- a/tools/virtio/linux/module.h +++ b/tools/virtio/linux/module.h @@ -5,3 +5,10 @@ static __attribute__((unused)) const char *__MODULE_LICENSE_name =3D \ __MODULE_LICENSE_value =20 +#ifndef MODULE_AUTHOR +#define MODULE_AUTHOR(x) +#endif + +#ifndef MODULE_DESCRIPTION +#define MODULE_DESCRIPTION(x) +#endif --=20 2.34.1