Skip to content

Commit

Permalink
fix(bpf): fix bpf build on aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed May 7, 2024
1 parent 1764911 commit b7e5bc2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions driver/bpf/fillers.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ struct timeval {
#define timeval64 timeval
#endif

/*
* aarch64 doesn't define compat structs for compat_iovec
*/
#if defined(CONFIG_ARM64)
typedef u32 compat_uptr_t;
typedef u32 compat_size_t;
#endif

#define FILLER_RAW(x) \
static __always_inline int __bpf_##x(struct filler_data *data); \
\
Expand Down

0 comments on commit b7e5bc2

Please sign in to comment.