* [PATCH] bdi: Remove "inline" keyword from exported I_BDEV() implementation
@ 2015-06-26 11:58 Geert Uytterhoeven
2015-06-27 17:44 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2015-06-26 11:58 UTC (permalink / raw)
To: Alexander Viro, Tejun Heo, Jens Axboe
Cc: linux-fsdevel, linux-kernel, Geert Uytterhoeven
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>
---
fs/block_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/block_dev.c b/fs/block_dev.c
index f04c873a7365c1b5..f839c339565e73af 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -43,7 +43,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;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bdi: Remove "inline" keyword from exported I_BDEV() implementation
2015-06-26 11:58 [PATCH] bdi: Remove "inline" keyword from exported I_BDEV() implementation Geert Uytterhoeven
@ 2015-06-27 17:44 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2015-06-27 17:44 UTC (permalink / raw)
To: Geert Uytterhoeven, Alexander Viro, Tejun Heo; +Cc: linux-fsdevel, linux-kernel
On 06/26/2015 05:58 AM, Geert Uytterhoeven wrote:
> 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.
Added, thanks.
--
Jens Axboe
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-27 17:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 11:58 [PATCH] bdi: Remove "inline" keyword from exported I_BDEV() implementation Geert Uytterhoeven
2015-06-27 17:44 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).