lkml.org 
[lkml]   [2010]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 6/6] swiotlb: EXPORT_SYMBOL_GPL functions + variables that are defined in the header file.
    Date
    Make the functions and variables that are now declared in the
    swiotlb.h header file visible by the linker.

    Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    ---
    lib/swiotlb.c | 4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/lib/swiotlb.c b/lib/swiotlb.c
    index dc1776c..986742c 100644
    --- a/lib/swiotlb.c
    +++ b/lib/swiotlb.c
    @@ -364,6 +364,7 @@ void swiotlb_bounce(phys_addr_t phys, char *dma_addr, size_t size,
    memcpy(phys_to_virt(phys), dma_addr, size);
    }
    }
    +EXPORT_SYMBOL_GPL(swiotlb_bounce);

    void *swiotlb_tbl_map_single(struct device *hwdev, u64 tbl_dma_addr,
    phys_addr_t phys, size_t size,
    @@ -468,6 +469,7 @@ found:

    return dma_addr;
    }
    +EXPORT_SYMBOL_GPL(swiotlb_tbl_map_single);

    /*
    * Allocates bounce buffer and returns its kernel virtual address.
    @@ -525,6 +527,7 @@ swiotlb_tbl_unmap_single(struct device *hwdev, char *dma_addr, size_t size,
    }
    spin_unlock_irqrestore(&io_tlb_lock, flags);
    }
    +EXPORT_SYMBOL_GPL(swiotlb_tbl_unmap_single);

    void
    swiotlb_tbl_sync_single(struct device *hwdev, char *dma_addr, size_t size,
    @@ -553,6 +556,7 @@ swiotlb_tbl_sync_single(struct device *hwdev, char *dma_addr, size_t size,
    BUG();
    }
    }
    +EXPORT_SYMBOL_GPL(swiotlb_tbl_sync_single);

    void *
    swiotlb_alloc_coherent(struct device *hwdev, size_t size,
    --
    1.6.2.5


    \
     
     \ /
      Last update: 2010-05-12 10:15    [W:0.026 / U:3.080 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site