Skip to contentSkip to conversation

include buffer_head.h in actual users instead of fs.h (2/10)

PATCH New Christoph Hellwig 1 participant 1 message May 23, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include buffer_head.h in actual users instead of fs.h (2/10)

Declare buffer_init() extern in init/main.c like the other _init so that it doesn't have to include buffer_head.h. Remove buffer_init() there.

include/linux/buffer_head.h +0 -1
@@ -138,7 +143,6 @@
  */
 
 void FASTCALL(mark_buffer_dirty(struct buffer_head *bh));
-void buffer_init(void);
 void init_buffer(struct buffer_head *, bh_end_io_t *, void *);
 void set_bh_page(struct buffer_head *bh,
 		struct page *page, unsigned long offset);
init/main.c +1 -0
@@ -68,6 +68,7 @@
 extern void sbus_init(void);
 extern void sysctl_init(void);
 extern void signals_init(void);
+extern void buffer_init(void);
 
 extern void radix_tree_init(void);
 extern void free_initmem(void);