md, sysfs, LLVMLinux: Remove nested function from bcache sysfs
authorBernhard Rosenkränzer <bero@linaro.org>
Wed, 22 Feb 2017 23:20:49 +0000 (00:20 +0100)
committerStefan Agner <stefan@agner.ch>
Mon, 7 Aug 2017 06:21:11 +0000 (23:21 -0700)
commit4892c8abc8e115ed8448f2bdc6bda827109c672a
tree64da551c988640bc4e9f569a932665cb91b882ae
parentb03f4c3cf4eddc9edde88c266aca4ae0136e0db0
md, sysfs, LLVMLinux: Remove nested function from bcache sysfs

Replace the use of nested functions where a normal function will suffice.

Nested functions are not liked by upstream kernel developers in general. Their
use breaks the use of clang as a compiler, and doesn't make the code any
better.

This code now works for both gcc and clang.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Reviewed-by: Mark Charlebois <charlebm@gmail.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Forward-ported-by: Bernhard Rosenkränzer <bero@linaro.org>
Signed-off-by: Bernhard Rosenkränzer <bero@linaro.org>
drivers/md/bcache/sysfs.c