Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2012 23:04:12 +0000 (UTC)
From:      "Kenneth D. Merry" <ken@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r241145 - head/sys/dev/mps
Message-ID:  <201210022304.q92N4CHB019481@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ken
Date: Tue Oct  2 23:04:12 2012
New Revision: 241145
URL: http://svn.freebsd.org/changeset/base/241145

Log:
  Add casts to unbreak the i386 PAE build for the mps(4) driver.
  
  MFC after:	3 days
  Prompted by:	Garrett Cooper

Modified:
  head/sys/dev/mps/mps_sas.c

Modified: head/sys/dev/mps/mps_sas.c
==============================================================================
--- head/sys/dev/mps/mps_sas.c	Tue Oct  2 22:03:21 2012	(r241144)
+++ head/sys/dev/mps/mps_sas.c	Tue Oct  2 23:04:12 2012	(r241145)
@@ -2730,7 +2730,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;
 
@@ -2738,7 +2738,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;
 	} else {



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