Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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/20160828165815.25647-1-nicolas.iooss_linux@m4x.org

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

authored by

Nicolas Iooss and committed by
Russell King (Oracle)
0e52fc2e 2abd6e34

+1 -1
+1 -1
arch/arm/include/asm/setup.h
··· 19 19 static const struct tagtable __tagtable_##fn __tag = { tag, fn } 20 20 21 21 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, ...); 23 23 extern void dump_machine_table(void); 24 24 25 25 #ifdef CONFIG_ATAGS_PROC