Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2014 14:38:57 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270820 - head/sys/dev/ixl
Message-ID:  <201408291438.s7TEcvse087456@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408291438.s7TEcvse087456>