]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Remove function size check in get_frame_info()
authorJun-Ru Chang <jrjang@realtek.com>
Tue, 29 Jan 2019 03:56:07 +0000 (11:56 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 May 2019 20:41:38 +0000 (21:41 +0100)
commit8931fadeb9f881932864d0a662698ea6adb9ad3f
tree176ff30f62178ecf5987d0b9d67716e08001bda5
parent4bdd0b26261a16a93c5d83c4bb84d4b071ebb52f
MIPS: Remove function size check in get_frame_info()

commit 2b424cfc69728224fcb5fad138ea7260728e0901 upstream.

Patch (b6c7a324df37b "MIPS: Fix get_frame_info() handling of
microMIPS function size.") introduces additional function size
check for microMIPS by only checking insn between ip and ip + func_size.
However, func_size in get_frame_info() is always 0 if KALLSYMS is not
enabled. This causes get_frame_info() to return immediately without
calculating correct frame_size, which in turn causes "Can't analyze
schedule() prologue" warning messages at boot time.

This patch removes func_size check, and let the frame_size check run
up to 128 insns for both MIPS and microMIPS.

Signed-off-by: Jun-Ru Chang <jrjang@realtek.com>
Signed-off-by: Tony Wu <tonywu@realtek.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Fixes: b6c7a324df37b ("MIPS: Fix get_frame_info() handling of microMIPS function size.")
Cc: <ralf@linux-mips.org>
Cc: <jhogan@kernel.org>
Cc: <macro@mips.com>
Cc: <yamada.masahiro@socionext.com>
Cc: <peterz@infradead.org>
Cc: <mingo@kernel.org>
Cc: <linux-mips@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/mips/kernel/process.c