Skip to content

Commit 6b3d4ee

Browse files
committed
sparc: Split BPF JIT into 32-bit and 64-bit.
This is in preparation for adding the 64-bit eBPF JIT. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fb79670 commit 6b3d4ee

File tree

6 files changed

+5
-3
lines changed

6 files changed

+5
-3
lines changed

arch/sparc/net/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#
22
# Arch-specific network modules
33
#
4-
obj-$(CONFIG_BPF_JIT) += bpf_jit_asm.o bpf_jit_comp.o
4+
obj-$(CONFIG_BPF_JIT) += bpf_jit_asm_$(BITS).o bpf_jit_comp_$(BITS).o
File renamed without changes.

arch/sparc/net/bpf_jit_asm.S renamed to arch/sparc/net/bpf_jit_asm_32.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <asm/ptrace.h>
22

3-
#include "bpf_jit.h"
3+
#include "bpf_jit_32.h"
44

55
#ifdef CONFIG_SPARC64
66
#define SAVE_SZ 176

arch/sparc/net/bpf_jit_asm_64.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "bpf_jit_asm_32.S"

arch/sparc/net/bpf_jit_comp.c renamed to arch/sparc/net/bpf_jit_comp_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <asm/cacheflush.h>
99
#include <asm/ptrace.h>
1010

11-
#include "bpf_jit.h"
11+
#include "bpf_jit_32.h"
1212

1313
int bpf_jit_enable __read_mostly;
1414

arch/sparc/net/bpf_jit_comp_64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "bpf_jit_comp_32.c"

0 commit comments

Comments
 (0)