Fix some sizeof(int) != sizeof(void *) warnings.
This commit is contained in:
parent
985cce5132
commit
4ed3ce72b0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106668
@ -694,7 +694,7 @@ amd_poll(struct cam_sim * psim)
|
||||
static u_int8_t *
|
||||
phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
|
||||
{
|
||||
int dataPtr;
|
||||
intptr_t dataPtr;
|
||||
struct ccb_scsiio *pcsio;
|
||||
u_int8_t i;
|
||||
struct amd_sg * pseg;
|
||||
@ -702,7 +702,7 @@ phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
|
||||
dataPtr = 0;
|
||||
pcsio = &pSRB->pccb->csio;
|
||||
|
||||
dataPtr = (int) pcsio->data_ptr;
|
||||
dataPtr = (intptr_t) pcsio->data_ptr;
|
||||
pseg = pSRB->SGsegment;
|
||||
for (i = 0; i < pSRB->SGIndex; i++) {
|
||||
dataPtr += (int) pseg->SGXLen;
|
||||
|
@ -694,7 +694,7 @@ amd_poll(struct cam_sim * psim)
|
||||
static u_int8_t *
|
||||
phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
|
||||
{
|
||||
int dataPtr;
|
||||
intptr_t dataPtr;
|
||||
struct ccb_scsiio *pcsio;
|
||||
u_int8_t i;
|
||||
struct amd_sg * pseg;
|
||||
@ -702,7 +702,7 @@ phystovirt(struct amd_srb * pSRB, u_int32_t xferCnt)
|
||||
dataPtr = 0;
|
||||
pcsio = &pSRB->pccb->csio;
|
||||
|
||||
dataPtr = (int) pcsio->data_ptr;
|
||||
dataPtr = (intptr_t) pcsio->data_ptr;
|
||||
pseg = pSRB->SGsegment;
|
||||
for (i = 0; i < pSRB->SGIndex; i++) {
|
||||
dataPtr += (int) pseg->SGXLen;
|
||||
|
Loading…
Reference in New Issue
Block a user