From 3f5533135215e8ab3d5bd8ab8b3a3cf55919892b Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 7 Aug 2000 18:44:05 +0000 Subject: Fix some warnings. Here are more part-time volatiles - ie: data that lives in memory and is sometimes busmastered to/from the controller. I believe these are all ok. --- sys/dev/dpt/dpt_scsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index d9a54b8..fb07604 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -497,7 +497,7 @@ dpt_get_conf(dpt_softc_t *dpt, dpt_ccb_t *dccb, u_int32_t dccb_busaddr, int result; cp = &dccb->eata_ccb; - bzero((void *)dpt->sp, sizeof(*dpt->sp)); + bzero((void *)(uintptr_t)(volatile void *)dpt->sp, sizeof(*dpt->sp)); cp->Interpret = 1; cp->DataIn = 1; @@ -608,7 +608,7 @@ dpt_detect_cache(dpt_softc_t *dpt, dpt_ccb_t *dccb, u_int32_t dccb_busaddr, dpt->cache_size = 0; cp = &dccb->eata_ccb; - bzero((void *)dpt->sp, sizeof(dpt->sp)); + bzero((void *)(uintptr_t)(volatile void *)dpt->sp, sizeof(dpt->sp)); bzero(buff, 512); /* Setup the command structure */ @@ -1292,7 +1292,7 @@ dpt_init(struct dpt_softc *dpt) goto error_exit; dpt->sp = (volatile dpt_sp_t *)sg_map->sg_vaddr; - dccb = (struct dpt_ccb *)&dpt->sp[1]; + dccb = (struct dpt_ccb *)(uintptr_t)(volatile void *)&dpt->sp[1]; bzero(dccb, sizeof(*dccb)); dpt->sp_physaddr = sg_map->sg_physaddr; dccb->eata_ccb.cp_dataDMA = -- cgit v1.1