mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
Non gcc-5 builds with CONFIG_STACK_VALIDATION=y and SKIP_STACK_VALIDATION=1 fail. Example output: /bin/sh: init/.tmp_main.o: Permission denied commit96f60dfa58("trace: Use -mcount-record for dynamic ftrace"), added a mismatched endif. This causes cmd_objtool to get mistakenly set. Relocate endif to balance the newly added -record-mcount check. Link: http://lkml.kernel.org/r/[email protected] Fixes:96f60dfa58("trace: Use -mcount-record for dynamic ftrace") Acked-by: Andi Kleen <[email protected]> Tested-by: David Rientjes <[email protected]> Signed-off-by: Greg Thelen <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>