svn commit: r256233 - stable/9/sys/dev/mps

Alexander Motin mav at FreeBSD.org
Wed Oct 9 19:53:43 UTC 2013


Author: mav
Date: Wed Oct  9 19:53:42 2013
New Revision: 256233
URL: http://svnweb.freebsd.org/changeset/base/256233

Log:
  MFC r241145 (by ken):
  Add casts to unbreak the i386 PAE build for the mps(4) driver.

Modified:
  stable/9/sys/dev/mps/mps_sas.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/mps/mps_sas.c
==============================================================================
--- stable/9/sys/dev/mps/mps_sas.c	Wed Oct  9 19:37:51 2013	(r256232)
+++ stable/9/sys/dev/mps/mps_sas.c	Wed Oct  9 19:53:42 2013	(r256233)
@@ -2803,7 +2803,7 @@ mpssas_send_smpcmd(struct mpssas_softc *
 			bus_dma_segment_t *req_sg;
 
 			req_sg = (bus_dma_segment_t *)ccb->smpio.smp_request;
-			request = (uint8_t *)req_sg[0].ds_addr;
+			request = (uint8_t *)(uintptr_t)req_sg[0].ds_addr;
 		} else
 			request = ccb->smpio.smp_request;
 
@@ -2811,7 +2811,7 @@ mpssas_send_smpcmd(struct mpssas_softc *
 			bus_dma_segment_t *rsp_sg;
 
 			rsp_sg = (bus_dma_segment_t *)ccb->smpio.smp_response;
-			response = (uint8_t *)rsp_sg[0].ds_addr;
+			response = (uint8_t *)(uintptr_t)rsp_sg[0].ds_addr;
 		} else
 			response = ccb->smpio.smp_response;
 		break;


More information about the svn-src-stable-9 mailing list