]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bpf: expose bpf_strtol and bpf_strtoul to all program types
authorStanislav Fomichev <sdf@google.com>
Tue, 23 Aug 2022 22:25:53 +0000 (15:25 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Aug 2022 23:08:21 +0000 (16:08 -0700)
commit8a67f2de9b1dc3cf8b75b4bf589efb1f08e3e9b8
tree1d43b2f0f75840faf8ea22b57257d6e63cbc847a
parentbed89185af0de0d417e29ca1798df50f161b0231
bpf: expose bpf_strtol and bpf_strtoul to all program types

bpf_strncmp is already exposed everywhere. The motivation is to keep
those helpers in kernel/bpf/helpers.c. Otherwise it's tempting to move
them under kernel/bpf/cgroup.c because they are currently only used
by sysctl prog types.

Suggested-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20220823222555.523590-4-sdf@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/cgroup.c
kernel/bpf/helpers.c