[PATCH] Xen/swiotlb: mark xen_swiotlb_fixup() __init

Jan Beulich posted 1 patch 10 months, 1 week ago
[PATCH] Xen/swiotlb: mark xen_swiotlb_fixup() __init
Posted by Jan Beulich 10 months, 1 week ago
It's sole user (pci_xen_swiotlb_init()) is __init, too.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/drivers/xen/swiotlb-xen.c
+++ b/drivers/xen/swiotlb-xen.c
@@ -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);
Re: [PATCH] Xen/swiotlb: mark xen_swiotlb_fixup() __init
Posted by Stefano Stabellini 10 months, 1 week ago
On Wed, 12 Feb 2025, Jan Beulich wrote:
> It's sole user (pci_xen_swiotlb_init()) is __init, too.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>


> --- a/drivers/xen/swiotlb-xen.c
> +++ b/drivers/xen/swiotlb-xen.c
> @@ -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);
>