]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BPF: Avoid unreachable code on little endian
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 5 Sep 2015 16:46:56 +0000 (18:46 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 22 Sep 2015 17:05:17 +0000 (19:05 +0200)
commita43697f2bc055d5d0d1db35d127f7c2ad979d239
treee66aad22044dddbb69820e79cced9db018ac0a6d
parentc9f11e411336ecda345dc78000823d90d278fc66
MIPS: BPF: Avoid unreachable code on little endian

On little endian, avoid generating the big endian version of the code
by using #else in addition to #ifdef #endif. Also fix one alignment
issue wrt delay slot.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: stable@vger.kernel.org # v4.2+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11097/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/net/bpf_jit_asm.S