[PATCH] tracing: Fix undelared ENOSYS in include/linux/tracepoint.h

From: Wu Zhangjin
Date: Mon Jun 21 2010 - 07:08:28 EST


From: Wu Zhangjin <wuzhangjin@xxxxxxxxx>

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@xxxxxxxxx>
---
include/linux/tracepoint.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index 9a59d1f..103d1b6 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -14,6 +14,7 @@
* See the file COPYING for more details.
*/

+#include <linux/errno.h>
#include <linux/types.h>
#include <linux/rcupdate.h>

--
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/