lkml.org 
[lkml]   [2022]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH bpf-next v3 1/3] bpf: Remove unused btf_struct_access stub
    Date
    This stub was not being used anywhere.

    Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
    ---
    include/net/netfilter/nf_conntrack_bpf.h | 12 ------------
    1 file changed, 12 deletions(-)

    diff --git a/include/net/netfilter/nf_conntrack_bpf.h b/include/net/netfilter/nf_conntrack_bpf.h
    index a61a93d1c6dc..9c07d2d59da5 100644
    --- a/include/net/netfilter/nf_conntrack_bpf.h
    +++ b/include/net/netfilter/nf_conntrack_bpf.h
    @@ -3,8 +3,6 @@
    #ifndef _NF_CONNTRACK_BPF_H
    #define _NF_CONNTRACK_BPF_H

    -#include <linux/bpf.h>
    -#include <linux/btf.h>
    #include <linux/kconfig.h>
    #include <linux/mutex.h>

    @@ -31,16 +29,6 @@ static inline void cleanup_nf_conntrack_bpf(void)
    {
    }

    -static inline int nf_conntrack_btf_struct_access(struct bpf_verifier_log *log,
    - const struct btf *btf,
    - const struct btf_type *t, int off,
    - int size, enum bpf_access_type atype,
    - u32 *next_btf_id,
    - enum bpf_type_flag *flag)
    -{
    - return -EACCES;
    -}
    -
    #endif

    #endif /* _NF_CONNTRACK_BPF_H */
    --
    2.37.1
    \
     
     \ /
      Last update: 2022-09-20 16:20    [W:4.309 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site