mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 09:13:37 +00:00
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
cb27d4c7cd
commit
f37f15337d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106521
|
@ -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 a new issue