tracing: Fix undeclared ENOSYS in include/linux/tracepoint.h
authorWu Zhangjin <wuzhangjin@gmail.com>
Mon, 21 Jun 2010 11:09:09 +0000 (19:09 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 21 Jun 2010 16:23:36 +0000 (12:23 -0400)
The header file include/linux/tracepoint.h may be included without
include/linux/errno.h and then the compiler will fail on building for
undelcared ENOSYS. This patch fixes this problem via including <linux/errno.h>
to include/linux/tracepoint.h.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
LKML-Reference: <1277118549-622-1-git-send-email-wuzhangjin@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/tracepoint.h

index 9a59d1f98cd4114948129d8e9ad95b77da27ec6d..103d1b61aacba635bb7c81cef9e32b70fe220bb7 100644 (file)
@@ -14,6 +14,7 @@
  * See the file COPYING for more details.
  */
 
+#include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/rcupdate.h>