Fix possible kernel build errors with linux-patches
authorAndrew Gabbasov <andrew_gabbasov@mentor.com>
Mon, 10 Dec 2012 16:01:52 +0000 (11:01 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 10 Dec 2012 16:01:52 +0000 (11:01 -0500)
Kernel sources of version 2.6.32 - 2.6.34 with applied patches
from linux-patches may fail to compile if tracepoint samples
are configured to build. Some part of backported commits
are added to the kernel patches to avoid those errors.

Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
linux-patches/backport-tp-2.6.34-tracepoint-data.patch
linux-patches/backport-tracepoint-data-2.6.32-33.patch

index 385e87e5637771f7725244decb067934f6b8d3c1..0ffd7e1f02bff81314aeb24b3364800eea2838b7 100644 (file)
@@ -10,9 +10,10 @@ Date:   Sat Sep 1 17:45:09 2012 -0700
     Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
 
 ---
- include/linux/tracepoint.h |  149 ++++++++++++++++++++++++++++++++++-----------
- kernel/tracepoint.c        |  144 +++++++++++++++++++++++++++++++------------
- 2 files changed, 219 insertions(+), 74 deletions(-)
+ include/linux/tracepoint.h             |  149 +++++++++++++++++++++++++--------
+ kernel/tracepoint.c                    |  144 ++++++++++++++++++++++---------
+ samples/tracepoints/tp-samples-trace.h |    4 +-
+ 3 files changed, 220 insertions(+), 77 deletions(-)
 
 Index: linux/include/linux/tracepoint.h
 ===================================================================
@@ -543,3 +544,16 @@ Index: linux/kernel/tracepoint.c
  EXPORT_SYMBOL_GPL(tracepoint_probe_unregister_noupdate);
  
  /**
+Index: linux/samples/tracepoints/tp-samples-trace.h
+===================================================================
+--- linux.orig/samples/tracepoints/tp-samples-trace.h
++++ linux/samples/tracepoints/tp-samples-trace.h
+@@ -7,7 +7,5 @@
+ DECLARE_TRACE(subsys_event,
+       TP_PROTO(struct inode *inode, struct file *file),
+       TP_ARGS(inode, file));
+-DECLARE_TRACE(subsys_eventb,
+-      TP_PROTO(void),
+-      TP_ARGS());
++DECLARE_TRACE_NOARGS(subsys_eventb);
+ #endif
index e344bac55fde8e670acfafada60640e3545dec8d..e53b47662b0a13f99cf02442b405760728391e09 100644 (file)
@@ -10,9 +10,10 @@ Date:   Sat Sep 1 17:45:09 2012 -0700
     Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
 
 ---
- include/linux/tracepoint.h |  141 ++++++++++++++++++++++++++++++++++----------
- kernel/tracepoint.c        |  144 ++++++++++++++++++++++++++++++++-------------
- 2 files changed, 215 insertions(+), 70 deletions(-)
+ include/linux/tracepoint.h             |  141 +++++++++++++++++++++++++-------
+ kernel/tracepoint.c                    |  144 ++++++++++++++++++++++++---------
+ samples/tracepoints/tp-samples-trace.h |    4 +-
+ 3 files changed, 216 insertions(+), 73 deletions(-)
 
 Index: linux/include/linux/tracepoint.h
 ===================================================================
@@ -539,3 +540,16 @@ Index: linux/kernel/tracepoint.c
  EXPORT_SYMBOL_GPL(tracepoint_probe_unregister_noupdate);
  
  /**
+Index: linux/samples/tracepoints/tp-samples-trace.h
+===================================================================
+--- linux.orig/samples/tracepoints/tp-samples-trace.h
++++ linux/samples/tracepoints/tp-samples-trace.h
+@@ -7,7 +7,5 @@
+ DECLARE_TRACE(subsys_event,
+       TP_PROTO(struct inode *inode, struct file *file),
+       TP_ARGS(inode, file));
+-DECLARE_TRACE(subsys_eventb,
+-      TP_PROTO(void),
+-      TP_ARGS());
++DECLARE_TRACE_NOARGS(subsys_eventb);
+ #endif
This page took 0.026503 seconds and 4 git commands to generate.