X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=kernel%2Fbpf%2Fhelpers.c;h=4504ca66118da0c0735bdb56d9204ba6cb79994b;hb=bdc15ce316507225587552a3e63e7e09d94b81be;hp=1447ec09421ebc4905c922f4f4fa2b65b52b474a;hpb=00f76410461fe7abdd2e579ca21e4818f7be0843;p=karo-tx-linux.git diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index 1447ec09421e..4504ca66118d 100644 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -93,13 +93,8 @@ const struct bpf_func_proto bpf_map_delete_elem_proto = { .arg2_type = ARG_PTR_TO_MAP_KEY, }; -static u64 bpf_get_prandom_u32(u64 r1, u64 r2, u64 r3, u64 r4, u64 r5) -{ - return prandom_u32(); -} - const struct bpf_func_proto bpf_get_prandom_u32_proto = { - .func = bpf_get_prandom_u32, + .func = bpf_user_rnd_u32, .gpl_only = false, .ret_type = RET_INTEGER, };