diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-09-02 19:31:04 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2020-09-10 15:41:30 +0200 |
commit | 61b82bbf693ecd307550ee64a8af192e8e33c46c (patch) | |
tree | 848a5791b4263b7caa966f67b9baa26f2ee7ac40 /arch/x86/pci/sta2x11-fixup.c | |
parent | swiotlb: Use %pa to print phys_addr_t variables (diff) | |
download | linux-61b82bbf693ecd307550ee64a8af192e8e33c46c.tar.xz linux-61b82bbf693ecd307550ee64a8af192e8e33c46c.zip |
swiotlb: Declare swiotlb_late_init_with_default_size() in header
Compiler is not happy about one function prototype:
CC kernel/dma/swiotlb.o
kernel/dma/swiotlb.c:275:1: warning: no previous prototype for ‘swiotlb_late_init_with_default_size’ [-Wmissing-prototypes]
275 | swiotlb_late_init_with_default_size(size_t default_size)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Since it's used outside of the module, move its declaration to the header
from the user.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/pci/sta2x11-fixup.c')
-rw-r--r-- | arch/x86/pci/sta2x11-fixup.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/pci/sta2x11-fixup.c b/arch/x86/pci/sta2x11-fixup.c index c313d784efab..11c0e80b9ed4 100644 --- a/arch/x86/pci/sta2x11-fixup.c +++ b/arch/x86/pci/sta2x11-fixup.c @@ -15,7 +15,6 @@ #include <asm/iommu.h> #define STA2X11_SWIOTLB_SIZE (4*1024*1024) -extern int swiotlb_late_init_with_default_size(size_t default_size); /* * We build a list of bus numbers that are under the ConneXt. The |