Skip to contentSkip to conversation

mptcp: fix compilation warnings with i386

PATCH In review Matthieu Baerts 2 participants 5 messages Oct 16, 2019 – Oct 17, 2019

Subsystems (2)
lore
Share & tools
lore

Matthieu Baerts

author
#0 lore raw

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
author
#1 lore raw

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
Signed-off-by Matthieu Baerts <matthieu.baerts(a)tessares.net>

---

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
index 4fdcbb0f4285..5e6a104e3b68 100644
@@ -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
author
#2 lore raw

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
Signed-off-by Matthieu Baerts <matthieu.baerts(a)tessares.net>

---

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
index 01a15cc2c711..e2e76226eb72 100644
@@ -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
#3 lore raw
In reply to Matthieu Baerts
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 i386

 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 !

Paolo

author
#4 lore raw

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