From: Adrian Bunk - add a proper prototype for the following global function: - buffer_init() - make the following needlessly global function static: - end_buffer_async_write() Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- fs/buffer.c | 3 +-- include/linux/buffer_head.h | 2 +- init/main.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff -puN fs/buffer.c~fs-bufferc-possible-cleanups fs/buffer.c --- devel/fs/buffer.c~fs-bufferc-possible-cleanups 2006-05-17 13:09:53.000000000 -0700 +++ devel-akpm/fs/buffer.c 2006-05-17 13:09:53.000000000 -0700 @@ -566,7 +566,7 @@ still_busy: * Completion handler for block_write_full_page() - pages which are unlocked * during I/O, and which have PageWriteback cleared upon I/O completion. */ -void end_buffer_async_write(struct buffer_head *bh, int uptodate) +static void end_buffer_async_write(struct buffer_head *bh, int uptodate) { char b[BDEVNAME_SIZE]; unsigned long flags; @@ -3168,7 +3168,6 @@ EXPORT_SYMBOL(block_sync_page); EXPORT_SYMBOL(block_truncate_page); EXPORT_SYMBOL(block_write_full_page); EXPORT_SYMBOL(cont_prepare_write); -EXPORT_SYMBOL(end_buffer_async_write); EXPORT_SYMBOL(end_buffer_read_sync); EXPORT_SYMBOL(end_buffer_write_sync); EXPORT_SYMBOL(file_fsync); diff -puN include/linux/buffer_head.h~fs-bufferc-possible-cleanups include/linux/buffer_head.h --- devel/include/linux/buffer_head.h~fs-bufferc-possible-cleanups 2006-05-17 13:09:53.000000000 -0700 +++ devel-akpm/include/linux/buffer_head.h 2006-05-17 13:09:53.000000000 -0700 @@ -149,7 +149,6 @@ void create_empty_buffers(struct page *, unsigned long b_state); void end_buffer_read_sync(struct buffer_head *bh, int uptodate); void end_buffer_write_sync(struct buffer_head *bh, int uptodate); -void end_buffer_async_write(struct buffer_head *bh, int uptodate); /* Things to do with buffers at mapping->private_list */ void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode); @@ -214,6 +213,7 @@ int nobh_truncate_page(struct address_sp int nobh_writepage(struct page *page, get_block_t *get_block, struct writeback_control *wbc); +void buffer_init(void); /* * inline definitions diff -puN init/main.c~fs-bufferc-possible-cleanups init/main.c --- devel/init/main.c~fs-bufferc-possible-cleanups 2006-05-17 13:09:53.000000000 -0700 +++ devel-akpm/init/main.c 2006-05-17 13:09:53.000000000 -0700 @@ -50,6 +50,7 @@ #include #include #include +#include #include #include @@ -82,7 +83,6 @@ extern void mca_init(void); extern void sbus_init(void); extern void sysctl_init(void); extern void signals_init(void); -extern void buffer_init(void); extern void pidhash_init(void); extern void pidmap_init(void); extern void prio_tree_init(void); _