From fdff7f158fe36d6a116c5e82844e9d8b73165a9e Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:22 +0100 Subject: [PATCH] Revert "bpf: Fix bpf_strtol and bpf_strtoul helpers for 32bit" This reverts commit 1f10bbe850b02dd9b3e731f7f5f8ae8c1450b544. --- kernel/bpf/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index 31e3a5482..084ac7e42 100755 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -497,7 +497,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, - s64 *, res) + long *, res) { long long _res; int err; @@ -522,7 +522,7 @@ const struct bpf_func_proto bpf_strtol_proto = { }; BPF_CALL_4(bpf_strtoul, const char *, buf, size_t, buf_len, u64, flags, - u64 *, res) + unsigned long *, res) { unsigned long long _res; bool is_negative;