Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/tc Restrict stic_xmap to the kernel namespace



details:   https://anonhg.NetBSD.org/src/rev/dbff069eb115
branches:  trunk
changeset: 938628:dbff069eb115
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Sep 12 16:44:41 2020 +0000

description:
Restrict stic_xmap to the kernel namespace

Otherwise this header is not includable on ports without the definition
of NBPG. This fixes build of sanitizers. In practice only pmax might be
interested in using this device driver.

diffstat:

 sys/dev/tc/sticio.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 7f20e1ebf49b -r dbff069eb115 sys/dev/tc/sticio.h
--- a/sys/dev/tc/sticio.h       Sat Sep 12 16:38:19 2020 +0000
+++ b/sys/dev/tc/sticio.h       Sat Sep 12 16:44:41 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sticio.h,v 1.5 2015/09/06 06:01:01 dholland Exp $      */
+/*     $NetBSD: sticio.h,v 1.6 2020/09/12 16:44:41 kamil Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -72,6 +72,7 @@
        u_int   sxc_done[16];           /* packet completion semaphores */
 };
 
+#ifdef _KERNEL
 /*
  * stic_xmap: a description of the area returned by mapping the board.
  * sxm_xcomm and sxm_buf are physically contigious and of variable size as a
@@ -82,6 +83,7 @@
        u_int8_t        sxm_poll[0xc0000];              /* poll registers */
        u_int8_t        sxm_xcomm[256 * 1024];          /* X comms area */
 };
+#endif
 
 /*
  * ioctl interface.



Home | Main Index | Thread Index | Old Index