diff options
-rw-r--r-- | fs/ocfs2/super.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ocfs2/super.h b/fs/ocfs2/super.h index c564177dfbdc..783f5270f2a1 100644 --- a/fs/ocfs2/super.h +++ b/fs/ocfs2/super.h | |||
@@ -33,12 +33,16 @@ int ocfs2_publish_get_mount_state(struct ocfs2_super *osb, | |||
33 | 33 | ||
34 | void __ocfs2_error(struct super_block *sb, | 34 | void __ocfs2_error(struct super_block *sb, |
35 | const char *function, | 35 | const char *function, |
36 | const char *fmt, ...); | 36 | const char *fmt, ...) |
37 | __attribute__ ((format (printf, 3, 4))); | ||
38 | |||
37 | #define ocfs2_error(sb, fmt, args...) __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##args) | 39 | #define ocfs2_error(sb, fmt, args...) __ocfs2_error(sb, __PRETTY_FUNCTION__, fmt, ##args) |
38 | 40 | ||
39 | void __ocfs2_abort(struct super_block *sb, | 41 | void __ocfs2_abort(struct super_block *sb, |
40 | const char *function, | 42 | const char *function, |
41 | const char *fmt, ...); | 43 | const char *fmt, ...) |
44 | __attribute__ ((format (printf, 3, 4))); | ||
45 | |||
42 | #define ocfs2_abort(sb, fmt, args...) __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##args) | 46 | #define ocfs2_abort(sb, fmt, args...) __ocfs2_abort(sb, __PRETTY_FUNCTION__, fmt, ##args) |
43 | 47 | ||
44 | #endif /* OCFS2_SUPER_H */ | 48 | #endif /* OCFS2_SUPER_H */ |