Skip to content

Commit

Permalink
fs/block_dev.c:1644:5: sparse: symbol 'blkdev_mmap' was not declared
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fengguang Wu authored and Jens Axboe committed Sep 26, 2012
1 parent 62ac665 commit 3eab731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3eab731

Please sign in to comment.