faux123/lge-kernel-star — comment on commit 003a9df38cc715ee224864668409d6a581bf2931
File:  line 0
By krizky82:

Hi there... I have try to apply this patch to my kernel (2.6.32.56 msm7x30) but i think it's missing some header from /linux/filter.h (mine are the same with yours)

it gave me this warning:

arch/arm/net/bpf_jit_32.c: In function 'saved_regs':
arch/arm/net/bpf_jit_32.c:133: error: 'BPF_S_RET_A' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:133: error: (Each undeclared identifier is reported only once
arch/arm/net/bpf_jit_32.c:133: error: for each function it appears in.)
arch/arm/net/bpf_jit_32.c: In function 'is_load_to_a':
arch/arm/net/bpf_jit_32.c:161: error: 'BPF_S_LD_W_LEN' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:162: error: 'BPF_S_LD_W_ABS' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:163: error: 'BPF_S_LD_H_ABS' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:164: error: 'BPF_S_LD_B_ABS' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:165: error: 'BPF_S_ANC_CPU' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:166: error: 'BPF_S_ANC_IFINDEX' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:167: error: 'BPF_S_ANC_MARK' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:168: error: 'BPF_S_ANC_PROTOCOL' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:169: error: 'BPF_S_ANC_RXHASH' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:170: error: 'BPF_S_ANC_QUEUE' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c: In function 'build_prologue':
arch/arm/net/bpf_jit_32.c:210: error: 'BPF_S_RET_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c: In function 'build_body':
arch/arm/net/bpf_jit_32.c:477: error: 'BPF_S_LD_IMM' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:480: error: 'BPF_S_LD_W_LEN' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:486: error: 'BPF_S_LD_MEM' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:491: error: 'BPF_S_LD_W_ABS' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:494: error: 'BPF_S_LD_H_ABS' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:497: error: 'BPF_S_LD_B_ABS' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:540: error: 'BPF_S_LD_W_IND' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:543: error: 'BPF_S_LD_H_IND' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:546: error: 'BPF_S_LD_B_IND' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:551: error: 'BPF_S_LDX_IMM' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:555: error: 'BPF_S_LDX_W_LEN' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:560: error: 'BPF_S_LDX_MEM' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:564: error: 'BPF_S_LDX_B_MSH' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:591: error: 'BPF_S_ST' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:595: error: 'BPF_S_STX' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:600: error: 'BPF_S_ALU_ADD_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:604: error: 'BPF_S_ALU_ADD_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:608: error: 'BPF_S_ALU_SUB_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:612: error: 'BPF_S_ALU_SUB_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:616: error: 'BPF_S_ALU_MUL_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:621: error: 'BPF_S_ALU_MUL_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:625: error: 'BPF_S_ALU_DIV_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:631: error: 'BPF_S_ALU_DIV_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:637: error: 'BPF_S_ALU_OR_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:641: error: 'BPF_S_ALU_OR_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:645: error: 'BPF_S_ALU_AND_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:649: error: 'BPF_S_ALU_AND_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:653: error: 'BPF_S_ALU_LSH_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:658: error: 'BPF_S_ALU_LSH_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:662: error: 'BPF_S_ALU_RSH_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:667: error: 'BPF_S_ALU_RSH_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:671: error: 'BPF_S_ALU_NEG' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:675: error: 'BPF_S_JMP_JA' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:679: error: 'BPF_S_JMP_JEQ_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:683: error: 'BPF_S_JMP_JGT_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:687: error: 'BPF_S_JMP_JGE_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:706: error: 'BPF_S_JMP_JEQ_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:710: error: 'BPF_S_JMP_JGT_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:714: error: 'BPF_S_JMP_JGE_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:721: error: 'BPF_S_JMP_JSET_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:734: error: 'BPF_S_JMP_JSET_X' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:740: error: 'BPF_S_RET_A' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:743: error: 'BPF_S_RET_K' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:751: error: 'BPF_S_MISC_TAX' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:756: error: 'BPF_S_MISC_TXA' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:761: error: 'BPF_S_ANC_PROTOCOL' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:764: error: 'sizeof' applied to a bit-field
arch/arm/net/bpf_jit_32.c:766: error: attempt to take address of bit-field structure member 'protocol'
arch/arm/net/bpf_jit_32.c:770: error: 'BPF_S_ANC_CPU' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:778: error: 'BPF_S_ANC_IFINDEX' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:792: error: 'BPF_S_ANC_MARK' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:798: error: 'BPF_S_ANC_RXHASH' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:800: error: 'struct sk_buff' has no member named 'rxhash'
arch/arm/net/bpf_jit_32.c:800: error: bit-field '' width not an integer constant
arch/arm/net/bpf_jit_32.c:801: error: 'struct sk_buff' has no member named 'rxhash'
arch/arm/net/bpf_jit_32.c:804: error: 'BPF_S_ANC_QUEUE' undeclared (first use in this function)
arch/arm/net/bpf_jit_32.c:806: error: 'sizeof' applied to a bit-field
arch/arm/net/bpf_jit_32.c:808: error: attempt to take address of bit-field structure member 'queue_mapping'
arch/arm/net/bpf_jit_32.c:808: error: bit-field '' width not an integer constant
arch/arm/net/bpf_jit_32.c:810: error: attempt to take address of bit-field structure member 'queue_mapping'
arch/arm/net/bpf_jit_32.c: In function 'bpf_jit_compile':
arch/arm/net/bpf_jit_32.c:890: error: 'struct sk_filter' has no member named 'bpf_func'
arch/arm/net/bpf_jit_32.c: In function 'bpf_jit_free':
arch/arm/net/bpf_jit_32.c:905: error: 'struct sk_filter' has no member named 'bpf_func'
arch/arm/net/bpf_jit_32.c:906: error: 'struct sk_filter' has no member named 'bpf_func'
make[1]: *** [arch/arm/net/bpf_jit_32.o] Error 1

I have try to patched it with x86-64 Jit compiler for packet filters, it resolved some warning but few last warning still exist
do I need some other patch set with these? thanks b4...