]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/mm: Move include of trace/events/kmem.h out of header into slab.c
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 9 Jan 2012 22:15:42 +0000 (17:15 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Jan 2012 22:19:33 +0000 (14:19 -0800)
commitaa81f9a37ac5368e2c5baaa02cfdf554da99ed27
tree78bf53f15f2b0dbcb6b6c1e74faf32545f4ba8bb
parent68c9c9db1271fc22a74bf938ba81f74192be6e61
tracing/mm: Move include of trace/events/kmem.h out of header into slab.c

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
mm/slab.c