x86, mpx: fix compile errors when tracing off
From: Dave Hansen <dave.hansen@linux.intel.com>
We DEFINE_TRACEPOINTS in arch/x86/mm/mpx.c, which is of course
only compiled when MPX is compiled in.
trace_bounds_exception_mpx() is used in bounds.c which is
outside the core MPX code and not under the MPX config option.
This can potentially end up being an undefined symbol.
So, we create a stub version of the function for when MPX is
off. But, I screwed up where I placed the stub and its #else.
This puts them back in the right place.
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
1 file changed