Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Fix build for non-__HAVE_UCAS_FULL platforms where t...



details:   https://anonhg.NetBSD.org/src/rev/295cb1c25ce2
branches:  trunk
changeset: 466725:295cb1c25ce2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Jan 01 09:33:19 2020 +0000

description:
Fix build for non-__HAVE_UCAS_FULL platforms where the symbol dance for
assembler functions isn't needed.

Suggestion from maxv.  Thanks.

diffstat:

 sys/sys/systm.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7e77cb1d23e0 -r 295cb1c25ce2 sys/sys/systm.h
--- a/sys/sys/systm.h   Wed Jan 01 09:17:45 2020 +0000
+++ b/sys/sys/systm.h   Wed Jan 01 09:33:19 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.291 2019/11/15 12:18:46 maxv Exp $ */
+/*     $NetBSD: systm.h,v 1.292 2020/01/01 09:33:19 skrll Exp $        */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -383,7 +383,7 @@
 
 #ifdef __UCAS_PRIVATE
 
-#if defined(KASAN)
+#if defined(__HAVE_UCAS_FULL) && defined(KASAN)
 int    kasan__ucas_32(volatile uint32_t *, uint32_t, uint32_t, uint32_t *);
 #ifdef __HAVE_UCAS_MP
 int    kasan__ucas_32_mp(volatile uint32_t *, uint32_t, uint32_t, uint32_t *);
@@ -398,7 +398,7 @@
 #define _ucas_32_mp    kasan__ucas_32_mp
 #define _ucas_64       kasan__ucas_64
 #define _ucas_64_mp    kasan__ucas_64_mp
-#elif defined(KMSAN)
+#elif defined(__HAVE_UCAS_FULL) && defined(KMSAN)
 int    kmsan__ucas_32(volatile uint32_t *, uint32_t, uint32_t, uint32_t *);
 #ifdef __HAVE_UCAS_MP
 int    kmsan__ucas_32_mp(volatile uint32_t *, uint32_t, uint32_t, uint32_t *);



Home | Main Index | Thread Index | Old Index