projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62ac665
)
fs/block_dev.c:1644:5: sparse: symbol 'blkdev_mmap' was not declared
author
Fengguang Wu
<fengguang.wu@intel.com>
Wed, 26 Sep 2012 07:57:55 +0000
(09:57 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 26 Sep 2012 07:57:55 +0000
(09:57 +0200)
blkdev_mmap() isn't used outside of fs/block_dev.c, mark it as
static.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/block_dev.c
b/fs/block_dev.c
index 7eeb0635338bdff8c07e2d5c4f09a3423b458f57..37967bcea05c10be626bc9a3c55d882ebb119adf 100644
(file)
--- a/
fs/block_dev.c
+++ b/
fs/block_dev.c
@@
-1648,7
+1648,7
@@
ssize_t blkdev_aio_write(struct kiocb *iocb, const struct iovec *iov,
}
EXPORT_SYMBOL_GPL(blkdev_aio_write);
-int blkdev_mmap(struct file *file, struct vm_area_struct *vma)
+
static
int blkdev_mmap(struct file *file, struct vm_area_struct *vma)
{
int ret;
struct block_device *bdev = I_BDEV(file->f_mapping->host);