]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Embed kernel CONFIG check into the if statement in bpf_setsockopt
authorMartin KaFai Lau <kafai@fb.com>
Wed, 17 Aug 2022 06:17:58 +0000 (23:17 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 19 Aug 2022 00:06:13 +0000 (17:06 -0700)
commitc2f7359905bb2c7f4b2fce6df8bb9101d5b8efc0
treeb951efbf49bca89da732b97ab6c30a0db405f178
parent983551bca91962c066cdc6370151f397423e2a1f
bpf: Embed kernel CONFIG check into the if statement in bpf_setsockopt

This patch moves the "#ifdef CONFIG_XXX" check into the "if/else"
statement itself.  The change is done for the bpf_setsockopt()
function only.  It will make the latter patches easier to follow
without the surrounding ifdef macro.

Reviewed-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/r/20220817061758.4178374-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/core/filter.c