diff options
author | Martin KaFai Lau <martin.lau@kernel.org> | 2022-09-01 17:29:06 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-09-02 20:34:31 -0700 |
commit | c2b063ca34586758dcfd76e12696a71a1df849a0 (patch) | |
tree | f5d8b0d4ae8214f00d5d8faaae2197b5401660ec /include/net/sock.h | |
parent | bpf: net: Avoid do_ipv6_getsockopt() taking sk lock when called from bpf (diff) | |
download | linux-dev-c2b063ca34586758dcfd76e12696a71a1df849a0.tar.xz linux-dev-c2b063ca34586758dcfd76e12696a71a1df849a0.zip |
bpf: Embed kernel CONFIG check into the if statement in bpf_getsockopt
This patch moves the "#ifdef CONFIG_XXX" check into the "if/else"
statement itself. The change is done for the bpf_getsockopt()
function only. It will make the latter patches easier to follow
without the surrounding ifdef macro.
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20220902002906.2893572-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/net/sock.h')
0 files changed, 0 insertions, 0 deletions