]> git.baikalelectronics.ru Git - kernel.git/commit
recordmcount: Fix nop_mcount() function
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 9 Oct 2019 15:05:38 +0000 (11:05 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sun, 13 Oct 2019 00:49:33 +0000 (20:49 -0400)
commit3ebdb0b7f8b4c7f78842c1889fe912f7c0ae4c5d
treebe090a9734dde6117e3777e18637586fe8a2c7e9
parentfdecc3314755a0570b15f1de480cc0a4b0087e9d
recordmcount: Fix nop_mcount() function

The removal of the longjmp code in recordmcount.c mistakenly made the return
of make_nop() being negative an exit of nop_mcount(). It should not exit the
routine, but instead just not process that part of the code. By exiting with
an error code, it would cause the update of recordmcount to fail some files
which would fail the build if ftrace function tracing was enabled.

Link: http://lkml.kernel.org/r/20191009110538.5909fec6@gandalf.local.home
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fixes: 5633fc5ac262 ("recordmcount: Rewrite error/success handling")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
scripts/recordmcount.h