From: Fengguang Wu Date: Wed, 26 Sep 2012 07:57:55 +0000 (+0200) Subject: fs/block_dev.c:1644:5: sparse: symbol 'blkdev_mmap' was not declared X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3eab7315c8dd6685f58acba00319dd8b80a21d7a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Jens Axboe --- diff --git a/fs/block_dev.c b/fs/block_dev.c index 7eeb0635338..37967bcea05 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);