[PATCH 37/46] kernel: Include appropriate header file in tracepoint.c

Rashika Kheria
2014-02-27T12:24:23Z

Include appropriate header file include/trace/events/syscalls.h in
kernel/tracepoint.c because it has prototype definition of functions
defined in kernel/tracepoint.c.

This eliminates the following warning in kernel/tracepoint.c:
kernel/tracepoint.c:738:6: warning: no previous prototype for ‘syscall_regfunc’ [-Wmissing-prototypes]
kernel/tracepoint.c:755:6: warning: no previous prototype for ‘syscall_unregfunc’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
kernel/tracepoint.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index 0e26255..124d733 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -26,6 +26,7 @@
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/static_key.h>
+#include <trace/events/syscalls.h>

extern struct tracepoint * const __start___tracepoints_ptrs[];
extern struct tracepoint * const __stop___tracepoints_ptrs[];
--
1.7.9.5