net/mptcp/options.c:1207:39: warning: implicit conversion from 'enum <anonymous>' to 'enum linux_mptcp_mib_field'
kernel test robot <[email protected]> Fri, 31 Jul 2026 20:22:06 +0200
| Newsgroups | dev.linux.lists.mptcp,dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/intel-lab-lkp/linux/commits/Matthieu-Baerts-NGI0/Squash-to-mptcp-explicitly-drop-over-memory-limits/20260731-182110 head: 85f8043c37254556a09478e4f26c2012a1c92fc6 commit: 79d68403b0c660279617aeb43ee4265c72640fd3 Squash to "mptcp: explicitly drop over memory limits" date: 8 hours ago config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260731/[email protected]/config) compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260731/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): net/mptcp/options.c: In function 'mptcp_over_limit': >> net/mptcp/options.c:1207:39: warning: implicit conversion from 'enum <anonymous>' to 'enum linux_mptcp_mib_field' [-Wenum-conversion] 1207 | MPTCP_INC_STATS(sock_net(sk), LINUX_MIB_TCPRCVQDROP); | ^~~~~~~~~~~~~~~~~~~~~ vim +1207 net/mptcp/options.c 1185 1186 static bool mptcp_over_limit(struct sock *sk, struct sock *ssk, 1187 const struct sk_buff *skb) 1188 { 1189 struct mptcp_sock *msk = mptcp_sk(sk); 1190 u64 mem = sk_rmem_alloc_get(sk); 1191 1192 mem += READ_ONCE(msk->backlog_len); 1193 if (likely(mem <= READ_ONCE(sk->sk_rcvbuf))) 1194 return false; 1195 1196 /* Avoid silently dropping pure acks, fin or already-acked segments. */ 1197 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq || 1198 TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN || 1199 !after(TCP_SKB_CB(skb)->end_seq, tcp_sk(ssk)->rcv_nxt)) 1200 return false; 1201 1202 /* Dropped due to memory constraints, schedule an ack. */ 1203 inet_csk(ssk)->icsk_ack.pending |= ICSK_ACK_NOMEM | ICSK_ACK_NOW; 1204 inet_csk_schedule_ack(ssk); 1205 1206 /* In fallback mode: skb is dropped before the TCP recv queue. */ > 1207 MPTCP_INC_STATS(sock_net(sk), LINUX_MIB_TCPRCVQDROP); 1208 1209 return true; 1210 } 1211 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki