diff options
author | Ben Hutchings <benh@debian.org> | 2012-06-23 22:29:25 +0000 |
---|---|---|
committer | Ben Hutchings <benh@debian.org> | 2012-06-23 22:29:25 +0000 |
commit | a21b0afd1f25e551ca6ca9a7bbda63e3bca385df (patch) | |
tree | a97c74fc616e43e117c88013d42057d56014bb44 | |
parent | 6eb32a96cce2750d3b4e1ab2db8285d20dc18830 (diff) | |
download | kernel_replicant_linux-a21b0afd1f25e551ca6ca9a7bbda63e3bca385df.tar.gz kernel_replicant_linux-a21b0afd1f25e551ca6ca9a7bbda63e3bca385df.tar.bz2 kernel_replicant_linux-a21b0afd1f25e551ca6ca9a7bbda63e3bca385df.zip |
tracing/mm: Move include of trace/events/kmem.h out of header into slab.c
svn path=/dists/sid/linux/; revision=19186
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | debian/patches/features/all/cpu-devices/tracing-mm-Move-include-of-trace-events-kmem.h-out-o.patch | 53 | ||||
-rw-r--r-- | debian/patches/series | 1 |
3 files changed, 57 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 7fce82a8f55d..b21da97023f7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,9 @@ linux (3.2.21-2) UNRELEASED; urgency=low * [i386] cpufreq/gx: Fix the compile error - * [powerpc] Enable PPC_DISABLE_WERROR + * [powerpc] Enable PPC_DISABLE_WERROR (fixes FTBFS) + * tracing/mm: Move include of trace/events/kmem.h out of header into slab.c + (fixes FTBFS on sparc) -- Ben Hutchings <ben@decadent.org.uk> Sat, 23 Jun 2012 20:19:15 +0100 diff --git a/debian/patches/features/all/cpu-devices/tracing-mm-Move-include-of-trace-events-kmem.h-out-o.patch b/debian/patches/features/all/cpu-devices/tracing-mm-Move-include-of-trace-events-kmem.h-out-o.patch new file mode 100644 index 000000000000..79e9107c418a --- /dev/null +++ b/debian/patches/features/all/cpu-devices/tracing-mm-Move-include-of-trace-events-kmem.h-out-o.patch @@ -0,0 +1,53 @@ +From: Steven Rostedt <rostedt@goodmis.org> +Date: Mon, 9 Jan 2012 17:15:42 -0500 +Subject: tracing/mm: Move include of trace/events/kmem.h out of header into + slab.c + +commit 4dee6b64ee7cfef94b47733c6d9fef07f8051c7c upstream. + +Including trace/events/*.h TRACE_EVENT() macro headers in other headers +can cause strange side effects if another trace/event/*.h header +includes that header. Having trace/events/kmem.h inside slab_def.h +caused a compile error in sparc64 when changes were done to some header +files. Moving the kmem.h trace header out of slab.h and into slab.c +fixes the problem. + +Note, both slub.c and slob.c already include the trace/events/kmem.h +file. Only slab.c had it missing. + +Link: http://lkml.kernel.org/r/20120105190405.1e3191fb5a43b2a0f1655e1f@canb.auug.org.au + +Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> +Signed-off-by: Steven Rostedt <rostedt@goodmis.org> +Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> +--- + include/linux/slab_def.h | 2 -- + mm/slab.c | 2 ++ + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h +index d00e0ba..fbd1117 100644 +--- a/include/linux/slab_def.h ++++ b/include/linux/slab_def.h +@@ -15,8 +15,6 @@ + #include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */ + #include <linux/compiler.h> + +-#include <trace/events/kmem.h> +- + /* + * struct kmem_cache + * +diff --git a/mm/slab.c b/mm/slab.c +index 83311c9a..2acfa0d 100644 +--- a/mm/slab.c ++++ b/mm/slab.c +@@ -121,6 +121,8 @@ + #include <asm/tlbflush.h> + #include <asm/page.h> + ++#include <trace/events/kmem.h> ++ + /* + * DEBUG - 1 for kmem_cache_create() to honour; SLAB_RED_ZONE & SLAB_POISON. + * 0 for faster, smaller code (especially in the critical paths). diff --git a/debian/patches/series b/debian/patches/series index 22a5c6cb24f9..ecd31ac8e506 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -341,6 +341,7 @@ features/all/cpu-devices/powernow-k6-Really-enable-auto-loading.patch features/all/cpu-devices/intel_idle-Revert-change-of-auto_demotion_disable_fl.patch features/all/cpu-devices/Partially-revert-cpufreq-Add-support-for-x86-cpuinfo.patch features/all/cpu-devices/cpufreq-gx-Fix-the-compile-error.patch +features/all/cpu-devices/tracing-mm-Move-include-of-trace-events-kmem.h-out-o.patch features/arm/kirkwood-add-dreamplug-fdt-support.patch features/arm/kirkwood-fdt-convert-uart0-to-devicetree.patch |