diff options
author | peter <peter@FreeBSD.org> | 2007-07-06 00:47:44 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2007-07-06 00:47:44 +0000 |
commit | ba90a8eb4f5e3950cf7d5e5383c657172d2b246e (patch) | |
tree | b03ddbf464e35a0c1a2c0e45ef8face4a413fd2d /sys/dev/nxge | |
parent | bb5d20cf2aa0539d268d220f08779c27237fa556 (diff) | |
download | FreeBSD-src-ba90a8eb4f5e3950cf7d5e5383c657172d2b246e.zip FreeBSD-src-ba90a8eb4f5e3950cf7d5e5383c657172d2b246e.tar.gz |
Fix warnings.
nxge: cast page size fragments down to (int). If the vm's demand paging
PAGE_SIZE is ever too big for that, we've got far bigger problems.
ofw: move va_start() a little earlier. gcc-4.2 doesn't like us modifying
the last arg before the va_start().
Approved by: re (rwatson)
Diffstat (limited to 'sys/dev/nxge')
-rw-r--r-- | sys/dev/nxge/if_nxge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/nxge/if_nxge.c b/sys/dev/nxge/if_nxge.c index 6687b4b..5390120 100644 --- a/sys/dev/nxge/if_nxge.c +++ b/sys/dev/nxge/if_nxge.c @@ -252,8 +252,8 @@ xge_init_params(xge_hal_device_config_t *dconfig, device_t dev) if(dconfig->fifo.max_frags > (PAGE_SIZE/32)) { xge_os_printf("fifo_max_frags = %d", dconfig->fifo.max_frags); xge_os_printf("fifo_max_frags should be <= (PAGE_SIZE / 32) = %d", - (PAGE_SIZE / 32)); - xge_os_printf("Using fifo_max_frags = %d", (PAGE_SIZE / 32)); + (int)(PAGE_SIZE / 32)); + xge_os_printf("Using fifo_max_frags = %d", (int)(PAGE_SIZE / 32)); dconfig->fifo.max_frags = (PAGE_SIZE / 32); } |