Skip to contentSkip to conversation

exofs/ore.c: local functions should be static

PATCH New H Hartley Sweeten 1 participant 1 message Sep 23, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 exofs/ore.c: local functions should be static

This quiets the sparse noise:

warning: symbol '_calc_trunk_info' was not declared. Should it be static?

Cc Boaz Harrosh <[email protected]>
Cc Benny Halevy <[email protected]>

---

fs/exofs/ore.c +2 -2
index 25305af..6114fdf 100644
@@ -753,8 +753,8 @@ struct _trunc_info {
 	unsigned max_devs;
 };
 
-void _calc_trunk_info(struct ore_layout *layout, u64 file_offset,
-		       struct _trunc_info *ti)
+static void _calc_trunk_info(struct ore_layout *layout, u64 file_offset,
+			     struct _trunc_info *ti)
 {
 	unsigned stripe_unit = layout->stripe_unit;