Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2017 09:25:32 -0700
From:      Ravi Pokala <rpokala@mac.com>
To:        Sean Bruno <sbruno@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r315245 - head/sys/net
Message-ID:  <48897A80-CB0A-425E-8AA7-C1DD7FCFB566@panasas.com>
In-Reply-To: <201703141508.v2EF8vLk095221@repo.freebsd.org>
References:  <201703141508.v2EF8vLk095221@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Sean,

A few MIPS (XLPN32, XLRN32), and PowerPC (MPC85XX, MPC85XXSPE) configs are still broken:

    --- iflib.o ---
    cc1: warnings being treated as errors
    /usr/home/rpokala/freebsd/clean/base/head/sys/net/iflib.c: In function 'calc_next_rxd':
    /usr/home/rpokala/freebsd/clean/base/head/sys/net/iflib.c:2280: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    /usr/home/rpokala/freebsd/clean/base/head/sys/net/iflib.c:2280: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    /usr/home/rpokala/freebsd/clean/base/head/sys/net/iflib.c: In function 'calc_next_txd':
    /usr/home/rpokala/freebsd/clean/base/head/sys/net/iflib.c:2990: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    /usr/home/rpokala/freebsd/clean/base/head/sys/net/iflib.c:2990: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    *** [iflib.o] Error code 1

Thanks,

Ravi (rpokala@)

-----Original Message-----
From: <owner-src-committers@freebsd.org> on behalf of Sean Bruno <sbruno@FreeBSD.org>
Date: 2017-03-14, Tuesday at 08:08
To: <src-committers@freebsd.org>, <svn-src-all@freebsd.org>, <svn-src-head@freebsd.org>
Subject: svn commit: r315245 - head/sys/net

Author: sbruno
Date: Tue Mar 14 15:08:56 2017
New Revision: 315245
URL: https://svnweb.freebsd.org/changeset/base/315245

Log:
  Fixup LINT by using uint64_t type as we do on all other calls to PNMB()
  
  Found with Jenkins.
  
  Reported by:	lwshu
  Sponsored by:	Limelight Networks

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c	Tue Mar 14 14:02:47 2017	(r315244)
+++ head/sys/net/iflib.c	Tue Mar 14 15:08:56 2017	(r315245)
@@ -860,7 +860,7 @@ iflib_netmap_txsync(struct netmap_kring 
 		for (n = 0; nm_i != head; n++) {
 			struct netmap_slot *slot = &ring->slot[nm_i];
 			u_int len = slot->len;
-			vm_paddr_t paddr;
+			uint64_t paddr;
 			void *addr = PNMB(na, slot, &paddr);
 			int flags = (slot->flags & NS_REPORT ||
 				nic_i == 0 || nic_i == report_frequency) ?







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48897A80-CB0A-425E-8AA7-C1DD7FCFB566>