summaryrefslogtreecommitdiff
path: root/lib/fdt.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-02-08 17:36:52 +0300
committerIngo Molnar <mingo@kernel.org>2016-02-09 12:27:29 +0300
commit975db45e9cc561bf8a7eddfa0705d3a078ec184f (patch)
treeaa9cb3419b3e5eb1ff312a90a32c1fbe3474ea21 /lib/fdt.c
parent2a96fd7417a0eb501edfde9713555bd7c2eda302 (diff)
downloadlinux-975db45e9cc561bf8a7eddfa0705d3a078ec184f.tar.xz
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 <arnd@arndb.de> Acked-by: Jason Baron <jbaron@akamai.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1454942223-2781480-1-git-send-email-arnd@arndb.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/fdt.c')
0 files changed, 0 insertions, 0 deletions