瀏覽代碼

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>
Andrew Morton 12 年之前
父節點
當前提交
1b2c289b4f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/linux/printk.h

+ 1 - 0
include/linux/printk.h

@@ -1,6 +1,7 @@
 #ifndef __KERNEL_PRINTK__
 #ifndef __KERNEL_PRINTK__
 #define __KERNEL_PRINTK__
 #define __KERNEL_PRINTK__
 
 
+#include <stdarg.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/kern_levels.h>
 #include <linux/kern_levels.h>