mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
seq_file: Mark binary printing functions with __printf() attribute
Binary printing functions are using printf() type of format, and compiler is not happy about them as is: fs/seq_file.c:418:35: error: function ‘seq_bprintf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format] Fix the compilation errors by adding __printf() attribute. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Petr Mladek <[email protected]>
This commit is contained in:
1 parent
079a206f51
commit
6b2c1e30ad
1 file changed
+1
@@ -181,6 +181,7 @@ int seq_open_private(struct file *, const struct seq_operations *, int);
|
||||
int seq_release_private(struct inode *, struct file *);
|
||||
|
||||
#ifdef CONFIG_BINARY_PRINTF
|
||||
__printf(2, 0)
|
||||
void seq_bprintf(struct seq_file *m, const char *f, const u32 *binary);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user