linux/arch
Björn Töpel 93bbb2555b riscv, bpf: Remove BPF JIT for nommu builds
The BPF JIT fails to build for kernels configured to !MMU. Without an
MMU, the BPF JIT does not make much sense, therefore this patch
disables the JIT for nommu builds.

This was reported by the kbuild test robot:

   All errors (new ones prefixed by >>):

      arch/riscv/net/bpf_jit_comp64.c: In function 'bpf_jit_alloc_exec':
   >> arch/riscv/net/bpf_jit_comp64.c:1094:47: error: 'BPF_JIT_REGION_START' undeclared (first use in this function)
       1094 |  return __vmalloc_node_range(size, PAGE_SIZE, BPF_JIT_REGION_START,
            |                                               ^~~~~~~~~~~~~~~~~~~~
      arch/riscv/net/bpf_jit_comp64.c:1094:47: note: each undeclared identifier is reported only once for each function it appears in
   >> arch/riscv/net/bpf_jit_comp64.c:1095:9: error: 'BPF_JIT_REGION_END' undeclared (first use in this function)
       1095 |         BPF_JIT_REGION_END, GFP_KERNEL,
            |         ^~~~~~~~~~~~~~~~~~
      arch/riscv/net/bpf_jit_comp64.c:1098:1: warning: control reaches end of non-void function [-Wreturn-type]
       1098 | }
            | ^

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Björn Töpel <bjorn.topel@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Luke Nelson <luke.r.nels@gmail.com>
Link: https://lore.kernel.org/bpf/20200331101046.23252-1-bjorn.topel@gmail.com
2020-04-03 00:33:42 +02:00
..
alpha Updates for the interrupt subsystem: 2020-03-30 17:35:14 -07:00
arc Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2020-03-30 16:17:15 -07:00
arm Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
arm64 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
c6x c6x: Replace setup_irq() by request_irq() 2020-03-29 21:03:42 +02:00
csky csky: Remove mm.h from asm/uaccess.h 2020-03-21 16:00:21 +01:00
h8300
hexagon Updates for the interrupt subsystem: 2020-03-30 17:35:14 -07:00
ia64 Couple of cleanup patches 2020-03-31 09:26:06 -07:00
m68k m68k updates for v5.7 2020-03-31 08:49:26 -07:00
microblaze Microblaze patches for 5.7-rc1 2020-03-31 09:58:07 -07:00
mips MIPS updates for v5.7: 2020-03-31 08:51:45 -07:00
nds32 Merge branch 'uaccess.futex' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs into locking/core 2020-03-28 11:59:24 +01:00
nios2
openrisc futex: arch_futex_atomic_op_inuser() calling conventions change 2020-03-27 23:58:51 -04:00
parisc CPU (hotplug) updates: 2020-03-30 18:06:39 -07:00
powerpc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
riscv riscv, bpf: Remove BPF JIT for nommu builds 2020-04-03 00:33:42 +02:00
s390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
sh Kbuild updates for v5.7 2020-03-31 16:03:39 -07:00
sparc Kbuild updates for v5.7 2020-03-31 16:03:39 -07:00
um um: reject unsupported coalescing params 2020-03-06 22:45:54 -08:00
unicore32 Updates for the interrupt subsystem: 2020-03-30 17:35:14 -07:00
x86 x86: get rid of 'errret' argument to __get_user_xyz() macross 2020-03-31 18:23:47 -07:00
xtensa Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2020-03-30 16:17:15 -07:00
.gitignore
Kconfig NOHZ full updates: 2020-03-30 18:29:05 -07:00