mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
Fix build on alpha. It used to case an int to a pointer in order to do
pointer arithmetic. Detour via uintptr_t, since we're generating an offset not dereferencing them.
This commit is contained in:
parent
6220f70ee6
commit
ba3d594ddc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104713
|
@ -134,7 +134,8 @@ static __inline struct aha_ccb *
|
||||||
ahaccbptov(struct aha_softc *aha, u_int32_t ccb_addr)
|
ahaccbptov(struct aha_softc *aha, u_int32_t ccb_addr)
|
||||||
{
|
{
|
||||||
return (aha->aha_ccb_array +
|
return (aha->aha_ccb_array +
|
||||||
+ ((struct aha_ccb*)ccb_addr-(struct aha_ccb*)aha->aha_ccb_physbase));
|
+ ((struct aha_ccb*)(uintptr_t)ccb_addr -
|
||||||
|
(struct aha_ccb*)(uintptr_t)aha->aha_ccb_physbase));
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct aha_ccb* ahagetccb(struct aha_softc *aha);
|
static struct aha_ccb* ahagetccb(struct aha_softc *aha);
|
||||||
|
|
Loading…
Reference in a new issue