提交 7181772d 编写于 作者: L Laurent Pinchart 提交者: Mauro Carvalho Chehab

V4L/DVB: videobuf: Don't export videobuf_(vmalloc|pages)_to_sg

Those functions are only called inside videobuf-dma-sg.c, make them
static.
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 fecfedeb
...@@ -57,7 +57,13 @@ MODULE_LICENSE("GPL"); ...@@ -57,7 +57,13 @@ MODULE_LICENSE("GPL");
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
struct scatterlist *videobuf_vmalloc_to_sg(unsigned char *virt, int nr_pages) /*
* Return a scatterlist for some page-aligned vmalloc()'ed memory
* block (NULL on errors). Memory for the scatterlist is allocated
* using kmalloc. The caller must free the memory.
*/
static struct scatterlist *videobuf_vmalloc_to_sg(unsigned char *virt,
int nr_pages)
{ {
struct scatterlist *sglist; struct scatterlist *sglist;
struct page *pg; struct page *pg;
...@@ -81,10 +87,14 @@ struct scatterlist *videobuf_vmalloc_to_sg(unsigned char *virt, int nr_pages) ...@@ -81,10 +87,14 @@ struct scatterlist *videobuf_vmalloc_to_sg(unsigned char *virt, int nr_pages)
vfree(sglist); vfree(sglist);
return NULL; return NULL;
} }
EXPORT_SYMBOL_GPL(videobuf_vmalloc_to_sg);
struct scatterlist *videobuf_pages_to_sg(struct page **pages, int nr_pages, /*
int offset) * Return a scatterlist for a an array of userpages (NULL on errors).
* Memory for the scatterlist is allocated using kmalloc. The caller
* must free the memory.
*/
static struct scatterlist *videobuf_pages_to_sg(struct page **pages,
int nr_pages, int offset)
{ {
struct scatterlist *sglist; struct scatterlist *sglist;
int i; int i;
......
...@@ -24,23 +24,6 @@ ...@@ -24,23 +24,6 @@
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
/*
* Return a scatterlist for some page-aligned vmalloc()'ed memory
* block (NULL on errors). Memory for the scatterlist is allocated
* using kmalloc. The caller must free the memory.
*/
struct scatterlist *videobuf_vmalloc_to_sg(unsigned char *virt, int nr_pages);
/*
* Return a scatterlist for a an array of userpages (NULL on errors).
* Memory for the scatterlist is allocated using kmalloc. The caller
* must free the memory.
*/
struct scatterlist *videobuf_pages_to_sg(struct page **pages, int nr_pages,
int offset);
/* --------------------------------------------------------------------- */
/* /*
* A small set of helper functions to manage buffers (both userland * A small set of helper functions to manage buffers (both userland
* and kernel) for DMA. * and kernel) for DMA.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册