]> git.karo-electronics.de Git - linux-beck.git/commit
bcache: remove nested function usage
authorJohn Sheu <john.sheu@gmail.com>
Tue, 18 Mar 2014 06:13:56 +0000 (23:13 -0700)
committerKent Overstreet <kmo@daterainc.com>
Tue, 18 Mar 2014 19:39:28 +0000 (12:39 -0700)
commitcb85114956dc88b287afca2872658f562acbc302
tree910dac3eecdcbbb70eb38ab88d71f309719f6e2d
parent3a2fd9d5090b83aab85378a846fa10f39b0b5aa7
bcache: remove nested function usage

Uninlined nested functions can cause crashes when using ftrace, as they don't
follow the normal calling convention and confuse the ftrace function graph
tracer as it examines the stack.

Also, nested functions are supported as a gcc extension, but may fail on other
compilers (e.g. llvm).

Signed-off-by: John Sheu <john.sheu@gmail.com>
drivers/md/bcache/extents.c
drivers/md/bcache/sysfs.c