aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2015-06-26 13:58:32 +0200
committerAlex Shi <alex.shi@linaro.org>2016-06-24 17:26:17 +0800
commit42616c8e280857d92cfacf2df457de5bccae8f76 (patch)
tree23c48d7ef2978f25122900847db2ed96670f004a
parent7630ef57b00ae5a81c6cc80c94e76e440f3675b1 (diff)
bdi: Remove "inline" keyword from exported I_BDEV() implementation
With gcc 3.4.6/4.1.2/4.2.4 (not with 4.4.7/4.6.4/4.8.4): CC fs/block_dev.o include/linux/fs.h:804: warning: ‘I_BDEV’ declared inline after being called include/linux/fs.h:804: warning: previous declaration of ‘I_BDEV’ was here Commit a212b105b07d75b4 ("bdi: make inode_to_bdi() inline") added a caller of I_BDEV() in a header file, exposing the bogus "inline" on the exported implementation. Drop the "inline" keyword to fix this. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jens Axboe <axboe@fb.com> (cherry picked from commit ff5053f66677b046cb85695b2a93d4eb07029fa7) Signed-off-by: Alex Shi <alex.shi@linaro.org>
-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 e9134afc347c..5af3bc743af4 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -44,7 +44,7 @@ static inline struct bdev_inode *BDEV_I(struct inode *inode)
return container_of(inode, struct bdev_inode, vfs_inode);
}
-inline struct block_device *I_BDEV(struct inode *inode)
+struct block_device *I_BDEV(struct inode *inode)
{
return &BDEV_I(inode)->bdev;
}