From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpbguseast3.qq.com (smtpbguseast3.qq.com [54.243.244.52]) (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 DB8DB175A7D for ; Thu, 2 Jul 2026 03:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.243.244.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782961471; cv=none; b=b9RsqjPPXdrRjolWHyVrR8+4MGCI5BhqBWJrp/jOcftBZa9sOrrYF/yyUnE0MdclaA5gliUktWyNdWPhcTxB+n5QazNBD7U2Ct3xhoS9jI8nNHha3nyVkYWSMbpJVunzO1dz0b3tukH+NlL9uoEQUzum6f1tE9A3O/49Qoec8Eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782961471; c=relaxed/simple; bh=4mAyagYKmXF63DO7I6tOknQc8yAJ27/s74p+Y2TYhos=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=pxrTiQ90namtzqF6bWwIoPMvMjpbv6LYxXnBUlh3SdNDFPE7VU07wyHDwBq5WAK534/1no00GzGdRzWOnnPMsKkmnO/4g+U8P4Rh+l1tm22VTmPFkXkhcwInmW+7VufRFpHFg7GBL1kpAARxcn375/ao3x8pPTyVi+sZt2CpZDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com; spf=pass smtp.mailfrom=uniontech.com; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b=RvvlL2Pp; arc=none smtp.client-ip=54.243.244.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b="RvvlL2Pp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1782961457; bh=D6iKxQwpYX1CYUDos2L4T19GiKd6RNEZZH33fFdceRY=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=RvvlL2PpAq/zNJ+X/pdnI9Rj0fuZ4GoKVff4GpI6Mo2hCPYQJ7ly8x/ZLvg0UkAEL LGJ0Ngpo+N+PecEUbpiHNlY1Z3KXDXLGFG2GE9L3gwlUK/DGxnTJKZ/qVEcnPfLUdp Bxd/cPf8aYx7d3w7skBYAx1WWtXqKe6V/bYAGvGw= X-QQ-mid: esmtpgz15t1782961443tdb4a3dbb X-QQ-Originating-IP: AhSFWYBn7RhulvOPAwokzx0F4iuD/ZfRtjBypUA7FUg= Received: from uniontech.com ( [113.57.152.160]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 02 Jul 2026 11:04:01 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 11236963476737238909 EX-QQ-RecipientCnt: 12 From: Yichong Chen To: mst@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com, eperezma@redhat.com, akpm@linux-foundation.org Cc: sj@kernel.org, rppt@kernel.org, ljs@kernel.org, pabeni@redhat.com, chenyichong@uniontech.com, virtualization@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] tools: Fix tools/virtio test build Date: Thu, 2 Jul 2026 11:03:56 +0800 Message-Id: <20260702030358.308155-1-chenyichong@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: esmtpgz:uniontech.com:qybglogicsvrgz:qybglogicsvrgz3a-0 X-QQ-XMAILINFO: NvjhxCSDg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xEyXI6mHHB8T+WqkQcPh X-QQ-XMRINFO: OD9hHCdaPRBwH5bRRRw8tsiH4UAatJqXfg== X-QQ-RECHKSPAM: 0 Hi, This series fixes build failures hit by: make -C tools/virtio test It is based on linux-next commit: commit 3d5670d672ae ("Add linux-next specific files for 20260626") Patch 1 adds tools/virtio compatibility definitions needed by current virtio headers when building the tools/virtio tests. Patch 2 makes tools/include/linux/overflow.h include stdint.h for SIZE_MAX, which is used by its size helper functions. With the series applied, make -C tools/virtio test builds virtio_test, vringh_test and vhost_net_test successfully. Tested on x86_64 and arm64 with: make -C tools/virtio clean make -C tools/virtio test Changes in v3: - Move the stdint.h include inside the overflow.h include guard, as SJ suggested. - Add Tested-by from SJ Park to patch 1. Changes in v2: - Rebase and retest on linux-next. - Add the missing asm/percpu_types.h compat header reported by Eugenio. - Keep the tools/virtio compat definitions aligned with current virtio_features.h helpers. - Drop the slab.h kmalloc_obj/kmalloc_objs change because linux-next already defines them in tools/virtio/linux/kernel.h. Yichong Chen (2): tools/virtio: Add missing compat definitions for vhost_net_test tools/include: Include stdint.h for SIZE_MAX in overflow.h tools/include/linux/overflow.h | 2 + tools/virtio/asm/percpu_types.h | 7 +++ tools/virtio/linux/completion.h | 9 ++++ tools/virtio/linux/device.h | 1 + tools/virtio/linux/dma-mapping.h | 1 + tools/virtio/linux/mod_devicetable.h | 14 +++++ tools/virtio/linux/virtio_features.h | 79 ++++++++++++++++++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 tools/virtio/asm/percpu_types.h create mode 100644 tools/virtio/linux/completion.h create mode 100644 tools/virtio/linux/mod_devicetable.h create mode 100644 tools/virtio/linux/virtio_features.h -- 2.51.0