aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2016-02-08 15:36:52 +0100
committerIngo Molnar <[email protected]>2016-02-09 10:27:29 +0100
commit975db45e9cc561bf8a7eddfa0705d3a078ec184f (patch)
treeaa9cb3419b3e5eb1ff312a90a32c1fbe3474ea21 /tools/perf/scripts/python/stackcollapse.py
parent2a96fd7417a0eb501edfde9713555bd7c2eda302 (diff)
locking/static_keys: Avoid nested functions
clang does not support nested functions inside of an array definition: lib/test_static_keys.c:105:16: error: function definition is not allowed here .test_key = test_key_func(&old_true_key, static_key_true), lib/test_static_keys.c:50:20: note: expanded from macro 'test_key_func' ({bool func(void) { return branch(key); } func; }) That code appears to be a little too clever, so this simplifies it a bit by defining functions outside of the array. Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Jason Baron <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions