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>
13 lines
375 B
C
13 lines
375 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_X86_SWIOTLB_XEN_H
|
|
#define _ASM_X86_SWIOTLB_XEN_H
|
|
|
|
#ifdef CONFIG_SWIOTLB_XEN
|
|
extern int __init pci_xen_swiotlb_detect(void);
|
|
extern int pci_xen_swiotlb_init_late(void);
|
|
#else
|
|
#define pci_xen_swiotlb_detect NULL
|
|
static inline int pci_xen_swiotlb_init_late(void) { return -ENXIO; }
|
|
#endif
|
|
|
|
#endif /* _ASM_X86_SWIOTLB_XEN_H */
|