public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Xen/swiotlb: mark xen_swiotlb_fixup() __init
@ 2025-02-12 15:14 Jan Beulich
  2025-02-12 21:55 ` Stefano Stabellini
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2025-02-12 15:14 UTC (permalink / raw)
  To: lkml; +Cc: Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko

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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Xen/swiotlb: mark xen_swiotlb_fixup() __init
  2025-02-12 15:14 [PATCH] Xen/swiotlb: mark xen_swiotlb_fixup() __init Jan Beulich
@ 2025-02-12 21:55 ` Stefano Stabellini
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Stabellini @ 2025-02-12 21:55 UTC (permalink / raw)
  To: Jan Beulich; +Cc: lkml, Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko

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);
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-12 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 15:14 [PATCH] Xen/swiotlb: mark xen_swiotlb_fixup() __init Jan Beulich
2025-02-12 21:55 ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox