swiotlb: Declare swiotlb_late_init_with_default_size() in header
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 2 Sep 2020 17:31:04 +0000 (20:31 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 10 Sep 2020 13:41:30 +0000 (09:41 -0400)
commit61b82bbf693ecd307550ee64a8af192e8e33c46c
tree848a5791b4263b7caa966f67b9baa26f2ee7ac40
parent4db7b6aacc573b89227a1b5960af9d2a17f17762
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>
arch/x86/pci/sta2x11-fixup.c
include/linux/swiotlb.h