svn commit: r270820 - head/sys/dev/ixl
Bjoern A. Zeeb
bz at FreeBSD.org
Fri Aug 29 14:38:57 UTC 2014
Author: bz
Date: Fri Aug 29 14:38:57 2014
New Revision: 270820
URL: http://svnweb.freebsd.org/changeset/base/270820
Log:
Try to also unbreak powerpc complaining about
"cast from pointer to integer of different size".
MFC after: 3 days
X-MFC with: r270755
Modified:
head/sys/dev/ixl/i40e_common.c
Modified: head/sys/dev/ixl/i40e_common.c
==============================================================================
--- head/sys/dev/ixl/i40e_common.c Fri Aug 29 13:56:10 2014 (r270819)
+++ head/sys/dev/ixl/i40e_common.c Fri Aug 29 14:38:57 2014 (r270820)
@@ -4375,8 +4375,8 @@ enum i40e_status_code i40e_aq_alternate_
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_
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);
More information about the svn-src-head
mailing list