Re: [PATCH 5/9] bfs: move function prototype to the proper headerfile

From: Tigran Aivazian
Date: Thu Jan 24 2008 - 18:22:45 EST


On Fri, 25 Jan 2008, Dmitri Vorobiev wrote:

Heikki Orsila ÐÐÑÐÑ:
+extern void dump_imap(const char *, struct super_block *);
+

Functions should not be externed, remove extern keyword.


Care to explain why?

because dump_imap() is just a BFS' internal helper (for debugging purposes only btw) to dump the inode map via printk. Why should it be moved into the header, i.e. where one expects to see things potentially visible by the rest of the kernel?

3) The checkpatch.pl did not complain at this particular patch.

maybe this script should be simplified to not complain at things like that, which are best left to the author of the code to decide which declaration should be where?

Kind regards
Tigran