summaryrefslogtreecommitdiffstats
path: root/include/linux/printk.h
diff options
context:
space:
mode:
authorAndrew Morton2013-04-30 01:17:19 +0200
committerLinus Torvalds2013-04-30 03:28:13 +0200
commit1b2c289b4f9018f4bd54d22ab54aaeda9181cd2a (patch)
treeb2fd354c2d9fa092a4348e1a758a14047fd38b3f /include/linux/printk.h
parentearly_printk: consolidate random copies of identical code (diff)
downloadkernel-qcow2-linux-1b2c289b4f9018f4bd54d22ab54aaeda9181cd2a.tar.gz
kernel-qcow2-linux-1b2c289b4f9018f4bd54d22ab54aaeda9181cd2a.tar.xz
kernel-qcow2-linux-1b2c289b4f9018f4bd54d22ab54aaeda9181cd2a.zip
include/linux/printk.h: include stdarg.h
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/printk.h')
-rw-r--r--include/linux/printk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h
index 1c35c23bccd7..4890fe62c011 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -1,6 +1,7 @@
#ifndef __KERNEL_PRINTK__
#define __KERNEL_PRINTK__
+#include <stdarg.h>
#include <linux/init.h>
#include <linux/kern_levels.h>