mptcp: fix compilation warnings with i386
Subsystems (2)
Matthieu Baerts
cover mptcp: fix compilation warnings with i386
To be squashed in two different commits.
Matthieu Baerts (2):
mptcp: fix compilation warning with i386
mptcp: fix compilation warning with i386
net/mptcp/protocol.c | 2 +- net/mptcp/subflow.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.20.1
Matthieu Baerts
PATCH 1/2 mptcp: fix compilation warning with i386
net/mptcp/protocol.c:523:24: note: format string is defined here
pr_debug("reading %ld bytes, copied %d", desc.count,
~~^
%d---
Notes:
To squash in "mptcp: recvmsg() can drain data from multiple subflows"
net/mptcp/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mptcp/protocol.c +1 -1
@@ -520,7 +520,7 @@ static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, map_remaining = subflow->map_data_len -mptcp_subflow_get_map_offset (subflow); desc.count =min_t (size_t, len - copied, map_remaining); -pr_debug ("reading %ld bytes, copied %d" , desc.count, +pr_debug ("reading %zu bytes, copied %d" , desc.count, copied); bytes_read =tcp_read_sock (ssk, &desc, mptcp_read_actor);if (bytes_read <0 ) {
Signature · 1 line
2.20.1
Matthieu Baerts
PATCH 2/2 mptcp: fix compilation warning with i386
In reply to Matthieu Baerts net/mptcp/subflow.c:528:26: note: format string is defined here
528 | pr_debug("discarding %ld bytes, current map len=%d", delta,
| ~~^
| |
| long int
| %d---
Notes:
To squash in "mptcp: Implement MPTCP receive path"
net/mptcp/subflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mptcp/subflow.c +1 -1
@@ -525,7 +525,7 @@ static bool subflow_check_data_avail(struct sock *ssk) delta =min_t (size_t, ack_seq - old_ack, map_remaining);/* discard mapped data */ -pr_debug ("discarding %ld bytes, current map len=%d" , delta, +pr_debug ("discarding %zu bytes, current map len=%d" , delta, map_remaining);if (delta) {struct mptcp_read_arg arg = {
Signature · 1 line
2.20.1
Paolo Abeni
Quoted 9 lines · Matthieu Baerts
To be squashed in two different commits.
Matthieu Baerts (2):
mptcp: fix compilation warning with i386
mptcp: fix compilation warning with i386net/mptcp/protocol.c | 2 +- net/mptcp/subflow.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
The patches LGTM, thank you for fixing my mistakes !
Paolo
Matthieu Baerts
Hi Paolo,
Quoted 7 lines · Paolo Abeni
Quoted 6 lines · Matthieu Baerts
To be squashed in two different commits.
Matthieu Baerts (2):
mptcp: fix compilation warning with i386
mptcp: fix compilation warning with i386
Quoted 6 lines
Quoted 3 lines
net/mptcp/protocol.c | 2 +- net/mptcp/subflow.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)The patches LGTM, thank you for fixing my mistakes !
My pleasure. Thank you for the review.
Now the CI will notify me if there are new issues with i386.
- 970070f070a2: "squashed" patch 1/2 in "mptcp: recvmsg() can drain data from multiple subflows"
- f5ca38cb0a11: "squashed" patch 2/2 in "mptcp: Implement MPTCP receive path"
- 4c046ac001b8..f3397e47be58: result
Cheers,
Matt
Signature · 5 lines
Matthieu Baerts | R&D Engineer matthieu.baerts(a)tessares.net Tessares SA | Hybrid Access Solutions www.tessares.net 1 Avenue Jean Monnet, 1348 Louvain-la-Neuve, Belgium