Re: [PATCH] bdi: Remove "inline" keyword from exported I_BDEV() implementation

From: Jens Axboe
Date: Sat Jun 27 2015 - 13:44:41 EST


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-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/