svn commit: r230808 - in head/sys: dev/ie sys
Sergey Kandaurov
pluknet at FreeBSD.org
Tue Jan 31 13:00:40 UTC 2012
Author: pluknet
Date: Tue Jan 31 13:00:40 2012
New Revision: 230808
URL: http://svn.freebsd.org/changeset/base/230808
Log:
Isolate v_caddr_t in the ie driver.
Submitted by: Bruce Evans on net@
Modified:
head/sys/dev/ie/if_ie.c
head/sys/sys/types.h
Modified: head/sys/dev/ie/if_ie.c
==============================================================================
--- head/sys/dev/ie/if_ie.c Tue Jan 31 12:57:21 2012 (r230807)
+++ head/sys/dev/ie/if_ie.c Tue Jan 31 13:00:40 2012 (r230808)
@@ -157,6 +157,9 @@ static int ie_debug = IED_RNR;
#define IE_BUF_LEN ETHER_MAX_LEN /* length of transmit buffer */
+/* XXX this driver uses `volatile' and `caddr_t' to a fault. */
+typedef volatile char *v_caddr_t; /* core address, pointer to volatile */
+
/* Forward declaration */
struct ie_softc;
Modified: head/sys/sys/types.h
==============================================================================
--- head/sys/sys/types.h Tue Jan 31 12:57:21 2012 (r230807)
+++ head/sys/sys/types.h Tue Jan 31 13:00:40 2012 (r230808)
@@ -73,7 +73,6 @@ typedef quad_t * qaddr_t;
typedef char * caddr_t; /* core address */
typedef const char * c_caddr_t; /* core address, pointer to const */
-typedef __volatile char *v_caddr_t; /* core address, pointer to volatile */
#ifndef _BLKSIZE_T_DECLARED
typedef __blksize_t blksize_t;
More information about the svn-src-all
mailing list