From nobody Sat Feb 7 17:41:32 2026 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C5342D23A4 for ; Fri, 19 Dec 2025 23:38:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766187509; cv=none; b=INXcqaAiTYHtxkIwFkcG/9hnDGpk61AnaBMXqVKcZj9SOzbv+Ke8aikuhgRbVz8/KogUNBxLP2A+k/7lcH5aRHAtgTq3sKQ8+mze0rgqcW4UncOkw9rx+HACQT9YpHF7FEh5xyYpDrNxZHA7JBqm0HB7i3ZO6EPDvyzPQRAQ2hg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766187509; c=relaxed/simple; bh=/+AGKRNSS+uF+0YmBMyl5tXf6XXogWL5c7gic6FqdHA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=VOlKYMcoMdzdc8fuCzj0izP8SSPPIwojoIHv8fqn6K8wpDpGFoSmYq9UEdZmhja5WJucevcKFOKIQgSnrEUhEgmI/g1wNCiUBlDSsX1JczWsgiyHJgGQq0lT3yRc2dLYYb4RkOGlYYXahlu3YutqhVvF4zFmIYFNSVif/5ptEMU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=J+Ht3dOV; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="J+Ht3dOV" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-7b80de683efso3979112b3a.3 for ; Fri, 19 Dec 2025 15:38:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1766187508; x=1766792308; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=C9QFtmNn1fSYGFAaSlaEhnDrHjK6Ba3UZ+o+JdNc1Kk=; b=J+Ht3dOVdle9BUbBneqlfOvUx3tAhOqNLMF5nMCIMQ+tSK1AW3e/pjXkc35hqQWs4l gTu1QPYQO3w8+53VaMcRy23pp7M/I2agafm+dImkrocPWsaHXmFMm7qEztj0UvN6CXUb rFDJrtkmUCmiJ+9kdsUK0YRatwTxtH8+yOllOiH5lUM4E3XejdJaHp3aqm8QhsrVtkMc bKaBHddaFbVKsRQbXLF/jwTWbyGt4Pn6X23WoJD+ixGwKeEhb3GekhxrvHSagL/KcQzc cvRyR713J9o4VX0aX+jQ2SlskxxoQFb3nNFzPAkf3SQiAspeoBBcHFjc4T7I0FyBnnuS TWNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766187508; x=1766792308; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=C9QFtmNn1fSYGFAaSlaEhnDrHjK6Ba3UZ+o+JdNc1Kk=; b=fSlwm/TJmjgPm3DKZn2KzxppQabnaEvwne8/g7vU1tpXJGAhio0sWZfWxaXcLIi8iX 082b+lRITcNoCiPrha3qdesrhnOl4NOftsWjqi+OI3KpCtDYPEDCRpDOYLVCKnAHiPSV XXYX66xxnylY4iFsEVnDrKAL5UFmy95bm5loyzdNsIRFmj4sbYjixAtN0z6b6utRa5vx q8mRh3pcaIPfbB7Io8CvOqlBQ2FF+KOBVzGtETlD0/V1olgARK9ELLhd1KosTX/jfVsH J1B2IOMEeI5RllZanAkRIxFhL0SNISHGYk/8CwJBE8OzWxUCivHoJlrDgKoOqU3BYDds RiOg== X-Forwarded-Encrypted: i=1; AJvYcCUB5sC5DCfucMZgopfO2K86yYh4CFYakKg9LrbO7E4jSdv1XP7Zr1HGkx7lQQ+gBIvmbc+gzfaFBThj6y0=@vger.kernel.org X-Gm-Message-State: AOJu0YwEonIaI0ZTxJGlft7XIEPgTZpyUktPjvIpFqyFB7WNVI7sEijV zwDzr82DRggp+275/MaM3GSbFeV7/gB7wBQ9JO2SQ0+JbKavnbT+AZSEWf2lskqNpkPjXKn7hG/ iN0ubJoUC16vE9g== X-Google-Smtp-Source: AGHT+IED2KQiUi/cz01nSHrPqB0DVKiLe95LbUVmtbI/s/CFr3dErQCP8IrnneW5VYeTPjnU60u3FKnJmJnaZA== X-Received: from pfj19.prod.google.com ([2002:a05:6a00:a413:b0:7b7:b98e:7a9c]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:1d27:b0:7e8:450c:61c1 with SMTP id d2e1a72fcca58-7ff66679547mr3739825b3a.49.1766187507834; Fri, 19 Dec 2025 15:38:27 -0800 (PST) Date: Fri, 19 Dec 2025 23:38:17 +0000 In-Reply-To: <20251219233818.1965306-1-dmatlack@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251219233818.1965306-1-dmatlack@google.com> X-Mailer: git-send-email 2.52.0.322.g1dd061c0dc-goog Message-ID: <20251219233818.1965306-2-dmatlack@google.com> Subject: [PATCH 1/2] tools include: Add definitions for __aligned_{l,b}e64 From: David Matlack To: Alex Williamson Cc: Alex Mastro , Andrew Morton , David Matlack , Josh Hilke , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Raghavendra Rao Ananta , Shuah Khan , Wei Yang , Yosry Ahmed Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add definitions for the missing __aligned_le64 and __aligned_be64 to tools/include/linux/types.h. The former is needed by for builds where tools/include/ is on the include path ahead of usr/include/. Signed-off-by: David Matlack --- tools/include/linux/types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h index 4928e33d44ac..d41f8a261bce 100644 --- a/tools/include/linux/types.h +++ b/tools/include/linux/types.h @@ -88,6 +88,14 @@ typedef struct { # define __aligned_u64 __u64 __attribute__((aligned(8))) #endif =20 +#ifndef __aligned_be64 +# define __aligned_be64 __be64 __attribute__((aligned(8))) +#endif + +#ifndef __aligned_le64 +# define __aligned_le64 __le64 __attribute__((aligned(8))) +#endif + struct list_head { struct list_head *next, *prev; }; --=20 2.52.0.322.g1dd061c0dc-goog From nobody Sat Feb 7 17:41:32 2026 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5774D2EDD74 for ; Fri, 19 Dec 2025 23:38:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766187511; cv=none; b=j07btadrpGNJlhvJZTbIhwZETIL97ozKCJBQymSaa+0GDdTzw7DMnrwI6Mh7JjDKIJTa8pdFSkf/O4nxoEw3OVgqpWHtoeeDQcQKkht/w4wP6aD3/JWI6ycmVkvKmZJqqgosL9AhGhxpXtISkGaf6dQE/6afSN+gMVIcW/0F7+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766187511; c=relaxed/simple; bh=JyC9eo530M5ljalMP8uuCAafPZED6nTNfGN1kJNfXdE=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=rncBP4Z+OzYuKeHSKnwGppSaXalbiy4l0tBJP2r/I3HI5sl+UXhJDQhd3B6GCQ1SyggH0H1f+hofTMfK4Q4ricLJ/a8gabUwp/HbaiOwNcmY+kooPiR7EbjCc+VZlIiXg9ibixrM+JCMf2OGifKMf0et1NJDdRlPsjnuuRkyCzc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mlfNE4gW; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mlfNE4gW" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-7b952a966d7so4372095b3a.3 for ; Fri, 19 Dec 2025 15:38:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1766187509; x=1766792309; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=kYrEUFHHSrWSjApG9MRx026qZB/VzRtJqC7WAFxS0uY=; b=mlfNE4gWkMVLCavOHNJvzXBoNZqjNweEDxlHLW//oNNSLlw8B170gL71o4v4WbROYt DbrxwA4b0PFsqPXmc7q8j4IP9/pXoBoDwENSgboW3gyfa5dWXCa+kEITM20M/irBGkIP RsnqPKI+5cDzOPsQUi56ZEj8U8mRPfTNz9Qwc4FDFJsPcxurJFnsrGCK441xZEe6W4dP WxI9p5c+fzwslqR7e9gFAkDQZHV8DUSuOD4OlpRVC+dGyCzLhZ7CHhagnZWQZKLtq/XW kLnsJCS79qe3uyO/60kFSaA2u5hjGIGDM1BCeVDF22VOvLCChNDrR5ZqGv+o/nF5hICQ FhNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766187509; x=1766792309; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kYrEUFHHSrWSjApG9MRx026qZB/VzRtJqC7WAFxS0uY=; b=HkglZ8fse6NCjShe38QAa0ecfGQv0cRhb7qFnj4Sjrvr0BEoXu7L6CqpiE/anLUkhW 5mVhr5qWh4QQmbGUjQ22JBcnLECcfhODcXiTWA4VwIx2aVXssn8uxiCo0AJaW7eazLch RSQiqqENxzS7xyBFuq7G/4Km7ylOzKoBud9d1h0+waeqgvkh7pkBb1IYCL2wAYN2Oh1e 2FfWBxxdheS/+IXXD2U4g0dlAybuz34um52EB5lEOCMYMCAPg6ztQpX+ffh+vlLNFwtV i8ZJBYY8PjlZN1IZTshE1bnygMN+dss0vuqdsj/56vjw420ziugxucAu7gf6E6urBkyM 0GMA== X-Forwarded-Encrypted: i=1; AJvYcCWRGRMNog1POq414J7rzhXG7BVnfoS38NC+3iCGi9s3sktly9NrtT1yqM8f+zQ/FFr6lMGWu4IdPdFAwnA=@vger.kernel.org X-Gm-Message-State: AOJu0YzuYZvFWceGNCUPW3K89OUg23wMEuhDu0nJ4AFZO41SCbWwuejU o43KU5pD+mbfoR4GROHqfqO9sIlnrKVQbVy8zdbVnnQBRLK7LTYl43G8t5xnw7s32urZJ1HPWKy qbg7nAQrEAnQzzQ== X-Google-Smtp-Source: AGHT+IFdwBcyxhazmcoTlALhwwLvbQZw8lpAuq+J+NHXrsmB1i51VsdgscFDGcvBfCw/ezW9ut9mRL7qW+KWSQ== X-Received: from pfbcu6.prod.google.com ([2002:a05:6a00:4486:b0:7fb:bab5:e6e1]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:278b:b0:782:7052:5167 with SMTP id d2e1a72fcca58-7ff650c7fe1mr4234814b3a.6.1766187509445; Fri, 19 Dec 2025 15:38:29 -0800 (PST) Date: Fri, 19 Dec 2025 23:38:18 +0000 In-Reply-To: <20251219233818.1965306-1-dmatlack@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251219233818.1965306-1-dmatlack@google.com> X-Mailer: git-send-email 2.52.0.322.g1dd061c0dc-goog Message-ID: <20251219233818.1965306-3-dmatlack@google.com> Subject: [PATCH 2/2] vfio: selftests: Drop includes From: David Matlack To: Alex Williamson Cc: Alex Mastro , Andrew Morton , David Matlack , Josh Hilke , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Raghavendra Rao Ananta , Shuah Khan , Wei Yang , Yosry Ahmed Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Drop the includes now that (tools/include/linux/types.h) has a definition for __aligned_le64, which is needed by . Including is harmless but causes benign typedef redifitions. This is not a problem for VFIO selftests but be an issue when the VFIO selftests library is built into KVM selftests, since they are built with -std=3Dgnu99 which does not allow typedef redifitions. No functional change intended. Signed-off-by: David Matlack --- .../testing/selftests/vfio/lib/include/libvfio/iova_allocator.h | 1 - tools/testing/selftests/vfio/lib/iommu.c | 1 - tools/testing/selftests/vfio/lib/iova_allocator.c | 1 - tools/testing/selftests/vfio/lib/vfio_pci_device.c | 1 - tools/testing/selftests/vfio/vfio_dma_mapping_test.c | 1 - tools/testing/selftests/vfio/vfio_iommufd_setup_test.c | 1 - 6 files changed, 6 deletions(-) diff --git a/tools/testing/selftests/vfio/lib/include/libvfio/iova_allocato= r.h b/tools/testing/selftests/vfio/lib/include/libvfio/iova_allocator.h index 8f1d994e9ea2..c7c0796a757f 100644 --- a/tools/testing/selftests/vfio/lib/include/libvfio/iova_allocator.h +++ b/tools/testing/selftests/vfio/lib/include/libvfio/iova_allocator.h @@ -2,7 +2,6 @@ #ifndef SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_IOVA_ALLOCATOR_H #define SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_IOVA_ALLOCATOR_H =20 -#include #include #include #include diff --git a/tools/testing/selftests/vfio/lib/iommu.c b/tools/testing/selft= ests/vfio/lib/iommu.c index 8079d43523f3..58b7fb7430d4 100644 --- a/tools/testing/selftests/vfio/lib/iommu.c +++ b/tools/testing/selftests/vfio/lib/iommu.c @@ -11,7 +11,6 @@ #include #include =20 -#include #include #include #include diff --git a/tools/testing/selftests/vfio/lib/iova_allocator.c b/tools/test= ing/selftests/vfio/lib/iova_allocator.c index a12b0a51e9e6..8c1cc86b70cd 100644 --- a/tools/testing/selftests/vfio/lib/iova_allocator.c +++ b/tools/testing/selftests/vfio/lib/iova_allocator.c @@ -11,7 +11,6 @@ #include #include =20 -#include #include #include #include diff --git a/tools/testing/selftests/vfio/lib/vfio_pci_device.c b/tools/tes= ting/selftests/vfio/lib/vfio_pci_device.c index 13fdb4b0b10f..0b335e4e0435 100644 --- a/tools/testing/selftests/vfio/lib/vfio_pci_device.c +++ b/tools/testing/selftests/vfio/lib/vfio_pci_device.c @@ -11,7 +11,6 @@ #include #include =20 -#include #include #include #include diff --git a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c b/tools/t= esting/selftests/vfio/vfio_dma_mapping_test.c index 5397822c3dd4..41b8cae7a6ae 100644 --- a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c +++ b/tools/testing/selftests/vfio/vfio_dma_mapping_test.c @@ -3,7 +3,6 @@ #include #include =20 -#include #include #include #include diff --git a/tools/testing/selftests/vfio/vfio_iommufd_setup_test.c b/tools= /testing/selftests/vfio/vfio_iommufd_setup_test.c index caf1c6291f3d..5d980b148d83 100644 --- a/tools/testing/selftests/vfio/vfio_iommufd_setup_test.c +++ b/tools/testing/selftests/vfio/vfio_iommufd_setup_test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0 -#include #include #include #include --=20 2.52.0.322.g1dd061c0dc-goog