--- zzzz-none-000/linux-4.1.52/include/linux/filter.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/filter.h 2022-03-02 11:37:13.000000000 +0000 @@ -349,11 +349,11 @@ set_memory_rw((unsigned long)fp, fp->pages); } #else -static inline void bpf_prog_lock_ro(struct bpf_prog *fp) +static inline void bpf_prog_lock_ro(struct bpf_prog *fp __maybe_unused) { } -static inline void bpf_prog_unlock_ro(struct bpf_prog *fp) +static inline void bpf_prog_unlock_ro(struct bpf_prog *fp __maybe_unused) { } #endif /* CONFIG_DEBUG_SET_MODULE_RONX */ @@ -416,11 +416,11 @@ 16, 1, image, proglen, false); } #else -static inline void bpf_jit_compile(struct bpf_prog *fp) +static inline void bpf_jit_compile(struct bpf_prog *fp __maybe_unused) { } -static inline void bpf_jit_free(struct bpf_prog *fp) +static inline void bpf_jit_free(struct bpf_prog *fp __maybe_unused) { bpf_prog_unlock_free(fp); } @@ -438,7 +438,7 @@ case BPF_LD | BPF_W | BPF_ABS: case BPF_LD | BPF_H | BPF_ABS: case BPF_LD | BPF_B | BPF_ABS: - if (first->k == SKF_AD_OFF + SKF_AD_ALU_XOR_X) + if (first->k == (unsigned int)SKF_AD_OFF + SKF_AD_ALU_XOR_X) return true; return false;