There are a number of sparse warnings coming from the fs subdirectory, mainly due to not defining functions that are used by other files, as well as 0/NULL patch to fs/proc/task_mmu.c This patch creates a header with the definitions in and includes it into the relevant .c files, and moves the proc definitions into linux/proc_fs.h Also cleans up some static definitions in fs/inotify.c Files modified: fs/block_dev.c | 2 ++ fs/char_dev.c | 2 ++ fs/compat.c | 4 ++-- fs/filesystems.c | 3 +++ fs/fs-writeback.c | 2 +- fs/fs.h | 16 ++++++++++++++++ fs/inotify.c | 6 +++--- fs/locks.c | 1 + fs/namespace.c | 2 ++ fs/proc/proc_misc.c | 13 ------------- fs/proc/task_mmu.c | 2 +- fs/super.c | 3 +-- include/linux/proc_fs.h | 15 +++++++++++++++ kernel/exec_domain.c | 2 +- 14 files changed, 50 insertions(+), 23 deletions(-) Signed-off-by: Ben Dooks