From nobody Mon Dec 1 22:34:43 2025 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.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 78B45345CCC for ; Wed, 26 Nov 2025 23:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764199086; cv=none; b=gMK07eX7fQLUlLxlToHAXoSI/vXRtDpurxkkjkY+40mWadNMM+MYHYkYkPsoiGHBNrJTzTeWVB+MKywQQY9S8ZNZZwUzxoUVqeacr0psbLaTnFnNESml7+M3chGzDonv2MKwS04reVLkxRuw4ZESBfWzlrY8j+TKRnDBIPqqHso= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764199086; c=relaxed/simple; bh=yDJ+V4vJT+UeNxWHEcNGG5rhGAYPb/61//Lf+3Fvynw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Qq+UFpfsyaDRV0ZdpH8tK93mwmztCv0J4DdkyRjPAQly6UTDkovb7kVAsvOaaogDb1Pxzx3C0qhfkkEdKEaQaULf4Qz+eajpvFp6wnkoBmEYuicF4AiliiM0fQap8mVCPjB/fGum6houpgi8DoQHk7FQbWf9Npj6r13G3K4K+lk= 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=E8esp4t/; arc=none smtp.client-ip=209.85.214.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="E8esp4t/" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-29557f43d56so2804495ad.3 for ; Wed, 26 Nov 2025 15:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1764199084; x=1764803884; 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=msfafFWYaD0dYRGinq2pU9UGptExPeKvxxBVJh+65mA=; b=E8esp4t/8msD5EdMmRHDgEoakGzj0w+RB3YVIg/i7+Yg2pR5S0mPTFduGY7LN2mkNo kObbb6fGKEMQwEU7TztcSl+ryOkYNKdag2YQAamX8w8aXqFATIW76PrOTCErIzarltSI UpkH8wt7Y9GuvggEszXxn5xezr7j4zZH5q1VWo6JXNA33XcLl2WoUTRzLb19CKC0zjQ+ +PpToX7PjIzRI59QoFqbYdlfAIVk7uDSMBNyhFQxML0TQS256u1Eb4GkvjV+wVqVCCMC btr7XdUnIY4iey93TlzpYYZpuPYAe+nOhtvrQfu18rCHryd8tpue2INNj7Zt2T7/9KEx wnqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764199084; x=1764803884; 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=msfafFWYaD0dYRGinq2pU9UGptExPeKvxxBVJh+65mA=; b=D3unlLG9NnakkUGMjsIOu6xeobrCZrpXeczlxyhzsspdvGc0le9Gqkc/I74nucgQmz imYoTUC1JWC3Xsuqhk/AJOXgbNR7Ecm2c4Rg4QUjG/R5ZORxSGwf9EAojjCHgmEEzzFI Yt09e7wvhuKrBJCpGcN9IABIAYmopIK9r6CShQDrvoVx7NGh+HNz75611/VRZob4P07H lKlELxSVLwav7iKjAOqKoHxsWKqQhPAUQiBnO34zlaqTjSs3axpl1xY4KZocVSKQedZ9 JaVEoRGx1CmE00QUZKKG7Hr5/n+F3F6g55Tb3B4gW1cmTfikPuwOMiAZm3ke9ZB6yvr6 NuIg== X-Forwarded-Encrypted: i=1; AJvYcCU2FcIVcBIAzL6dDJLQWwnD9E9VwWxY9eQt0Msy4WtYPZvzCXbTazRI2Y2EejbGMbXP84BA4pd90vCh7qI=@vger.kernel.org X-Gm-Message-State: AOJu0YzeCrSwNdgdMypz3SnlZxpiL0c3G/ZfEtczqfvNVpPL4qi68eAK 8hovgb85t+pIIKjCF6YpY6UX7+VOHwF5dfqWAqThWkFpzN0Hr6/TcVQOU/1HO/Fi+LQKGsClOoa 0hsuc9CAT3SxoPg== X-Google-Smtp-Source: AGHT+IH2SGFtadAdgidkvPbG8Lr4OVhZkJrONXr7INvC7eW3177bBHqIiIjpGg++sxybFvac3GuvD4aPQd376Q== X-Received: from plou3.prod.google.com ([2002:a17:903:1ae3:b0:295:61b:84fa]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:2f4f:b0:295:7453:b58b with SMTP id d9443c01a7336-29baae4569fmr100922005ad.4.1764199083808; Wed, 26 Nov 2025 15:18:03 -0800 (PST) Date: Wed, 26 Nov 2025 23:17:29 +0000 In-Reply-To: <20251126231733.3302983-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: <20251126231733.3302983-1-dmatlack@google.com> X-Mailer: git-send-email 2.52.0.487.g5c8c507ade-goog Message-ID: <20251126231733.3302983-15-dmatlack@google.com> Subject: [PATCH v4 14/18] vfio: selftests: Rename vfio_util.h to libvfio.h From: David Matlack To: Alex Williamson Cc: Alex Mastro , David Matlack , Jason Gunthorpe , Josh Hilke , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Raghavendra Rao Ananta , Vipin Sharma Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Rename vfio_util.h to libvfio.h to match the name of libvfio.mk. No functional change intended. Reviewed-by: Alex Mastro Tested-by: Alex Mastro Reviewed-by: Raghavendra Rao Ananta Signed-off-by: David Matlack --- tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c | 2 +- tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c | 2 +- .../selftests/vfio/lib/include/{vfio_util.h =3D> libvfio.h} | 6 +++--- tools/testing/selftests/vfio/lib/iommu.c | 2 +- tools/testing/selftests/vfio/lib/iova_allocator.c | 2 +- tools/testing/selftests/vfio/lib/vfio_pci_device.c | 2 +- tools/testing/selftests/vfio/lib/vfio_pci_driver.c | 2 +- tools/testing/selftests/vfio/vfio_dma_mapping_test.c | 2 +- tools/testing/selftests/vfio/vfio_iommufd_setup_test.c | 2 +- tools/testing/selftests/vfio/vfio_pci_device_test.c | 2 +- tools/testing/selftests/vfio/vfio_pci_driver_test.c | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) rename tools/testing/selftests/vfio/lib/include/{vfio_util.h =3D> libvfio.= h} (98%) diff --git a/tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c b/tools/tes= ting/selftests/vfio/lib/drivers/dsa/dsa.c index 0afbab0d82de..c75045bcab79 100644 --- a/tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c +++ b/tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c @@ -9,7 +9,7 @@ #include #include =20 -#include +#include =20 #include "registers.h" =20 diff --git a/tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c b/tools/t= esting/selftests/vfio/lib/drivers/ioat/ioat.c index c6db311ce64d..a871b935542b 100644 --- a/tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c +++ b/tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c @@ -7,7 +7,7 @@ #include #include =20 -#include +#include =20 #include "hw.h" #include "registers.h" diff --git a/tools/testing/selftests/vfio/lib/include/vfio_util.h b/tools/t= esting/selftests/vfio/lib/include/libvfio.h similarity index 98% rename from tools/testing/selftests/vfio/lib/include/vfio_util.h rename to tools/testing/selftests/vfio/lib/include/libvfio.h index 5224808201fe..3027af15e316 100644 --- a/tools/testing/selftests/vfio/lib/include/vfio_util.h +++ b/tools/testing/selftests/vfio/lib/include/libvfio.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H -#define SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H +#ifndef SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H +#define SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H =20 #include #include @@ -352,4 +352,4 @@ void vfio_pci_driver_memcpy_start(struct vfio_pci_devic= e *device, int vfio_pci_driver_memcpy_wait(struct vfio_pci_device *device); void vfio_pci_driver_send_msi(struct vfio_pci_device *device); =20 -#endif /* SELFTESTS_VFIO_LIB_INCLUDE_VFIO_UTIL_H */ +#endif /* SELFTESTS_VFIO_LIB_INCLUDE_LIBVFIO_H */ diff --git a/tools/testing/selftests/vfio/lib/iommu.c b/tools/testing/selft= ests/vfio/lib/iommu.c index 3933079fc419..52f9cdf5f171 100644 --- a/tools/testing/selftests/vfio/lib/iommu.c +++ b/tools/testing/selftests/vfio/lib/iommu.c @@ -19,7 +19,7 @@ #include =20 #include "../../../kselftest.h" -#include +#include =20 const char *default_iommu_mode =3D "iommufd"; =20 diff --git a/tools/testing/selftests/vfio/lib/iova_allocator.c b/tools/test= ing/selftests/vfio/lib/iova_allocator.c index b3b6b27f5d1e..a12b0a51e9e6 100644 --- a/tools/testing/selftests/vfio/lib/iova_allocator.c +++ b/tools/testing/selftests/vfio/lib/iova_allocator.c @@ -19,7 +19,7 @@ #include #include =20 -#include +#include =20 struct iova_allocator *iova_allocator_init(struct iommu *iommu) { diff --git a/tools/testing/selftests/vfio/lib/vfio_pci_device.c b/tools/tes= ting/selftests/vfio/lib/vfio_pci_device.c index aa5b45052c77..847e27e1166c 100644 --- a/tools/testing/selftests/vfio/lib/vfio_pci_device.c +++ b/tools/testing/selftests/vfio/lib/vfio_pci_device.c @@ -20,7 +20,7 @@ #include =20 #include "../../../kselftest.h" -#include +#include =20 #define PCI_SYSFS_PATH "/sys/bus/pci/devices" =20 diff --git a/tools/testing/selftests/vfio/lib/vfio_pci_driver.c b/tools/tes= ting/selftests/vfio/lib/vfio_pci_driver.c index abb7a62a03ea..ca0e25efbfa1 100644 --- a/tools/testing/selftests/vfio/lib/vfio_pci_driver.c +++ b/tools/testing/selftests/vfio/lib/vfio_pci_driver.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only #include "../../../kselftest.h" -#include +#include =20 #ifdef __x86_64__ extern struct vfio_pci_driver_ops dsa_ops; diff --git a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c b/tools/t= esting/selftests/vfio/vfio_dma_mapping_test.c index c4c2fc36c7b3..213fcd8dcc79 100644 --- a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c +++ b/tools/testing/selftests/vfio/vfio_dma_mapping_test.c @@ -10,7 +10,7 @@ #include #include =20 -#include +#include =20 #include "../kselftest_harness.h" =20 diff --git a/tools/testing/selftests/vfio/vfio_iommufd_setup_test.c b/tools= /testing/selftests/vfio/vfio_iommufd_setup_test.c index 3655106b912d..caf1c6291f3d 100644 --- a/tools/testing/selftests/vfio/vfio_iommufd_setup_test.c +++ b/tools/testing/selftests/vfio/vfio_iommufd_setup_test.c @@ -10,7 +10,7 @@ #include #include =20 -#include +#include #include "../kselftest_harness.h" =20 static const char iommu_dev_path[] =3D "/dev/iommu"; diff --git a/tools/testing/selftests/vfio/vfio_pci_device_test.c b/tools/te= sting/selftests/vfio/vfio_pci_device_test.c index e95217933c6b..ecbb669b3765 100644 --- a/tools/testing/selftests/vfio/vfio_pci_device_test.c +++ b/tools/testing/selftests/vfio/vfio_pci_device_test.c @@ -10,7 +10,7 @@ #include #include =20 -#include +#include =20 #include "../kselftest_harness.h" =20 diff --git a/tools/testing/selftests/vfio/vfio_pci_driver_test.c b/tools/te= sting/selftests/vfio/vfio_pci_driver_test.c index 229e932a06f8..f0ca8310d6a8 100644 --- a/tools/testing/selftests/vfio/vfio_pci_driver_test.c +++ b/tools/testing/selftests/vfio/vfio_pci_driver_test.c @@ -5,7 +5,7 @@ #include #include =20 -#include +#include =20 #include "../kselftest_harness.h" =20 --=20 2.52.0.487.g5c8c507ade-goog