Skip to contentSkip to conversation

Xen/swiotlb: mark xen_swiotlb_fixup() __init

PATCH In review Jan Beulich 2 participants 2 messages Feb 12, 2025

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

PATCH 1/1 Xen/swiotlb: mark xen_swiotlb_fixup() __init

It's sole user (pci_xen_swiotlb_init()) is __init, too.

drivers/xen/swiotlb-xen.c +1 -1
@@ -111,7 +111,7 @@ static struct io_tlb_pool *xen_swiotlb_f
 }
 
 #ifdef CONFIG_X86
-int xen_swiotlb_fixup(void *buf, unsigned long nslabs)
+int __init xen_swiotlb_fixup(void *buf, unsigned long nslabs)
 {
 	int rc;
 	unsigned int order = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT);
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jan Beulich

It's sole user (pci_xen_swiotlb_init()) is __init, too.

Quoted 12 lines
drivers/xen/swiotlb-xen.c +1 -1
@@ -111,7 +111,7 @@ static struct io_tlb_pool *xen_swiotlb_f
 }
 
 #ifdef CONFIG_X86
-int xen_swiotlb_fixup(void *buf, unsigned long nslabs)
+int __init xen_swiotlb_fixup(void *buf, unsigned long nslabs)
 {
 	int rc;
 	unsigned int order = get_order(IO_TLB_SEGSIZE << IO_TLB_SHIFT);