On Thu, Sep 23, 2010 at 03:47:30PM -0700, David Daney wrote: > It comes from swiotlb.c and must be called by external code, so declare it. > > Signed-off-by: David Daney <ddaney@xxxxxxxxxxxxxxxxxx> > Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > Cc: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> > Cc: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> > Cc: Ingo Molnar <mingo@xxxxxxx> > Cc: Andre Goddard Rosa <andre.goddard@xxxxxxxxx> > --- > include/linux/swiotlb.h | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h > index 8c0e349..dba51fe 100644 > --- a/include/linux/swiotlb.h > +++ b/include/linux/swiotlb.h > @@ -23,6 +23,7 @@ extern int swiotlb_force; > #define IO_TLB_SHIFT 11 > > extern void swiotlb_init(int verbose); > +extern void swiotlb_init_with_default_size(size_t, int); > extern void swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose); Just use the swiotlb_init_with_tbl. If you need an example of how it is utilized, take a look at how swiotlb-xen.c does it.