]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
include/linux/printk.h: include stdarg.h
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Mar 2013 04:07:34 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Mar 2013 04:22:55 +0000 (15:22 +1100)
printk.h uses va_list but doesn't include stdarg.h.  Hence printk.h is
unusable unless its includer has already included kernel.h (which includes
stdarg.h).

Remove the dependency by including stdarg.h in printk.h

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/printk.h

index 1c35c23bccd78a099bc18c75cefe5d958e8c65e7..4890fe62c0119db86d8cbc9345deea33468ef517 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __KERNEL_PRINTK__
 #define __KERNEL_PRINTK__
 
+#include <stdarg.h>
 #include <linux/init.h>
 #include <linux/kern_levels.h>