[PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first scheduler v18"

Geliang Tang posted 1 patch 1 week, 6 days ago
Failed in applying to current master (apply log)
tools/testing/selftests/bpf/progs/mptcp_bpf_first.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[PATCH mptcp-next] Squash to "selftests: bpf: add bpf_first scheduler v18"
Posted by Geliang Tang 1 week, 6 days ago
Add const for all msks in mptcp_sched_ops in mptcp_bpf_first.c

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
 tools/testing/selftests/bpf/progs/mptcp_bpf_first.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/testing/selftests/bpf/progs/mptcp_bpf_first.c b/tools/testing/selftests/bpf/progs/mptcp_bpf_first.c
index 0ca9754c078d..8c8acf04fb92 100644
--- a/tools/testing/selftests/bpf/progs/mptcp_bpf_first.c
+++ b/tools/testing/selftests/bpf/progs/mptcp_bpf_first.c
@@ -7,16 +7,16 @@
 char _license[] SEC("license") = "GPL";
 
 SEC("struct_ops/mptcp_sched_first_init")
-void BPF_PROG(mptcp_sched_first_init, struct mptcp_sock *msk)
+void BPF_PROG(mptcp_sched_first_init, const struct mptcp_sock *msk)
 {
 }
 
 SEC("struct_ops/mptcp_sched_first_release")
-void BPF_PROG(mptcp_sched_first_release, struct mptcp_sock *msk)
+void BPF_PROG(mptcp_sched_first_release, const struct mptcp_sock *msk)
 {
 }
 
-void BPF_STRUCT_OPS(bpf_first_get_subflow, struct mptcp_sock *msk,
+void BPF_STRUCT_OPS(bpf_first_get_subflow, const struct mptcp_sock *msk,
 		    bool reinject, struct mptcp_sched_data *data)
 {
 	data->sock = msk->first;
-- 
2.34.1