diff options
author | bz <bz@FreeBSD.org> | 2014-08-29 14:38:57 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2014-08-29 14:38:57 +0000 |
commit | 24aacf8af7c4dd15b942203ee05daf5f3b4aa563 (patch) | |
tree | b3ac21b66b59ce82477658bf6589fcad55085794 /sys/dev/ixl | |
parent | a83724fb6f19741f1636061d8ee73c5df359e7a9 (diff) | |
download | FreeBSD-src-24aacf8af7c4dd15b942203ee05daf5f3b4aa563.zip FreeBSD-src-24aacf8af7c4dd15b942203ee05daf5f3b4aa563.tar.gz |
Try to also unbreak powerpc complaining about
"cast from pointer to integer of different size".
MFC after: 3 days
X-MFC with: r270755
Diffstat (limited to 'sys/dev/ixl')
-rwxr-xr-x | sys/dev/ixl/i40e_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ixl/i40e_common.c b/sys/dev/ixl/i40e_common.c index ad1f945..143eeb7 100755 --- a/sys/dev/ixl/i40e_common.c +++ b/sys/dev/ixl/i40e_common.c @@ -4375,8 +4375,8 @@ enum i40e_status_code i40e_aq_alternate_write_indirect(struct i40e_hw *hw, cmd_resp->address = CPU_TO_LE32(addr); cmd_resp->length = CPU_TO_LE32(dw_count); - cmd_resp->addr_high = CPU_TO_LE32(I40E_HI_WORD((u64)buffer)); - cmd_resp->addr_low = CPU_TO_LE32(I40E_LO_DWORD((u64)buffer)); + cmd_resp->addr_high = CPU_TO_LE32(I40E_HI_WORD((u64)(uintptr_t)buffer)); + cmd_resp->addr_low = CPU_TO_LE32(I40E_LO_DWORD((u64)(uintptr_t)buffer)); status = i40e_asq_send_command(hw, &desc, buffer, I40E_LO_DWORD(4*dw_count), NULL); @@ -4458,8 +4458,8 @@ enum i40e_status_code i40e_aq_alternate_read_indirect(struct i40e_hw *hw, cmd_resp->address = CPU_TO_LE32(addr); cmd_resp->length = CPU_TO_LE32(dw_count); - cmd_resp->addr_high = CPU_TO_LE32(I40E_HI_DWORD((u64)buffer)); - cmd_resp->addr_low = CPU_TO_LE32(I40E_LO_DWORD((u64)buffer)); + cmd_resp->addr_high = CPU_TO_LE32(I40E_HI_DWORD((u64)(uintptr_t)buffer)); + cmd_resp->addr_low = CPU_TO_LE32(I40E_LO_DWORD((u64)(uintptr_t)buffer)); status = i40e_asq_send_command(hw, &desc, buffer, I40E_LO_DWORD(4*dw_count), NULL); |