svn commit: r353368 - head/sys/netinet

Warner Losh imp at FreeBSD.org
Wed Oct 9 21:02:07 UTC 2019


Author: imp
Date: Wed Oct  9 21:02:06 2019
New Revision: 353368
URL: https://svnweb.freebsd.org/changeset/base/353368

Log:
  Fix casting error from newer gcc
  
  Cast the pointers to (uintptr_t) before assigning to type
  uint64_t. This eliminates an error from gcc when we cast the pointer
  to a larger integer type.

Modified:
  head/sys/netinet/tcp_lro.c

Modified: head/sys/netinet/tcp_lro.c
==============================================================================
--- head/sys/netinet/tcp_lro.c	Wed Oct  9 20:59:10 2019	(r353367)
+++ head/sys/netinet/tcp_lro.c	Wed Oct  9 21:02:06 2019	(r353368)
@@ -466,8 +466,8 @@ tcp_lro_log(struct tcpcb *tp, struct lro_ctrl *lc,
 		log.u_bbr.lt_epoch = le->ack_seq;
 		log.u_bbr.pacing_gain = th_win;
 		log.u_bbr.cwnd_gain = le->window;
-		log.u_bbr.cur_del_rate = (uint64_t)m;
-		log.u_bbr.bw_inuse = (uint64_t)le->m_head;
+		log.u_bbr.cur_del_rate = (uintptr_t)m;
+		log.u_bbr.bw_inuse = (uintptr_t)le->m_head;
 		log.u_bbr.pkts_out = le->mbuf_cnt;	/* Total mbufs added */
 		log.u_bbr.applimited = le->ulp_csum;
 		log.u_bbr.lost = le->mbuf_appended;


More information about the svn-src-all mailing list