diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-05-11 09:36:32 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 14:22:36 -0400 |
commit | 7181772d8915e6025ee4f2f6c5b16064689646f0 (patch) | |
tree | d482d5cb773ef1a08f94c980072dc422b85348f9 /drivers/media/video/videobuf-dma-sg.c | |
parent | fecfedeb27ab9497cbdd2c6fb7972082a7ed9263 (diff) |
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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/videobuf-dma-sg.c')
-rw-r--r-- | drivers/media/video/videobuf-dma-sg.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c index 17b1f89e8133..8924e51408c1 100644 --- a/drivers/media/video/videobuf-dma-sg.c +++ b/drivers/media/video/videobuf-dma-sg.c | |||
@@ -57,7 +57,13 @@ MODULE_LICENSE("GPL"); | |||
57 | 57 | ||
58 | /* --------------------------------------------------------------------- */ | 58 | /* --------------------------------------------------------------------- */ |
59 | 59 | ||
60 | struct scatterlist *videobuf_vmalloc_to_sg(unsigned char *virt, int nr_pages) | 60 | /* |
61 | * Return a scatterlist for some page-aligned vmalloc()'ed memory | ||
62 | * block (NULL on errors). Memory for the scatterlist is allocated | ||
63 | * using kmalloc. The caller must free the memory. | ||
64 | */ | ||
65 | static struct scatterlist *videobuf_vmalloc_to_sg(unsigned char *virt, | ||
66 | int nr_pages) | ||
61 | { | 67 | { |
62 | struct scatterlist *sglist; | 68 | struct scatterlist *sglist; |
63 | struct page *pg; | 69 | struct page *pg; |
@@ -81,10 +87,14 @@ err: | |||
81 | vfree(sglist); | 87 | vfree(sglist); |
82 | return NULL; | 88 | return NULL; |
83 | } | 89 | } |
84 | EXPORT_SYMBOL_GPL(videobuf_vmalloc_to_sg); | ||
85 | 90 | ||
86 | struct scatterlist *videobuf_pages_to_sg(struct page **pages, int nr_pages, | 91 | /* |
87 | int offset) | 92 | * Return a scatterlist for a an array of userpages (NULL on errors). |
93 | * Memory for the scatterlist is allocated using kmalloc. The caller | ||
94 | * must free the memory. | ||
95 | */ | ||
96 | static struct scatterlist *videobuf_pages_to_sg(struct page **pages, | ||
97 | int nr_pages, int offset) | ||
88 | { | 98 | { |
89 | struct scatterlist *sglist; | 99 | struct scatterlist *sglist; |
90 | int i; | 100 | int i; |