diff options
author | scottl <scottl@FreeBSD.org> | 2002-11-12 10:22:49 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2002-11-12 10:22:49 +0000 |
commit | 18271b238aba893b1ef143fcd8810fcf517a6972 (patch) | |
tree | 5d4f5afc2188e5c4c99590e00cabdbb986317dab /sys | |
parent | 3b7ac3a4f92258aa16dbb7dacc971a0dbe791ee4 (diff) | |
download | FreeBSD-src-18271b238aba893b1ef143fcd8810fcf517a6972.zip FreeBSD-src-18271b238aba893b1ef143fcd8810fcf517a6972.tar.gz |
Use better return types and a couple of casts to eliminate warnings on
alpha. This will take the file out of sync with the private version
that we maintain, but alpha tinderbox has been broken for too long.
Tested on: i386, sparc64, alpha
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/aic7xxx/aic79xx.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/aic7xxx/aic79xx.c b/sys/dev/aic7xxx/aic79xx.c index e24bfcd..7762fa2 100644 --- a/sys/dev/aic7xxx/aic79xx.c +++ b/sys/dev/aic7xxx/aic79xx.c @@ -181,8 +181,8 @@ static void ahd_setup_target_msgin(struct ahd_softc *ahd, struct scb *scb); #endif -static bus_size_t ahd_sglist_size(struct ahd_softc *ahd); -static bus_size_t ahd_sglist_allocsize(struct ahd_softc *ahd); +static u_int ahd_sglist_size(struct ahd_softc *ahd); +static u_int ahd_sglist_allocsize(struct ahd_softc *ahd); static bus_dmamap_callback_t ahd_dmamap_cb; static void ahd_initialize_hscbs(struct ahd_softc *ahd); @@ -4096,7 +4096,7 @@ ahd_setup_target_msgin(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, } #endif /**************************** Initialization **********************************/ -static bus_size_t +static u_int ahd_sglist_size(struct ahd_softc *ahd) { bus_size_t list_size; @@ -4113,7 +4113,7 @@ ahd_sglist_size(struct ahd_softc *ahd) * OS will allocate full pages to us, so it doesn't make sense to request * less than a page. */ -static bus_size_t +static u_int ahd_sglist_allocsize(struct ahd_softc *ahd) { bus_size_t sg_list_increment; @@ -4203,9 +4203,9 @@ ahd_alloc(void *platform_arg, char *name) } #ifdef AHD_DEBUG if ((ahd_debug & AHD_SHOW_MEMORY) != 0) { - printf("%s: scb size = 0x%x, hscb size - 0x%x\n", - ahd_name(ahd), sizeof(struct scb), - sizeof(struct hardware_scb)); + printf("%s: scb size = 0x%x, hscb size = 0x%x\n", + ahd_name(ahd), (u_int)sizeof(struct scb), + (u_int)sizeof(struct hardware_scb)); } #endif return (ahd); |