linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: Add printf annotation to early_print
@ 2014-10-14  8:59 Alexander Stein
  2014-10-14  8:59 ` [PATCH 2/2] ARM64: " Alexander Stein
  2014-12-08  8:06 ` [PATCH 1/2] ARM: " Alexander Stein
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Stein @ 2014-10-14  8:59 UTC (permalink / raw)
  To: linux-arm-kernel

This adds the printf format annotation to early_print to warn users about
incompatible formats and argument.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 arch/arm/include/asm/setup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h
index e0adb9f..d4e06cc 100644
--- a/arch/arm/include/asm/setup.h
+++ b/arch/arm/include/asm/setup.h
@@ -22,7 +22,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);
 
 #endif
-- 
2.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-08  8:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-14  8:59 [PATCH 1/2] ARM: Add printf annotation to early_print Alexander Stein
2014-10-14  8:59 ` [PATCH 2/2] ARM64: " Alexander Stein
2014-10-14  9:43   ` Catalin Marinas
2014-12-08  8:06 ` [PATCH 1/2] ARM: " Alexander Stein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).