]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: xdpsock: Remove forward declaration of ip_fast_csum()
authorNiklas Söderlund <niklas.soderlund@corigine.com>
Fri, 6 Aug 2021 12:28:55 +0000 (14:28 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 6 Aug 2021 23:53:27 +0000 (16:53 -0700)
commitae3e6ad677059d486ed220d2db0ec0c832be9624
treeec35f978264435c6b5690e857b4ae485621039c7
parent5038c8ddfc57ba37c3360315ffc14a6f74b983f0
samples/bpf: xdpsock: Remove forward declaration of ip_fast_csum()

There is a forward declaration of ip_fast_csum() just before its
implementation, remove the unneeded forward declaration.

While at it mark the implementation as static inline.

Signed-off-by: Niklas Söderlund <niklas.soderlund@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Link: https://lore.kernel.org/bpf/20210806122855.26115-3-simon.horman@corigine.com
samples/bpf/xdpsock_user.c