summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2012-09-26 09:57:55 +0200
committerJens Axboe <axboe@kernel.dk>2012-09-26 09:57:55 +0200
commit3eab7315c8dd6685f58acba00319dd8b80a21d7a (patch)
tree524801ea453362c6254d019d4990a7e1f37a89da /fs/block_dev.c
parent62ac665ff9fc07497ca524bd20d6a96893d11071 (diff)
downloadop-kernel-dev-3eab7315c8dd6685f58acba00319dd8b80a21d7a.zip
op-kernel-dev-3eab7315c8dd6685f58acba00319dd8b80a21d7a.tar.gz
fs/block_dev.c:1644:5: sparse: symbol 'blkdev_mmap' was not declared
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>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 7eeb063..37967bc 100644
--- 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);
OpenPOWER on IntegriCloud