Commit b2ead6e012e2b2ab31851c288e0dd7872884a8a3

Authored by Sam Ravnborg
Committed by Linus Torvalds
1 parent 3c308798a3

fix section mismatch warning in lib/swiotlb.c

kbuild spits outs following warning on a
defconfig x86_64 build:
WARNING: swiotlb.o - Section mismatch: reference to .init.text:swiotlb_init from __ksymtab between '__ksymtab_swiotlb_init' (at offset 0xa0) and '__ksymtab_swiotlb_free_coherent'

This warning happens because the function swiotlb_init is marked __init and
EXPORT_SYMBOL().  A 'git grep swiotlb_init' showed no users in drivers/ so
remove the EXPORT_SYMBOL.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Andi Kleen <ak@suse.de>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

... ... @@ -778,7 +778,6 @@
778 778 return virt_to_bus(io_tlb_end - 1) <= mask;
779 779 }
780 780  
781   -EXPORT_SYMBOL(swiotlb_init);
782 781 EXPORT_SYMBOL(swiotlb_map_single);
783 782 EXPORT_SYMBOL(swiotlb_unmap_single);
784 783 EXPORT_SYMBOL(swiotlb_map_sg);