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>

authored by Jiaxun Yang and committed by Thomas Bogendoerfer 64ac0bef 2a296157

Changed files
+1 -1
arch
mips
kernel
+1 -1
arch/mips/kernel/jump_label.c
··· 56 56 * The branch offset must fit in the instruction's 26 57 57 * bit field. 58 58 */ 59 - WARN_ON((offset >= BIT(25)) || 59 + WARN_ON((offset >= (long)BIT(25)) || 60 60 (offset < -(long)BIT(25))); 61 61 62 62 insn.j_format.opcode = bc6_op;