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)
commitfaa9724a674e5e52316bb0d173aed16bd17d536c
treee66aad22044dddbb69820e79cced9db018ac0a6d
parent88d3426942d748b90b051b7ef2d5d765f5f3054c
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