Skip to contentSkip to conversation

make udf_error() static

RFC PATCH New Adrian Bunk 1 participant 1 message Feb 17, 2008 UDF filesystem

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 make udf_error() static

This patch makes the needlessly global udf_error() static.

---

 fs/udf/super.c   |    6 ++++--
 fs/udf/udfdecl.h |    1 -
 2 files changed, 4 insertions(+), 3 deletions(-)

c99325d879eda1095e5d82e2b8151a22bc220db8 diff --git a/fs/udf/super.c b/fs/udf/super.c index f3ac4ab..d1f9507 100644

fs/udf/super.c +4 -2
@@ -100,6 +100,8 @@ static void udf_close_lvid(struct super_block *);
 static unsigned int udf_count_free(struct super_block *);
 static int udf_statfs(struct dentry *, struct kstatfs *);
 static int udf_show_options(struct seq_file *, struct vfsmount *);
+static void udf_error(struct super_block *sb, const char *function,
+		      const char *fmt, ...);
 
 struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct udf_sb_info *sbi)
 {
@@ -1920,8 +1922,8 @@ error_out:
 	return -EINVAL;
 }
 
-void udf_error(struct super_block *sb, const char *function,
-	       const char *fmt, ...)
+static void udf_error(struct super_block *sb, const char *function,
+		      const char *fmt, ...)
 {
 	va_list args;
 
fs/udf/udfdecl.h +0 -1
index 681dc2b..55aabaf 100644
@@ -83,7 +83,6 @@ struct extent_position {
 };
 
 /* super.c */
-extern void udf_error(struct super_block *, const char *, const char *, ...);
 extern void udf_warning(struct super_block *, const char *, const char *, ...);
 
 /* namei.c */