Clean up sparse warnings
Theodore Ts'o authored

Mostly by adding static and removing excess extern qualifiers.  Also
convert a few remaining non-ANSI function declarations to ANSI.
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
f404167d