Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2012 22:24:57 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234242 - head/sys/dev/netmap
Message-ID:  <201204132224.q3DMOvo4000171@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Fri Apr 13 22:24:57 2012
New Revision: 234242
URL: http://svn.freebsd.org/changeset/base/234242

Log:
  fix build with -Wformat -Wmissing-prototypes

Modified:
  head/sys/dev/netmap/netmap_mem2.c

Modified: head/sys/dev/netmap/netmap_mem2.c
==============================================================================
--- head/sys/dev/netmap/netmap_mem2.c	Fri Apr 13 22:04:28 2012	(r234241)
+++ head/sys/dev/netmap/netmap_mem2.c	Fri Apr 13 22:24:57 2012	(r234242)
@@ -162,7 +162,7 @@ netmap_ofstophys(vm_offset_t offset)
 			offset % p[i]->_objsize;
 	}
 	D("invalid ofs 0x%x out of 0x%x 0x%x 0x%x", o,
-		p[0]->_memtotal, p[0]->_memtotal + p[1]->_memtotal,
+		(u_int)p[0]->_memtotal, p[0]->_memtotal + p[1]->_memtotal,
 		p[0]->_memtotal + p[1]->_memtotal + p[2]->_memtotal);
 	return 0;	// XXX bad address
 }
@@ -173,7 +173,7 @@ netmap_ofstophys(vm_offset_t offset)
  * Algorithm: scan until we find the cluster, then add the
  * actual offset in the cluster
  */
-ssize_t
+static ssize_t
 netmap_obj_offset(struct netmap_obj_pool *p, const void *vaddr)
 {
 	int i, k = p->clustentries, n = p->objtotal;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204132224.q3DMOvo4000171>