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 397012D061D for ; Wed, 8 Oct 2025 23:26:12 +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=1759965973; cv=none; b=Mn6DAR0Gz/oltugwtP+BzxYSZ7QqBBwwW4J2Wzu7KvQoH+HjKJwNB1fFiav38S9o8oX44eCS1rrpVLaed4hMkonUWOBzEbN0vr6C96Aiz/7LVWxBy4dhXUIrz2egVJqVgsILC4JhYsP3e3Dlgpp/MTgthyym3GZ9gUONS61XtMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759965973; c=relaxed/simple; bh=LyfZwTgNNKzRxYPGrtWK+twPgLH2gVXqBUSbwCyTH0M=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=mTTFOosm1iUPY0YVwBPsYNY+wFPNqbGczigxZXFclE4NI9SsmMn6dNSWh23MFuvK7jEwHViJChrT1zt6i4zGLOIiWTVuKsPggQiHtFP7V6upm/NOSGKe0mGLVwMTA96Mefc5DU5n2KEPKzl2GlOFZMTGYjIpGZ1/HbBzOeoLnT4= 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=RKs8jmFc; 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="RKs8jmFc" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-77f610f7325so343430b3a.1 for ; Wed, 08 Oct 2025 16:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1759965971; x=1760570771; 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=KNh3wa09Q5xlUBhhQI5QIb3D0Opt2gk1ElEAwNBsTUQ=; b=RKs8jmFcy29ZuHZ9N37YbphgIWZut5WifM+68NQfo+3t87XsCmbThjULVdulqCf+M3 O1qxBCU7fgFwE9HkuNKalPloIc4ySJc8A6b5IoKwMgs3/afTcXXewRmEvf/9XGw0u0M0 LJNxOmsE2/1UGj8WshTrYx+0yFukBSYwtJUBAac4fhzyHorGLOt+o2VevpDUpGR9SSsA ndmcSW3ohBHcnblQ5bPJFMSilJlRts0UqE88JCjbtcO9U2daUfjK75z4tIU2IQ/7rmGC NOhqcEOjWrMqX8h9Av5MuTJ7be8s74vGtmSkUW87VDsUY2qfYHrEdjppzmX6bGWgxXhT q0YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759965971; x=1760570771; 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=KNh3wa09Q5xlUBhhQI5QIb3D0Opt2gk1ElEAwNBsTUQ=; b=fx+njSTrQPGQNphGGaVexC5S76XjQdZOOAmqlPiiCqaQV6F08z4I07VaARyVWciP5A CLz6Sp0ed219txrCusZ2aKEGmOGnPgct9kBDTqii291WPoe6pOXe5OKrj/0ZUt1e1L6M oRjPtgiEbmlXyT8x8728jvYTnT+LHuObVj/u5Uz0FK7CaPY6eMi/ZQZdMLptc1ogJ5Ck Xc7W0MFXgNYJiYimo/jxH66zFD2Yy0/q+VkK/GagPcHUD3dQQMbUvehOBaVZw8yvwHkG wklzLyNXcxQRJvbS7oYJVhoyoyPZVLwC1bO4wPuD9Z6eMj3oLXK06eE/+yjZKg3z9Ba5 MuLw== X-Forwarded-Encrypted: i=1; AJvYcCVGQhnYzYT5f08xf0UZA0XppbRAtra9CCYlTOX3wP/xwsJgXbwATw8H+wrKWnfC8gcJ4OU=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+8w80QeeWCwq+uuM3+bZ+CHwpQNV+6m1+oTKyh3U4Pd5/l9H9 JLAINY5vtbHYAsS5Do6Ra+HO6A51FMYJjdfs37Z2tLVQ6umBpkeo3bD6J1vSbTYiIkyMO3lL173 u00o2s7D7C/Kisg== X-Google-Smtp-Source: AGHT+IHW7koiUGyZ0XdSSDmpsrAewuJROavhfe1+Kbc+Qdi1R22Mm35D6kLSOMtL8D/RRx5OV/TJGtmSQT+NIA== X-Received: from pfmx24.prod.google.com ([2002:a62:fb18:0:b0:77f:69d6:613]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:938e:b0:309:99e3:c6f5 with SMTP id adf61e73a8af0-32da83e68a9mr7334743637.48.1759965971496; Wed, 08 Oct 2025 16:26:11 -0700 (PDT) Date: Wed, 8 Oct 2025 23:25:29 +0000 In-Reply-To: <20251008232531.1152035-1-dmatlack@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251008232531.1152035-1-dmatlack@google.com> X-Mailer: git-send-email 2.51.0.710.ga91ca5db03-goog Message-ID: <20251008232531.1152035-11-dmatlack@google.com> Subject: [PATCH 10/12] vfio: selftests: Rename vfio_util.h to libvfio.h From: David Matlack To: Alex Williamson Cc: David Matlack , Jason Gunthorpe , Josh Hilke , kvm@vger.kernel.org, Vipin Sharma 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. 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 => libvfio.h} | 6 +++--- tools/testing/selftests/vfio/lib/iommu.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 +- 10 files changed, 12 insertions(+), 12 deletions(-) rename tools/testing/selftests/vfio/lib/include/{vfio_util.h => libvfio.h} (98%) diff --git a/tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c b/tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c index 8d667be80229..a75d8ea46562 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 -#include +#include #include "registers.h" diff --git a/tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c b/tools/testing/selftests/vfio/lib/drivers/ioat/ioat.c index e04dce1d544c..ce147839b31f 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 -#include +#include #include "hw.h" #include "registers.h" diff --git a/tools/testing/selftests/vfio/lib/include/vfio_util.h b/tools/testing/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 c7932096ac2e..8b72d9c62404 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 #include #include @@ -332,4 +332,4 @@ void vfio_pci_driver_memcpy_start(struct vfio_pci_device *device, int vfio_pci_driver_memcpy_wait(struct vfio_pci_device *device); void vfio_pci_driver_send_msi(struct vfio_pci_device *device); -#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/selftests/vfio/lib/iommu.c index a835b0d29abf..682b4c9da625 100644 --- a/tools/testing/selftests/vfio/lib/iommu.c +++ b/tools/testing/selftests/vfio/lib/iommu.c @@ -18,7 +18,7 @@ #include #include "../../../kselftest.h" -#include +#include const char *default_iommu_mode = "iommufd"; diff --git a/tools/testing/selftests/vfio/lib/vfio_pci_device.c b/tools/testing/selftests/vfio/lib/vfio_pci_device.c index b026b908dcd2..909c951eb52f 100644 --- a/tools/testing/selftests/vfio/lib/vfio_pci_device.c +++ b/tools/testing/selftests/vfio/lib/vfio_pci_device.c @@ -18,7 +18,7 @@ #include #include "../../../kselftest.h" -#include +#include #define PCI_SYSFS_PATH "/sys/bus/pci/devices" diff --git a/tools/testing/selftests/vfio/lib/vfio_pci_driver.c b/tools/testing/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 #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/testing/selftests/vfio/vfio_dma_mapping_test.c index 680232777839..5092c55a76e3 100644 --- a/tools/testing/selftests/vfio/vfio_dma_mapping_test.c +++ b/tools/testing/selftests/vfio/vfio_dma_mapping_test.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include "../kselftest_harness.h" 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 -#include +#include #include "../kselftest_harness.h" static const char iommu_dev_path[] = "/dev/iommu"; diff --git a/tools/testing/selftests/vfio/vfio_pci_device_test.c b/tools/testing/selftests/vfio/vfio_pci_device_test.c index 7a270698e4d2..a44ab8041cb6 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 -#include +#include #include "../kselftest_harness.h" diff --git a/tools/testing/selftests/vfio/vfio_pci_driver_test.c b/tools/testing/selftests/vfio/vfio_pci_driver_test.c index 79128a0c278d..fe107ba129d1 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 -#include +#include #include "../kselftest_harness.h" -- 2.51.0.710.ga91ca5db03-goog