Skip to content

Commit 0e52fc2

Browse files
fishilicoRussell King (Oracle)
authored andcommitted
ARM: 9147/1: add printf format attribute to early_print()
Adding such an attribute is helpful to detect errors related to printf formats at compile-time. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nicolas Iooss <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 2abd6e3 commit 0e52fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/include/asm/setup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
static const struct tagtable __tagtable_##fn __tag = { tag, fn }
2020

2121
extern int arm_add_memory(u64 start, u64 size);
22-
extern void early_print(const char *str, ...);
22+
extern __printf(1, 2) void early_print(const char *str, ...);
2323
extern void dump_machine_table(void);
2424

2525
#ifdef CONFIG_ATAGS_PROC

0 commit comments

Comments
 (0)