svn commit: r250032 - head/sys/dev/hptrr
Sean Bruno
sbruno at FreeBSD.org
Sun Apr 28 20:55:46 UTC 2013
Author: sbruno
Date: Sun Apr 28 20:55:45 2013
New Revision: 250032
URL: http://svnweb.freebsd.org/changeset/base/250032
Log:
Silence warning from clang:
/home/sbruno/bsd/head/sys/dev/hptrr/hptrr_osm_bsd.c:178:66: warning: for loop has empty body [-Wempty-body]
for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) ;
^
/home/sbruno/bsd/head/sys/dev/hptrr/hptrr_osm_bsd.c:178:66: note: put the semicolon on a separate line to silence this warning
Obtained from: Yahoo! Inc.
MFC after: 2 weeks
Modified:
head/sys/dev/hptrr/hptrr_osm_bsd.c
Modified: head/sys/dev/hptrr/hptrr_osm_bsd.c
==============================================================================
--- head/sys/dev/hptrr/hptrr_osm_bsd.c Sun Apr 28 20:46:32 2013 (r250031)
+++ head/sys/dev/hptrr/hptrr_osm_bsd.c Sun Apr 28 20:55:45 2013 (r250032)
@@ -175,7 +175,8 @@ static int hpt_alloc_mem(PVBUS_EXT vbus_
HPT_ASSERT((f->size & (f->alignment-1))==0);
- for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) ;
+ for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1)
+ ;
KdPrint(("%s: %d*%d=%d bytes, order %d",
f->tag, f->count, f->size, f->count*f->size, order));
More information about the svn-src-head
mailing list