Add some band-aid casts to quiet warnings. This driver still assumes
that sizeof(int) == sizeof(void *) == 4. However, it also seems that the hardware assumes this.
This commit is contained in:
parent
c7ea814645
commit
d63eba56d7
@ -119,7 +119,7 @@ static __inline struct bt_ccb *
|
||||
btccbptov(struct bt_softc *bt, u_int32_t ccb_addr)
|
||||
{
|
||||
return (bt->bt_ccb_array +
|
||||
((struct bt_ccb*)ccb_addr-(struct bt_ccb*)bt->bt_ccb_physbase));
|
||||
((struct bt_ccb*)(uintptr_t)ccb_addr - (struct bt_ccb*)(uintptr_t)bt->bt_ccb_physbase));
|
||||
}
|
||||
|
||||
static __inline u_int32_t
|
||||
|
Loading…
Reference in New Issue
Block a user