]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pci-swiotlb: reduce visibility of symbols
authorJan Beulich <jbeulich@suse.com>
Fri, 17 Sep 2021 10:49:04 +0000 (12:49 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 20 Sep 2021 15:01:19 +0000 (17:01 +0200)
commita645a039ed3aa3e6db2e06d96d6b200cfe323b3a
tree4459d523810fa0b5e29b6a198e04060bfc4ae7a0
parent0a73284f54be40dbe54fc970767dd9c494d55c57
xen/pci-swiotlb: reduce visibility of symbols

xen_swiotlb and pci_xen_swiotlb_init() are only used within the file
defining them, so make them static and remove the stubs. Otoh
pci_xen_swiotlb_detect() has a use (as function pointer) from the main
pci-swiotlb.c file - convert its stub to a #define to NULL.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/aef5fc33-9c02-4df0-906a-5c813142e13c@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/include/asm/xen/swiotlb-xen.h
arch/x86/xen/pci-swiotlb-xen.c