On Mon, Apr 28, 2008 at 05:41:11PM -0700, Linus Torvalds wrote:
AFAICS, it's a gcc bug. We have
extern struct block_device *I_BDEV(struct inode *inode);
followed by
inline struct block_device *I_BDEV(struct inode *inode)
{
...
}
and presence of declaration with extern within the same translation unit
means that definition we have here is an external one, per 6.7.4. It's
perfectly legitimate and gcc has no business complaining about inline
here; moreover, example in 6.7.4(7) is essentially the same thing...
--