]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Remove redundant PCI_VSEC_HDR and PCI_VSEC_HDR_LEN_SHIFT
authorDongdong Zhang <zhangdongdong@eswincomputing.com>
Mon, 16 Dec 2024 01:35:36 +0000 (09:35 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 21 Jan 2025 23:29:11 +0000 (17:29 -0600)
commit188973e3536a18aebee3af486cd3d2ef82b09f88
treeafa57d21525ca76fa32613114e1795664eeeffb4
parent816875a468f40a601da001d7518ddbf363381a18
PCI: Remove redundant PCI_VSEC_HDR and PCI_VSEC_HDR_LEN_SHIFT

Remove duplicate macro PCI_VSEC_HDR and its related macro
PCI_VSEC_HDR_LEN_SHIFT from pci_regs.h to avoid redundancy and
inconsistencies. Update VFIO PCI code to use PCI_VNDR_HEADER and
PCI_VNDR_HEADER_LEN() for consistent naming and functionality.

These changes aim to streamline header handling while minimizing impact,
given the niche usage of these macros in userspace.

Link: https://lore.kernel.org/r/20241216013536.4487-1-zhangdongdong@eswincomputing.com
Signed-off-by: Dongdong Zhang <zhangdongdong@eswincomputing.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_config.c
include/uapi/linux/pci_regs.h