Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Fix for lint during build of libc.



details:   https://anonhg.NetBSD.org/src/rev/1e8967df44eb
branches:  trunk
changeset: 485788:1e8967df44eb
user:      hannken <hannken%NetBSD.org@localhost>
date:      Fri May 05 20:12:00 2000 +0000

description:
Fix for lint during build of libc.

diffstat:

 sys/arch/sparc/include/lock.h   |  6 +++++-
 sys/arch/sparc64/include/lock.h |  6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 0e1bd6e85e91 -r 1e8967df44eb sys/arch/sparc/include/lock.h
--- a/sys/arch/sparc/include/lock.h     Fri May 05 19:30:13 2000 +0000
+++ b/sys/arch/sparc/include/lock.h     Fri May 05 20:12:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.9 2000/05/02 04:41:11 thorpej Exp $ */
+/*     $NetBSD: lock.h,v 1.10 2000/05/05 20:12:00 hannken Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -54,6 +54,9 @@
 #define        __SIMPLELOCK_UNLOCKED   0
 
 /* XXX So we can expose this to userland. */
+#ifdef __lint__
+#define __ldstub(__addr)       (__addr)
+#else /* !__lint__ */
 #define        __ldstub(__addr)                                                \
 ({                                                                     \
        int __v;                                                        \
@@ -65,6 +68,7 @@
                                                                        \
        __v;                                                            \
 })
+#endif /* __lint__ */
 
 static __inline void __cpu_simple_lock_init __P((__cpu_simple_lock_t *))
        __attribute__((__unused__));
diff -r 0e1bd6e85e91 -r 1e8967df44eb sys/arch/sparc64/include/lock.h
--- a/sys/arch/sparc64/include/lock.h   Fri May 05 19:30:13 2000 +0000
+++ b/sys/arch/sparc64/include/lock.h   Fri May 05 20:12:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.7 2000/05/02 04:41:11 thorpej Exp $ */
+/*     $NetBSD: lock.h,v 1.8 2000/05/05 20:12:01 hannken Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -54,6 +54,9 @@
 #define        __SIMPLELOCK_UNLOCKED   0
 
 /* XXX So we can expose this to userland. */
+#ifdef __lint__
+#define __ldstub(__addr)       (__addr)
+#else /* !__lint__ */
 #define        __ldstub(__addr)                                                \
 ({                                                                     \
        int __v;                                                        \
@@ -65,6 +68,7 @@
                                                                        \
        __v;                                                            \
 })
+#endif /* __lint__ */
 
 static __inline void __cpu_simple_lock_init __P((__cpu_simple_lock_t *))
        __attribute__((__unused__));



Home | Main Index | Thread Index | Old Index