]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: jump_label: Fix compat branch range check
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Thu, 3 Nov 2022 15:10:53 +0000 (15:10 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 11 Nov 2022 14:46:03 +0000 (15:46 +0100)
commit64ac0befe75bdfaffc396c2b4a0ed5ae6920eeee
treec1d0305020a86a7e9f2244c0c7ec26c5cce4cc1d
parent2a296157859287c3b639f7228354c13f7182ed71
MIPS: jump_label: Fix compat branch range check

Cast upper bound of branch range to long to do signed compare,
avoid negative offset trigger this warning.

Fixes: 9b6584e35f40 ("MIPS: jump_label: Use compact branches for >= r6")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/jump_label.c