summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2021-10-21 11:21:29 +0200
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-10-25 14:12:37 +0200
commit0e52fc2e7ddda78d9ced594a3bd0f840435a6560 (patch)
tree51fc492247f399e6ad10aa77504b28cb1480fdc9 /arch/arm/include
parentARM: 9146/1: RiscPC needs older gcc version (diff)
downloadlinux-0e52fc2e7ddda78d9ced594a3bd0f840435a6560.tar.xz
linux-0e52fc2e7ddda78d9ced594a3bd0f840435a6560.zip
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>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/setup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h
index 3ae68a1b3de6..ba0872a8dcda 100644
--- a/arch/arm/include/asm/setup.h
+++ b/arch/arm/include/asm/setup.h
@@ -19,7 +19,7 @@
static const struct tagtable __tagtable_##fn __tag = { tag, fn }
extern int arm_add_memory(u64 start, u64 size);
-extern void early_print(const char *str, ...);
+extern __printf(1, 2) void early_print(const char *str, ...);
extern void dump_machine_table(void);
#ifdef CONFIG_ATAGS_PROC