瀏覽代碼

tracing/ftrace: fix missing include string.h

Building a kernel with tracing can raise the following warning on
tip/master:

kernel/trace/trace.c:1249: error: implicit declaration of function 'vbin_printf'

We are missing an include to string.h

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1238160130-7437-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Frederic Weisbecker 16 年之前
父節點
當前提交
5f0c6c03c5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/trace/trace.c

+ 1 - 0
kernel/trace/trace.c

@@ -30,6 +30,7 @@
 #include <linux/percpu.h>
 #include <linux/percpu.h>
 #include <linux/splice.h>
 #include <linux/splice.h>
 #include <linux/kdebug.h>
 #include <linux/kdebug.h>
+#include <linux/string.h>
 #include <linux/ctype.h>
 #include <linux/ctype.h>
 #include <linux/init.h>
 #include <linux/init.h>
 #include <linux/poll.h>
 #include <linux/poll.h>