Skip to contentSkip to conversation

vfio/pci: Remove unused struct 'vfio_pci_mmap_vma'

PATCH Applied [email protected] 4 participants 4 messages Jul 27, 2024 – Sep 3, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio/pci: Remove unused struct 'vfio_pci_mmap_vma'

From: "Dr. David Alan Gilbert" <[email protected]>

'vfio_pci_mmap_vma' has been unused since
commit aac6db75a9fc ("vfio/pci: Use unmap_mapping_range()")

Remove it.

---
 drivers/vfio/pci/vfio_pci_core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/vfio/pci/vfio_pci_core.c +0 -5
index ba0ce0075b2f..2127b82d301a 100644
@@ -57,11 +57,6 @@ struct vfio_pci_vf_token {
 	int			users;
 };
 
-struct vfio_pci_mmap_vma {
-	struct vm_area_struct	*vma;
-	struct list_head	vma_next;
-};
-
 static inline bool vfio_vga_disabled(void)
 {
 #ifdef CONFIG_VFIO_PCI_VGA
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · On Sat, Jul 27, 2024 at 05:03:06PM +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'vfio_pci_mmap_vma' has been unused since
commit aac6db75a9fc ("vfio/pci: Use unmap_mapping_range()")

Remove it.

---
 drivers/vfio/pci/vfio_pci_core.c | 5 -----
 1 file changed, 5 deletions(-)

Jason

#3 lore raw
In reply to [email protected]
Quoted 18 lines · On Sat, 27 Jul 2024 17:03:06 +0100 [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'vfio_pci_mmap_vma' has been unused since
commit aac6db75a9fc ("vfio/pci: Use unmap_mapping_range()")

Remove it.

---
 drivers/vfio/pci/vfio_pci_core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/vfio/pci/vfio_pci_core.c +0 -0
index ba0ce0075b2f..2127b82d301a 100644
@@ -57,11 +57,6 @@ struct vfio_pci_vf_token {
 	int			users;

drivers/vfio/pci/vfio_pci_core.c struct vfio_pci_vf_token { · line 62

Quoted 10 lines
drivers/vfio/pci/vfio_pci_core.c +0 -5
 };
 
-struct vfio_pci_mmap_vma {
-	struct vm_area_struct	*vma;
-	struct list_head	vma_next;
-};
-
 static inline bool vfio_vga_disabled(void)
 {
 #ifdef CONFIG_VFIO_PCI_VGA

Applied to vfio next branch for v6.12. Thanks!

Alex