Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Appease _LP64 build with GCC 4.5.



details:   https://anonhg.NetBSD.org/src/rev/c2740e5acab9
branches:  trunk
changeset: 768081:c2740e5acab9
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Aug 07 20:05:08 2011 +0000

description:
Appease _LP64 build with GCC 4.5.

diffstat:

 sys/dev/ic/hscx.h |  4 ++--
 sys/dev/ic/ipac.h |  4 ++--
 sys/dev/ic/isac.h |  4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (63 lines):

diff -r ee9c085a2e73 -r c2740e5acab9 sys/dev/ic/hscx.h
--- a/sys/dev/ic/hscx.h Sun Aug 07 19:46:22 2011 +0000
+++ b/sys/dev/ic/hscx.h Sun Aug 07 20:05:08 2011 +0000
@@ -30,7 +30,7 @@
  *
  *---------------------------------------------------------------------------
  *
- *     $Id: hscx.h,v 1.3 2005/12/11 12:21:26 christos Exp $
+ *     $Id: hscx.h,v 1.4 2011/08/07 20:05:08 jakllsch Exp $
  *
  *      last edit-date: [Sun Feb 14 10:26:56 1999]
  *
@@ -119,7 +119,7 @@
        } hscx_rw;
 } hscx_reg_t;
 
-#define REG_OFFSET(type, field) (int)(&(((type *)0)->field))
+#define REG_OFFSET(type, field) (uintptr_t)(&(((type *)0)->field))
 
 /* HSCX read registers */
 
diff -r ee9c085a2e73 -r c2740e5acab9 sys/dev/ic/ipac.h
--- a/sys/dev/ic/ipac.h Sun Aug 07 19:46:22 2011 +0000
+++ b/sys/dev/ic/ipac.h Sun Aug 07 20:05:08 2011 +0000
@@ -27,7 +27,7 @@
  *     i4b_ipac.h - definitions for the Siemens IPAC PSB2115 chip
  *     ==========================================================
  *
- *     $Id: ipac.h,v 1.3 2005/12/11 12:21:27 christos Exp $
+ *     $Id: ipac.h,v 1.4 2011/08/07 20:05:08 jakllsch Exp $
  *
  *      last edit-date: [Thu Jan  6 14:54:19 2000]
  *
@@ -92,7 +92,7 @@
        } ipac_rw;
 } ipac_reg_t;
 
-#define REG_OFFSET(type, field) (int)(&(((type *)0)->field))
+#define REG_OFFSET(type, field) (uintptr_t)(&(((type *)0)->field))
 
 /* IPAC read registers */
 
diff -r ee9c085a2e73 -r c2740e5acab9 sys/dev/ic/isac.h
--- a/sys/dev/ic/isac.h Sun Aug 07 19:46:22 2011 +0000
+++ b/sys/dev/ic/isac.h Sun Aug 07 20:05:08 2011 +0000
@@ -30,7 +30,7 @@
  *
  *---------------------------------------------------------------------------
  *
- *     $Id: isac.h,v 1.3 2005/12/11 12:21:27 christos Exp $
+ *     $Id: isac.h,v 1.4 2011/08/07 20:05:08 jakllsch Exp $
  *
  *      last edit-date: [Sun Feb 14 10:27:13 1999]
  *
@@ -144,7 +144,7 @@
        } isac_rw;
 } isac_reg_t;
 
-#define REG_OFFSET(type, field) (int)(&(((type *)0)->field))
+#define REG_OFFSET(type, field) (uintptr_t)(&(((type *)0)->field))
 
 /* ISAC read registers */
 



Home | Main Index | Thread Index | Old Index