diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index 758510b46d87..d12e696fac74 100644 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -509,7 +509,7 @@ static int __bpf_strtoll(const char *buf, size_t buf_len, u64 flags, } BPF_CALL_4(bpf_strtol, const char *, buf, size_t, buf_len, u64, flags, - long *, res) + s64 *, res) { long long _res; int err; @@ -534,7 +534,7 @@ const struct bpf_func_proto bpf_strtol_proto = { }; BPF_CALL_4(bpf_strtoul, const char *, buf, size_t, buf_len, u64, flags, - unsigned long *, res) + u64 *, res) { unsigned long long _res; bool is_negative;