Re: CVS commit: src/sys/sys

2013-10-25 Thread Jukka Ruohonen
On Fri, Oct 25, 2013 at 08:51:55AM +, Alan Barrett wrote:
 Module Name:  src
 Committed By: apb
 Date: Fri Oct 25 08:51:55 UTC 2013
 
 Modified Files:
   src/sys/sys: cdefs.h
 
 Log Message:
 Add __diagused and __debugused.  These are for marking variables that
 are used only in diagnotic or debug code, but unused when NDEBUG is
 defined, or DIAGNOSTIC is not defined, or DEBUG is not defined.

I tried to collect some of these to attribute(3), which might be worth
updating (or not).

- Jukka.


Re: CVS commit: src/sys/sys

2013-10-25 Thread Alan Barrett

On Fri, 25 Oct 2013, Jukka Ruohonen wrote:

src/sys/sys: cdefs.h

Log Message:
Add __diagused and __debugused.  These are for marking variables that
are used only in diagnotic or debug code, but unused when NDEBUG is
defined, or DIAGNOSTIC is not defined, or DEBUG is not defined.


I tried to collect some of these to attribute(3), which might be worth
updating (or not).


Thank you!  I didn't know about attribute(3).

--apb (Alan Barrett)


CVS commit: src/etc

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 07:59:55 UTC 2013

Modified Files:
src/etc: man.conf

Log Message:
_build rule for man pages with a .numberletters extension (.3tcl, .3am, 
.3lua, etc.)


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/etc/man.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/man.conf
diff -u src/etc/man.conf:1.32 src/etc/man.conf:1.33
--- src/etc/man.conf:1.32	Thu Jul 18 13:10:50 2013
+++ src/etc/man.conf	Fri Oct 25 07:59:55 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: man.conf,v 1.32 2013/07/18 13:10:50 christos Exp $
+#	$NetBSD: man.conf,v 1.33 2013/10/25 07:59:55 mbalmer Exp $
 
 # Sheer, raging paranoia...
 _version	BSD.2
@@ -16,6 +16,7 @@ _build		.0.Z		/usr/bin/zcat %s
 _build		.0.bz2		/usr/bin/bzcat %s
 _build		.0.gz		/usr/bin/zcat %s
 _build		.0.xz		/usr/bin/xzcat %s
+_build		.[1-9][a-z]*	/usr/bin/mandoc %s
 _build		.[1-9ln]	/usr/bin/mandoc %s
 _build		.[1-9ln].Z	/usr/bin/zcat %s | /usr/bin/mandoc
 _build		.[1-9ln].bz2	/usr/bin/bzcat %s | /usr/bin/mandoc



CVS commit: src/etc/mtree

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 08:15:14 UTC 2013

Modified Files:
src/etc/mtree: NetBSD.dist.base

Log Message:
define a place for Lua man pages


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/etc/mtree/NetBSD.dist.base

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/mtree/NetBSD.dist.base
diff -u src/etc/mtree/NetBSD.dist.base:1.126 src/etc/mtree/NetBSD.dist.base:1.127
--- src/etc/mtree/NetBSD.dist.base:1.126	Thu Oct 24 19:06:01 2013
+++ src/etc/mtree/NetBSD.dist.base	Fri Oct 25 08:15:14 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: NetBSD.dist.base,v 1.126 2013/10/24 19:06:01 christos Exp $
+#	$NetBSD: NetBSD.dist.base,v 1.127 2013/10/25 08:15:14 mbalmer Exp $
 #	@(#)4.4BSD.dist	8.1 (Berkeley) 6/13/93
 
 # Do not customize this file as it may be overwritten on upgrades.
@@ -866,6 +866,7 @@
 ./usr/share/man/cat1/x68k
 ./usr/share/man/cat2
 ./usr/share/man/cat3
+./usr/share/man/cat3lua
 ./usr/share/man/cat4
 ./usr/share/man/cat4/acorn26
 ./usr/share/man/cat4/acorn32
@@ -954,6 +955,7 @@
 ./usr/share/man/cat8/x68k
 ./usr/share/man/cat8/x86
 ./usr/share/man/cat9
+./usr/share/man/cat9lua
 ./usr/share/man/cat9/acorn26
 ./usr/share/man/cat9/alpha
 ./usr/share/man/cat9/amiga
@@ -975,6 +977,7 @@
 ./usr/share/man/html2
 ./usr/share/man/html3
 ./usr/share/man/html3f
+./usr/share/man/html3lua
 ./usr/share/man/html4
 ./usr/share/man/html4/acorn26
 ./usr/share/man/html4/acorn32
@@ -1063,6 +1066,7 @@
 ./usr/share/man/html8/x68k
 ./usr/share/man/html8/x86
 ./usr/share/man/html9
+./usr/share/man/html9lua
 ./usr/share/man/html9/acorn26
 ./usr/share/man/html9/alpha
 ./usr/share/man/html9/amiga
@@ -1084,6 +1088,7 @@
 ./usr/share/man/man2
 ./usr/share/man/man3
 ./usr/share/man/man3f
+./usr/share/man/man3lua
 ./usr/share/man/man4
 ./usr/share/man/man4/acorn26
 ./usr/share/man/man4/acorn32
@@ -1172,6 +1177,7 @@
 ./usr/share/man/man8/x68k
 ./usr/share/man/man8/x86
 ./usr/share/man/man9
+./usr/share/man/man9lua
 ./usr/share/man/man9/acorn26
 ./usr/share/man/man9/alpha
 ./usr/share/man/man9/amiga



CVS commit: src/etc

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 08:19:46 UTC 2013

Modified Files:
src/etc: man.conf

Log Message:
add 3l/3lua and 9l/9lua man page sections


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/etc/man.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/man.conf
diff -u src/etc/man.conf:1.33 src/etc/man.conf:1.34
--- src/etc/man.conf:1.33	Fri Oct 25 07:59:55 2013
+++ src/etc/man.conf	Fri Oct 25 08:19:46 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: man.conf,v 1.33 2013/10/25 07:59:55 mbalmer Exp $
+#	$NetBSD: man.conf,v 1.34 2013/10/25 08:19:46 mbalmer Exp $
 
 # Sheer, raging paranoia...
 _version	BSD.2
@@ -7,7 +7,7 @@ _version	BSD.2
 _mandb /var/db/man.db
 
 # Subdirectories for paths ending in '/', IN SEARCH ORDER.
-_subdir		cat1 man1 cat8 man8 cat6 man6 cat2 man2 cat3 man3 cat4 man4 cat5 man5 cat7 man7 man3f cat9 man9 catn mann catl manl
+_subdir		cat1 man1 cat8 man8 cat6 man6 cat2 man2 cat3 cat3lua man3 man3lua cat4 man4 cat5 man5 cat7 man7 man3f cat9 cat9lua man9 man9lua catn mann catl manl
 
 # Files typed by suffix and their commands.
 # Note the order, .Z must come after .[1-9].Z, or it will match first.
@@ -54,12 +54,16 @@ local		/usr/local/man/
 3		{cat,man}3
 3F		{cat,man}3f
 3f		{cat,man}3f
+3lua		{cat,man}3lua
+3l		{cat,man}3lua
 4		{cat,man}4
 5		{cat,man}5
 6		{cat,man}6
 7		{cat,man}7
 8		{cat,man}8
 9		{cat,man}9
+9lua		{cat,man}9lua
+9l		{cat,man}9lua
 l		{cat,man}l
 n		{cat,man}n
 



CVS commit: src/sys/sys

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 08:47:30 UTC 2013

Modified Files:
src/sys/sys: cdefs.h

Log Message:
Add comments explaining what __unused and __used are for.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.113 src/sys/sys/cdefs.h:1.114
--- src/sys/sys/cdefs.h:1.113	Wed Oct 16 19:31:43 2013
+++ src/sys/sys/cdefs.h	Fri Oct 25 08:47:30 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs.h,v 1.113 2013/10/16 19:31:43 christos Exp $	*/
+/*	$NetBSD: cdefs.h,v 1.114 2013/10/25 08:47:30 apb Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -250,12 +250,21 @@
 #define	__noclone	/* nothing */
 #endif
 
+/*
+ * __unused: Note that variable might be unused.
+ * Do not warn if variable is unused.
+ */
 #if __GNUC_PREREQ__(2, 7)
 #define	__unused	__attribute__((__unused__))
 #else
 #define	__unused	/* delete */
 #endif
 
+/*
+ * __used: Note that variable is needed, even if it appears to be unused.
+ * Valid only for static variables.  Do not optimise variable away.
+ * Do not warn if variable is unused.
+ */
 #if __GNUC_PREREQ__(3, 1)
 #define	__used		__attribute__((__used__))
 #else



CVS commit: src/sys/sys

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 08:51:55 UTC 2013

Modified Files:
src/sys/sys: cdefs.h

Log Message:
Add __diagused and __debugused.  These are for marking variables that
are used only in diagnotic or debug code, but unused when NDEBUG is
defined, or DIAGNOSTIC is not defined, or DEBUG is not defined.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.114 src/sys/sys/cdefs.h:1.115
--- src/sys/sys/cdefs.h:1.114	Fri Oct 25 08:47:30 2013
+++ src/sys/sys/cdefs.h	Fri Oct 25 08:51:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs.h,v 1.114 2013/10/25 08:47:30 apb Exp $	*/
+/*	$NetBSD: cdefs.h,v 1.115 2013/10/25 08:51:55 apb Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -271,6 +271,44 @@
 #define	__used		__unused
 #endif
 
+/*
+ * __diagused: Note that variable is used in diagnostic code, but may be
+ * unused in non-diagnostic code.
+ *
+ * In the kernel, variables that are used when DIAGNOSTIC is defined,
+ * but unused when DIAGNOSTIC is not defined, may be declared with
+ * __diagused.  In userland, variables that are used when NDEBUG is not
+ * defined, but unused when NDEBUG is defined, may be declared with
+ * __diagused.
+ *
+ * Variables used only in assert(3) or KASSERT(9) macros are likely
+ * candidates for being declared with __diagused.
+ */
+#if (defined(_KERNEL)  defined(DIAGNOSTIC)) \
+ || (!defined(_KERNEL)  !defined(NDEBUG))
+#define	__diagused	/* empty */
+#else
+#define	__diagused	__unused
+#endif
+
+/*
+ * __debugused: Note that variable is used in debug code, but may be
+ * unused in non-debug code.
+ *
+ * In either the kernel or userland, variables that are used when DEBUG
+ * is defined, but unused when DEBUG is not defined, may be declared with
+ * __debugused.
+ *
+ * In the kernel, variables used only in KDASSERT(9) macros are likely
+ * candidates for being declared with __debugused.  There is no
+ * established convention for the use of DEBUG in userland code.
+ */
+#if defined(DEBUG)
+#define	__debugused	/* empty */
+#else
+#define	__debugused	__unused
+#endif
+
 #if __GNUC_PREREQ__(3, 1)
 #define	__noprofile	__attribute__((__no_instrument_function__))
 #else



CVS commit: src/sys/net

2013-10-25 Thread Mihai Chelaru
Module Name:src
Committed By:   kefren
Date:   Fri Oct 25 09:25:32 UTC 2013

Modified Files:
src/sys/net: if_mpls.c

Log Message:
RFC3032 conformance for Router Alert Label


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/net/if_mpls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_mpls.c
diff -u src/sys/net/if_mpls.c:1.10 src/sys/net/if_mpls.c:1.11
--- src/sys/net/if_mpls.c:1.10	Tue Jul 23 11:11:55 2013
+++ src/sys/net/if_mpls.c	Fri Oct 25 09:25:32 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_mpls.c,v 1.10 2013/07/23 11:11:55 kefren Exp $ */
+/*	$NetBSD: if_mpls.c,v 1.11 2013/10/25 09:25:32 kefren Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_mpls.c,v 1.10 2013/07/23 11:11:55 kefren Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_mpls.c,v 1.11 2013/10/25 09:25:32 kefren Exp $);
 
 #include opt_inet.h
 #include opt_mpls.h
@@ -66,6 +66,15 @@ __KERNEL_RCSID(0, $NetBSD: if_mpls.c,v 
 
 #include if_mpls.h
 
+#define TRIM_LABEL do { \
+	m_adj(m, sizeof(union mpls_shim)); \
+	if (m-m_len  sizeof(union mpls_shim)  \
+	(m = m_pullup(m, sizeof(union mpls_shim))) == NULL) \
+		goto done; \
+	dst.smpls_addr.s_addr = ntohl(mtod(m, union mpls_shim *)-s_addr); \
+	} while (/* CONSTCOND */ 0)
+
+
 void ifmplsattach(int);
 
 static int mpls_clone_create(struct if_clone *, int);
@@ -308,6 +317,7 @@ mpls_lse(struct mbuf *m)
 	struct rtentry *rt = NULL;
 	int error = ENOBUFS;
 	uint psize = sizeof(struct sockaddr_mpls);
+	bool push_back_alert = false;
 
 	if (m-m_len  sizeof(union mpls_shim) 
 	(m = m_pullup(m, sizeof(union mpls_shim))) == NULL)
@@ -330,14 +340,15 @@ mpls_lse(struct mbuf *m)
 	if (mpls_rfc4182 != 0)
 		while((dst.smpls_addr.shim.label == MPLS_LABEL_IPV4NULL ||
 		dst.smpls_addr.shim.label == MPLS_LABEL_IPV6NULL) 
-		__predict_false(dst.smpls_addr.shim.bos == 0)) {
-			m_adj(m, sizeof(union mpls_shim));
-			if (m-m_len  sizeof(union mpls_shim) 
-			(m = m_pullup(m, sizeof(union mpls_shim))) == NULL)
-goto done;
-			dst.smpls_addr.s_addr =
-			ntohl(mtod(m, union mpls_shim *)-s_addr);
-		}
+		__predict_false(dst.smpls_addr.shim.bos == 0))
+			TRIM_LABEL;
+
+	/* RFC 3032 Section 2.1 Page 4 */
+	if (__predict_false(dst.smpls_addr.shim.label == MPLS_LABEL_RTALERT) 
+	dst.smpls_addr.shim.bos == 0) {
+		TRIM_LABEL;
+		push_back_alert = true;
+	}
 
 	if (dst.smpls_addr.shim.label = MPLS_LABEL_RESMAX) {
 		/* Don't swap reserved labels */
@@ -412,6 +423,16 @@ mpls_lse(struct mbuf *m)
 		psize += sizeof(tshim);
 	}
 
+	if (__predict_false(push_back_alert == true)) {
+		/* re-add the router alert label */
+		memset(tshim, 0, sizeof(tshim));
+		tshim.s_addr = MPLS_LABEL_RTALERT;
+		tshim.shim.bos = tshim.shim.exp = 0;
+		tshim.shim.ttl = mpls_defttl;
+		if ((m = mpls_prepend_shim(m, tshim)) == NULL)
+			return ENOBUFS;
+	}
+
 	error = mpls_send_frame(m, rt-rt_ifp, rt);
 
 done:



CVS commit: src/sys/arch

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 09:46:10 UTC 2013

Modified Files:
src/sys/arch/hp700/dev: pdc.c
src/sys/arch/hp700/hp700: mainbus.c
src/sys/arch/hppa/hppa: trap.c
src/sys/arch/m68k/m68k: bus_dma.c

Log Message:
Change a few __unused to __diagused/__debugused


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/hp700/dev/pdc.c
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/hp700/hp700/mainbus.c
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/hppa/hppa/trap.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/m68k/m68k/bus_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp700/dev/pdc.c
diff -u src/sys/arch/hp700/dev/pdc.c:1.42 src/sys/arch/hp700/dev/pdc.c:1.43
--- src/sys/arch/hp700/dev/pdc.c:1.42	Sat Oct 19 13:29:10 2013
+++ src/sys/arch/hp700/dev/pdc.c	Fri Oct 25 09:46:10 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: pdc.c,v 1.42 2013/10/19 13:29:10 skrll Exp $	*/
+/*	$NetBSD: pdc.c,v 1.43 2013/10/25 09:46:10 martin Exp $	*/
 
 /*	$OpenBSD: pdc.c,v 1.14 2001/04/29 21:05:43 mickey Exp $	*/
 
@@ -29,7 +29,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: pdc.c,v 1.42 2013/10/19 13:29:10 skrll Exp $);
+__KERNEL_RCSID(0, $NetBSD: pdc.c,v 1.43 2013/10/25 09:46:10 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -460,7 +460,7 @@ pdccninit(struct consdev *cn)
 int
 pdccnlookc(dev_t dev, int *cp)
 {
-	int s, err __unused, l, pagezero_cookie;
+	int s, err __debugused, l, pagezero_cookie;
 
 	s = splhigh();
 	pagezero_cookie = hp700_pagezero_map();

Index: src/sys/arch/hp700/hp700/mainbus.c
diff -u src/sys/arch/hp700/hp700/mainbus.c:1.84 src/sys/arch/hp700/hp700/mainbus.c:1.85
--- src/sys/arch/hp700/hp700/mainbus.c:1.84	Sat Oct 19 13:15:53 2013
+++ src/sys/arch/hp700/hp700/mainbus.c	Fri Oct 25 09:46:10 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.84 2013/10/19 13:15:53 skrll Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.85 2013/10/25 09:46:10 martin Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mainbus.c,v 1.84 2013/10/19 13:15:53 skrll Exp $);
+__KERNEL_RCSID(0, $NetBSD: mainbus.c,v 1.85 2013/10/25 09:46:10 martin Exp $);
 
 #include locators.h
 #include power.h
@@ -1243,7 +1243,7 @@ _bus_dmamap_load_buffer(bus_dma_tag_t t,
 	bmask = ~(map-_dm_boundary - 1);
 
 	for (seg = *segp; buflen  0; ) {
-		bool ok __unused;
+		bool ok __diagused;
 		/*
 		 * Get the physical address for this segment.
 		 */

Index: src/sys/arch/hppa/hppa/trap.c
diff -u src/sys/arch/hppa/hppa/trap.c:1.103 src/sys/arch/hppa/hppa/trap.c:1.104
--- src/sys/arch/hppa/hppa/trap.c:1.103	Sat Oct 19 14:02:29 2013
+++ src/sys/arch/hppa/hppa/trap.c	Fri Oct 25 09:46:10 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.c,v 1.103 2013/10/19 14:02:29 skrll Exp $	*/
+/*	$NetBSD: trap.c,v 1.104 2013/10/25 09:46:10 martin Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: trap.c,v 1.103 2013/10/19 14:02:29 skrll Exp $);
+__KERNEL_RCSID(0, $NetBSD: trap.c,v 1.104 2013/10/25 09:46:10 martin Exp $);
 
 /* #define INTRDEBUG */
 /* #define TRAPDEBUG */
@@ -1301,7 +1301,7 @@ startlwp(void *arg)
 {
 	ucontext_t *uc = arg;
 	lwp_t *l = curlwp;
-	int error __unused;
+	int error __diagused;
 
 	error = cpu_setmcontext(l, uc-uc_mcontext, uc-uc_flags);
 	KASSERT(error == 0);

Index: src/sys/arch/m68k/m68k/bus_dma.c
diff -u src/sys/arch/m68k/m68k/bus_dma.c:1.34 src/sys/arch/m68k/m68k/bus_dma.c:1.35
--- src/sys/arch/m68k/m68k/bus_dma.c:1.34	Sat Oct 19 19:03:30 2013
+++ src/sys/arch/m68k/m68k/bus_dma.c	Fri Oct 25 09:46:10 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.34 2013/10/19 19:03:30 martin Exp $ */
+/* $NetBSD: bus_dma.c,v 1.35 2013/10/25 09:46:10 martin Exp $ */
 
 /*
  * This file was taken from from alpha/common/bus_dma.c
@@ -41,7 +41,7 @@
 
 #include sys/cdefs.h			/* RCS ID  Copyright macro defns */
 
-__KERNEL_RCSID(0, $NetBSD: bus_dma.c,v 1.34 2013/10/19 19:03:30 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: bus_dma.c,v 1.35 2013/10/25 09:46:10 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -138,7 +138,7 @@ _bus_dmamap_load_buffer_direct_common(bu
 	vaddr_t vaddr = (vaddr_t)buf;
 	int seg, cacheable, coherent;
 	pmap_t pmap;
-	bool rv __unused;
+	bool rv __diagused;
 
 	coherent = BUS_DMA_COHERENT;
 	lastaddr = *lastaddrp;



CVS commit: src/distrib/sets/lists/base

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 10:27:08 UTC 2013

Modified Files:
src/distrib/sets/lists/base: mi

Log Message:
add new man page directories


To generate a diff of this commit:
cvs rdiff -u -r1.1043 -r1.1044 src/distrib/sets/lists/base/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/lists/base/mi
diff -u src/distrib/sets/lists/base/mi:1.1043 src/distrib/sets/lists/base/mi:1.1044
--- src/distrib/sets/lists/base/mi:1.1043	Fri Oct 25 00:23:42 2013
+++ src/distrib/sets/lists/base/mi	Fri Oct 25 10:27:08 2013
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1043 2013/10/25 00:23:42 htodd Exp $
+# $NetBSD: mi,v 1.1044 2013/10/25 10:27:08 mbalmer Exp $
 #
 # Note:	Don't delete entries from here - mark them as obsolete instead,
 #	unless otherwise stated below.
@@ -3893,6 +3893,7 @@
 ./usr/share/man/cat3base-man-share
 ./usr/share/man/cat3/atari			base-obsolete		obsolete
 ./usr/share/man/cat3fbase-obsolete		obsolete
+./usr/share/man/cat3luabase-man-share
 ./usr/share/man/cat4base-man-share
 ./usr/share/man/cat4/acorn26			base-man-share
 ./usr/share/man/cat4/acorn32			base-man-share
@@ -4012,6 +4013,7 @@
 ./usr/share/man/cat9/vax			base-man-share
 ./usr/share/man/cat9/x68k			base-man-share
 ./usr/share/man/cat9/x86			base-man-share
+./usr/share/man/cat9luabase-man-share
 ./usr/share/man/html1base-man-share
 ./usr/share/man/html1/atari			base-man-share
 ./usr/share/man/html1/hp300			base-man-share
@@ -4019,6 +4021,7 @@
 ./usr/share/man/html2base-man-share
 ./usr/share/man/html3base-man-share
 ./usr/share/man/html3fbase-man-share
+./usr/share/man/html3lua			base-man-share
 ./usr/share/man/html4base-man-share
 ./usr/share/man/html4/acorn26			base-man-share
 ./usr/share/man/html4/acorn32			base-man-share
@@ -4137,6 +4140,7 @@
 ./usr/share/man/html9/vax			base-man-share
 ./usr/share/man/html9/x68k			base-man-share
 ./usr/share/man/html9/x86			base-man-share
+./usr/share/man/html9lua			base-man-share
 ./usr/share/man/makewhatis.sed			base-man-share		!makemandb,share
 ./usr/share/man/man1base-man-share
 ./usr/share/man/man1/atari			base-man-share
@@ -4146,6 +4150,7 @@
 ./usr/share/man/man3base-man-share
 ./usr/share/man/man3/atari			base-obsolete		obsolete
 ./usr/share/man/man3fbase-man-share
+./usr/share/man/man3luabase-man-share
 ./usr/share/man/man4base-man-share
 ./usr/share/man/man4/acorn26			base-man-share
 ./usr/share/man/man4/acorn32			base-man-share
@@ -4265,6 +4270,7 @@
 ./usr/share/man/man9/vax			base-man-share
 ./usr/share/man/man9/x68k			base-man-share
 ./usr/share/man/man9/x86			base-man-share
+./usr/share/man/man9luabase-man-share
 ./usr/share/man/whatis.db			base-man-share		man,!makemandb
 ./usr/share/me	base-groff-share
 ./usr/share/miscbase-terminfo-share



CVS commit: src/share/mk

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 10:45:01 UTC 2013

Modified Files:
src/share/mk: bsd.man.mk

Log Message:
Recognise .3lua and .9lua as man page extensions.  Source
files like foo.3lua will result in installed files like
/usr/share/man/man3lua/foo.3lua, /usr/share/man/cat3lua/foo.0,
and /usr/share/man/html3lua/foo.html.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/share/mk/bsd.man.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.man.mk
diff -u src/share/mk/bsd.man.mk:1.112 src/share/mk/bsd.man.mk:1.113
--- src/share/mk/bsd.man.mk:1.112	Thu Mar 21 02:04:17 2013
+++ src/share/mk/bsd.man.mk	Fri Oct 25 10:45:01 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.man.mk,v 1.112 2013/03/21 02:04:17 christos Exp $
+#	$NetBSD: bsd.man.mk,v 1.113 2013/10/25 10:45:01 apb Exp $
 #	@(#)bsd.man.mk	8.1 (Berkeley) 6/8/93
 
 .include bsd.init.mk
@@ -32,6 +32,7 @@ MANTARGET?=	cat
 MAN?=
 MLINKS?=
 _MNUMBERS=	1 2 3 4 5 6 7 8 9
+_MNUMBERS+=	3lua 9lua
 .SUFFIXES:	${_MNUMBERS:@N@.$N@}
 
 .if ${MKMANZ} == no
@@ -123,7 +124,7 @@ manlinks::	${_t}
 .if (${MKCATPAGES} != no)  (${MKMAN} != no)
 catinstall:	catpages catlinks
 catpages::	# ensure target exists
-CATPAGES=	${MAN:C/\.([1-9])$/.cat\1${MANSUFFIX}/}
+CATPAGES=	${MAN:C/\.([1-9][a-z]*)$/.cat\1${MANSUFFIX}/}
 
 realall:	${CATPAGES}
 .NOPATH:	${CATPAGES}
@@ -191,7 +192,7 @@ catlinks::	${_t}
 .if (${MKHTML} != no)  (${MKMAN} != no)		# {
 htmlinstall:	htmlpages htmllinks
 htmlpages::	# ensure target exists
-HTMLPAGES=	${MAN:C/\.([1-9])$/.html\1/}
+HTMLPAGES=	${MAN:C/\.([1-9][a-z]*)$/.html\1/}
 
 HTMLLINKS=	${MANSUBDIR:?../:}../html%S/%N.html
 HTMLSTYLE=	${MANSUBDIR:?../:}../style.css



CVS commit: src/sys

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 11:35:55 UTC 2013

Modified Files:
src/sys/dev/scsipi: cd.c
src/sys/dev/sdmmc: sdmmc_mem.c
src/sys/kern: kern_rndsink.c subr_kcpuset.c subr_vmem.c
src/sys/miscfs/genfs: genfs_io.c
src/sys/net/npf: npf_inet.c
src/sys/ufs/ffs: ffs_wapbl.c

Log Message:
Turn a few __unused into __diagused


To generate a diff of this commit:
cvs rdiff -u -r1.315 -r1.316 src/sys/dev/scsipi/cd.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/sdmmc/sdmmc_mem.c
cvs rdiff -u -r1.6 -r1.7 src/sys/kern/kern_rndsink.c
cvs rdiff -u -r1.9 -r1.10 src/sys/kern/subr_kcpuset.c
cvs rdiff -u -r1.85 -r1.86 src/sys/kern/subr_vmem.c
cvs rdiff -u -r1.57 -r1.58 src/sys/miscfs/genfs/genfs_io.c
cvs rdiff -u -r1.23 -r1.24 src/sys/net/npf/npf_inet.c
cvs rdiff -u -r1.24 -r1.25 src/sys/ufs/ffs/ffs_wapbl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/cd.c
diff -u src/sys/dev/scsipi/cd.c:1.315 src/sys/dev/scsipi/cd.c:1.316
--- src/sys/dev/scsipi/cd.c:1.315	Sat Oct 19 19:10:12 2013
+++ src/sys/dev/scsipi/cd.c	Fri Oct 25 11:35:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cd.c,v 1.315 2013/10/19 19:10:12 martin Exp $	*/
+/*	$NetBSD: cd.c,v 1.316 2013/10/25 11:35:55 martin Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2001, 2003, 2004, 2005, 2008 The NetBSD Foundation,
@@ -50,7 +50,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: cd.c,v 1.315 2013/10/19 19:10:12 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: cd.c,v 1.316 2013/10/25 11:35:55 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -748,7 +748,7 @@ cdstart(struct scsipi_periph *periph)
 	struct scsi_rw_6 cmd_small;
 	struct scsipi_generic *cmdp;
 	struct scsipi_xfer *xs;
-	int flags, nblks, cmdlen, error __unused;
+	int flags, nblks, cmdlen, error __diagused;
 
 	SC_DEBUG(periph, SCSIPI_DB2, (cdstart ));
 	/*

Index: src/sys/dev/sdmmc/sdmmc_mem.c
diff -u src/sys/dev/sdmmc/sdmmc_mem.c:1.29 src/sys/dev/sdmmc/sdmmc_mem.c:1.30
--- src/sys/dev/sdmmc/sdmmc_mem.c:1.29	Fri May  3 16:38:35 2013
+++ src/sys/dev/sdmmc/sdmmc_mem.c	Fri Oct 25 11:35:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: sdmmc_mem.c,v 1.29 2013/05/03 16:38:35 matt Exp $	*/
+/*	$NetBSD: sdmmc_mem.c,v 1.30 2013/10/25 11:35:55 martin Exp $	*/
 /*	$OpenBSD: sdmmc_mem.c,v 1.10 2009/01/09 10:55:22 jsg Exp $	*/
 
 /*
@@ -45,7 +45,7 @@
 /* Routines for SD/MMC memory cards. */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: sdmmc_mem.c,v 1.29 2013/05/03 16:38:35 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: sdmmc_mem.c,v 1.30 2013/10/25 11:35:55 martin Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_sdmmc.h
@@ -1204,7 +1204,7 @@ static int
 sdmmc_mem_single_read_block(struct sdmmc_function *sf, uint32_t blkno,
 u_char *data, size_t datalen)
 {
-	struct sdmmc_softc *sc __unused = sf-sc;
+	struct sdmmc_softc *sc __diagused = sf-sc;
 	int error = 0;
 	int i;
 
@@ -1391,7 +1391,7 @@ static int
 sdmmc_mem_single_write_block(struct sdmmc_function *sf, uint32_t blkno,
 u_char *data, size_t datalen)
 {
-	struct sdmmc_softc *sc __unused = sf-sc;
+	struct sdmmc_softc *sc __diagused = sf-sc;
 	int error = 0;
 	int i;
 

Index: src/sys/kern/kern_rndsink.c
diff -u src/sys/kern/kern_rndsink.c:1.6 src/sys/kern/kern_rndsink.c:1.7
--- src/sys/kern/kern_rndsink.c:1.6	Sat Sep 14 20:47:48 2013
+++ src/sys/kern/kern_rndsink.c	Fri Oct 25 11:35:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_rndsink.c,v 1.6 2013/09/14 20:47:48 martin Exp $	*/
+/*	$NetBSD: kern_rndsink.c,v 1.7 2013/10/25 11:35:55 martin Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_rndsink.c,v 1.6 2013/09/14 20:47:48 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_rndsink.c,v 1.7 2013/10/25 11:35:55 martin Exp $);
 
 #include sys/param.h
 #include sys/types.h
@@ -135,7 +135,7 @@ rndpool_maybe_extract(void *buffer, size
 
 	mutex_spin_enter(rndpool_mtx);
 	if (bits_needed = rndpool_get_entropy_count(rnd_pool)) {
-		const uint32_t extracted __unused =
+		const uint32_t extracted __diagused =
 		rndpool_extract_data(rnd_pool, buffer, bytes,
 			RND_EXTRACT_GOOD);
 

Index: src/sys/kern/subr_kcpuset.c
diff -u src/sys/kern/subr_kcpuset.c:1.9 src/sys/kern/subr_kcpuset.c:1.10
--- src/sys/kern/subr_kcpuset.c:1.9	Wed Jul 17 22:36:26 2013
+++ src/sys/kern/subr_kcpuset.c	Fri Oct 25 11:35:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_kcpuset.c,v 1.9 2013/07/17 22:36:26 matt Exp $	*/
+/*	$NetBSD: subr_kcpuset.c,v 1.10 2013/10/25 11:35:55 martin Exp $	*/
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: subr_kcpuset.c,v 1.9 2013/07/17 22:36:26 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: subr_kcpuset.c,v 1.10 2013/10/25 11:35:55 martin Exp $);
 
 #include sys/param.h
 #include sys/types.h
@@ -282,7 +282,7 @@ 

CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 14:20:11 UTC 2013

Modified Files:
src/sys/uvm: uvm_map.c

Log Message:
Some pmaps may not consume all arguments of pmap_copy()


To generate a diff of this commit:
cvs rdiff -u -r1.324 -r1.325 src/sys/uvm/uvm_map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.324 src/sys/uvm/uvm_map.c:1.325
--- src/sys/uvm/uvm_map.c:1.324	Fri Nov  2 16:43:16 2012
+++ src/sys/uvm/uvm_map.c	Fri Oct 25 14:20:11 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_map.c,v 1.324 2012/11/02 16:43:16 matt Exp $	*/
+/*	$NetBSD: uvm_map.c,v 1.325 2013/10/25 14:20:11 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_map.c,v 1.324 2012/11/02 16:43:16 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_map.c,v 1.325 2013/10/25 14:20:11 martin Exp $);
 
 #include opt_ddb.h
 #include opt_uvmhist.h
@@ -2551,7 +2551,7 @@ uvm_map_extract(struct vm_map *srcmap, v
 	struct vm_map_entry *chain, *endchain, *entry, *orig_entry, *newentry,
 	*deadentry, *oldentry;
 	struct vm_map_entry *resentry = NULL; /* a dummy reservation entry */
-	vsize_t elen;
+	vsize_t elen __unused;
 	int nchain, error, copy_ok;
 	vsize_t nsize;
 	UVMHIST_FUNC(uvm_map_extract); UVMHIST_CALLED(maphist);



CVS commit: src

2013-10-25 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Fri Oct 25 14:23:15 UTC 2013

Modified Files:
src/share/man/man4: seeprom.4
src/sys/dev/i2c: at24cxx.c

Log Message:
Allow the EEPROM size to be specified in the kernel configuration by
using flags.
Add the flags values, and configuration examples to the manual page.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/seeprom.4
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/i2c/at24cxx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/seeprom.4
diff -u src/share/man/man4/seeprom.4:1.4 src/share/man/man4/seeprom.4:1.5
--- src/share/man/man4/seeprom.4:1.4	Fri Feb  8 15:18:44 2013
+++ src/share/man/man4/seeprom.4	Fri Oct 25 14:23:15 2013
@@ -1,4 +1,4 @@
-.\	$NetBSD: seeprom.4,v 1.4 2013/02/08 15:18:44 jdc Exp $
+.\	$NetBSD: seeprom.4,v 1.5 2013/10/25 14:23:15 jdc Exp $
 .\
 .\ Copyright (c) 2007 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -24,21 +24,45 @@
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd February 7, 2013
+.Dd October 25, 2013
 .Dt SEEPROM 4
 .Os
 .Sh NAME
 .Nm seeprom
 .Nd 24-series I2C EEPROM driver
 .Sh SYNOPSIS
-.Cd seeprom0 at iic0 addr 0x50 size 128
+.Cd seeprom0 at iic0 addr 0x51: AT24Cxx or compatible EEPROM: size 256
+.Cd seeprom16 at iic1 addr 0x57: power-supply: size 8192
 .Sh DESCRIPTION
 The
 .Nm
-driver provides support for the 24-series of I2C EEPROMs,
-available from a variety of vendors.
+driver provides support for the ATMEL 24-series of I2C EEPROMs, and
+compatables, available from a variety of vendors.  The Philips PCF8582
+is also supported, as compatable with the AT24C02.
 .Pp
 Access to the contents of the memory is through a character device.
+.Pp
+The size of the EEPROM is either read from the firmware, or can be set
+using the flags keyword in the kernel configuration.
+The value of the flag represents the EEPROM size in Kbit.
+.Bl -column -offset indent flags EEPROM size in bytes
+.It Sy flags Ta Sy EEPROM size in bytes
+.It Li 1 Ta 128
+.It Li 2 Ta 256
+.It Li 4 Ta 512
+.It Li 8 Ta 1024
+.It Li 16 Ta 2048
+.It Li 32 Ta 4096
+.It Li 64 Ta 8192
+.It Li 128 Ta 16384
+.It Li 256 Ta 32768
+.It Li 512 Ta 65536
+.El
+.Sh EXAMPLES
+Indirect configuration:
+.Dl seeprom* at iic? addr 0x51 flags 0x2
+Direct configuration:
+.Dl seeprom* at iic? addr?
 .Sh SEE ALSO
 .Xr iic 4
 .Sh HISTORY
@@ -49,6 +73,8 @@ device appeared in
 .Sh BUGS
 AT24C1024 EEPROM's are not supported.
 .Pp
+Software write protection on the AT34Cxx EEPROM's is not supported.
+.Pp
 The
 .Nm
 driver reads and writes one byte at a time to be compatible with all

Index: src/sys/dev/i2c/at24cxx.c
diff -u src/sys/dev/i2c/at24cxx.c:1.14 src/sys/dev/i2c/at24cxx.c:1.15
--- src/sys/dev/i2c/at24cxx.c:1.14	Wed Aug  7 19:38:45 2013
+++ src/sys/dev/i2c/at24cxx.c	Fri Oct 25 14:23:15 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: at24cxx.c,v 1.14 2013/08/07 19:38:45 soren Exp $	*/
+/*	$NetBSD: at24cxx.c,v 1.15 2013/10/25 14:23:15 jdc Exp $	*/
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: at24cxx.c,v 1.14 2013/08/07 19:38:45 soren Exp $);
+__KERNEL_RCSID(0, $NetBSD: at24cxx.c,v 1.15 2013/10/25 14:23:15 jdc Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -136,7 +136,7 @@ seeprom_attach(device_t parent, device_t
 		aprint_normal(: %s, ia-ia_name);
 	} else {
 		aprint_naive(: EEPROM);
-		aprint_normal(: AT24Cxx EEPROM);
+		aprint_normal(: AT24Cxx or compatible EEPROM);
 	}
 
 	/*
@@ -153,7 +153,10 @@ seeprom_attach(device_t parent, device_t
 	 * switching to select the proper super-page.  This isn't
 	 * supported by this driver.
 	 */
-	sc-sc_size = ia-ia_size;
+	if (device_cfdata(self)-cf_flags)
+		sc-sc_size = (device_cfdata(self)-cf_flags  7);
+	else
+		sc-sc_size = ia-ia_size;
 	switch (sc-sc_size) {
 	case 128:		/* 1Kbit */
 	case 256:		/* 2Kbit */



CVS commit: src/external/gpl3/binutils/dist/ld/emultempl

2013-10-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Oct 25 14:28:29 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/ld/emultempl: elf32.em

Log Message:
Recursively add DT_NEEDED entries from shared libraries if symbols are
used indirectly. This is more in line with the old GNU ld behavior, but
not exactly the desired semantic.

Patch from Martin Husemann.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/binutils/dist/ld/emultempl/elf32.em

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/emultempl/elf32.em
diff -u src/external/gpl3/binutils/dist/ld/emultempl/elf32.em:1.7 src/external/gpl3/binutils/dist/ld/emultempl/elf32.em:1.8
--- src/external/gpl3/binutils/dist/ld/emultempl/elf32.em:1.7	Sun Sep 29 14:03:31 2013
+++ src/external/gpl3/binutils/dist/ld/emultempl/elf32.em	Fri Oct 25 14:28:28 2013
@@ -103,6 +103,7 @@ gld${EMULATION_NAME}_before_parse (void)
 {
   ldfile_set_output_arch (${OUTPUT_ARCH}, bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
   input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
+  input_flags.add_DT_NEEDED_for_dynamic = TRUE;
   config.has_shared = `if test -n $GENERATE_SHLIB_SCRIPT ; then echo TRUE ; else echo FALSE ; fi`;
   config.separate_code = `if test x${SEPARATE_CODE} = xyes ; then echo TRUE ; else echo FALSE ; fi`;
 }



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 14:30:21 UTC 2013

Modified Files:
src/sys/uvm: uvm_page.h

Log Message:
Optimize out VM_PHYSMEM_PTR_SWAP on architectures that have VM_PHYSSEG_MAX = 1
(hard to address two different array entries there w/o invoking undefined
behaviour, and newer compilers complain about it).


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/uvm/uvm_page.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_page.h
diff -u src/sys/uvm/uvm_page.h:1.75 src/sys/uvm/uvm_page.h:1.76
--- src/sys/uvm/uvm_page.h:1.75	Sat May  5 20:45:35 2012
+++ src/sys/uvm/uvm_page.h	Fri Oct 25 14:30:21 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_page.h,v 1.75 2012/05/05 20:45:35 rmind Exp $	*/
+/*	$NetBSD: uvm_page.h,v 1.76 2013/10/25 14:30:21 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -290,8 +290,12 @@ extern bool vm_page_zero_enable;
  */
 
 #define	VM_PHYSMEM_PTR(i)	(vm_physmem[i])
+#if VM_PHYSSEG_MAX == 1
+#define VM_PHYSMEM_PTR_SWAP(i, j) /* impossible */
+#else
 #define VM_PHYSMEM_PTR_SWAP(i, j) \
 	do { vm_physmem[(i)] = vm_physmem[(j)]; } while (0)
+#endif
 
 extern struct vm_physseg vm_physmem[VM_PHYSSEG_MAX];
 extern int vm_nphysseg;



CVS commit: src/sys/dev

2013-10-25 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Fri Oct 25 14:32:10 UTC 2013

Modified Files:
src/sys/dev/i2c: at24cxx.c
src/sys/dev/ofw: ofw_subr.c

Log Message:
Add i2c-at34c02 AT34C02 EEPROM.  This is compatible with the AT24C02
EEPROM, apart from software write protection (not supported in our driver).


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/i2c/at24cxx.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/ofw/ofw_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/at24cxx.c
diff -u src/sys/dev/i2c/at24cxx.c:1.15 src/sys/dev/i2c/at24cxx.c:1.16
--- src/sys/dev/i2c/at24cxx.c:1.15	Fri Oct 25 14:23:15 2013
+++ src/sys/dev/i2c/at24cxx.c	Fri Oct 25 14:32:10 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: at24cxx.c,v 1.15 2013/10/25 14:23:15 jdc Exp $	*/
+/*	$NetBSD: at24cxx.c,v 1.16 2013/10/25 14:32:10 jdc Exp $	*/
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: at24cxx.c,v 1.15 2013/10/25 14:23:15 jdc Exp $);
+__KERNEL_RCSID(0, $NetBSD: at24cxx.c,v 1.16 2013/10/25 14:32:10 jdc Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -102,6 +102,7 @@ static int seeprom_wait_idle(struct seep
 
 static const char * seeprom_compats[] = {
 	i2c-at24c64,
+	i2c-at34c02,
 	NULL
 };
 

Index: src/sys/dev/ofw/ofw_subr.c
diff -u src/sys/dev/ofw/ofw_subr.c:1.22 src/sys/dev/ofw/ofw_subr.c:1.23
--- src/sys/dev/ofw/ofw_subr.c:1.22	Tue Sep 24 18:04:53 2013
+++ src/sys/dev/ofw/ofw_subr.c	Fri Oct 25 14:32:10 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ofw_subr.c,v 1.22 2013/09/24 18:04:53 jdc Exp $	*/
+/*	$NetBSD: ofw_subr.c,v 1.23 2013/10/25 14:32:10 jdc Exp $	*/
 
 /*
  * Copyright 1998
@@ -34,7 +34,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ofw_subr.c,v 1.22 2013/09/24 18:04:53 jdc Exp $);
+__KERNEL_RCSID(0, $NetBSD: ofw_subr.c,v 1.23 2013/10/25 14:32:10 jdc Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -384,6 +384,8 @@ of_enter_i2c_devs(prop_dictionary_t prop
 			/* Set size for EEPROM's that we know about */
 			if (strcmp(compatible, i2c-at24c64) == 0)
 prop_dictionary_set_uint32(dev, size, 8192);
+			if (strcmp(compatible, i2c-at34c02) == 0)
+prop_dictionary_set_uint32(dev, size, 256);
 		}
 		prop_array_add(array, dev);
 		prop_object_release(dev);



CVS commit: src/share/man/man3

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 14:41:08 UTC 2013

Modified Files:
src/share/man/man3: attribute.3

Log Message:
Try to make this more compiler-neutral, and give both GCC and LLVM/Clang
as examples.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/attribute.3
diff -u src/share/man/man3/attribute.3:1.11 src/share/man/man3/attribute.3:1.12
--- src/share/man/man3/attribute.3:1.11	Sun Sep 18 17:43:20 2011
+++ src/share/man/man3/attribute.3	Fri Oct 25 14:41:08 2013
@@ -1,4 +1,4 @@
-.\ $NetBSD: attribute.3,v 1.11 2011/09/18 17:43:20 jym Exp $
+.\ $NetBSD: attribute.3,v 1.12 2013/10/25 14:41:08 apb Exp $
 .\
 .\ Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -27,12 +27,12 @@
 .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\ POSSIBILITY OF SUCH DAMAGE.
 .\
-.Dd December 19, 2010
+.Dd October 25, 2013
 .Dt ATTRIBUTE 3
 .Os
 .Sh NAME
 .Nm attribute
-.Nd non-standard GCC attribute extensions
+.Nd non-standard compiler attribute extensions
 .Sh SYNOPSIS
 .In sys/cdefs.h
 .Pp
@@ -61,30 +61,42 @@
 .Pp
 .Fn __predict_false exp
 .Sh DESCRIPTION
+As an extension to the C standard, some compilers allow non-standard
+attributes to be associated with functions, variables, or types, to
+modify some aspect of the way the compiler treats the associated item.
 The
 .Tn GNU
 Compiler Collection
-.Pq Tn GCC
-provides many extensions to the standard C language.
-Among these are the so-called attributes.
-In
+.Pq Tn GCC ,
+and
+.Tn LLVM/Clang ,
+use the
+.Em __attribute__
+syntax for such attributes,
+but different versions of the compilers support different attributes,
+and other compilers may use entirely different syntax.
+.Pp
 .Nx
-all attributes are provided in a restricted namespace.
-The described macros should be preferred instead of using the
-.Tn GCC's
+code should usually avoid direct use of the
 .Em __attribute__
-extension directly.
+or similar syntax provided by specific compilers.
+Instead,
+.Nx Ns 's
+.In sys/cdefs.h
+header file
+provides several attribute macros in a namespace
+reserved for the implementation (beginning with
+.Ql __ ) ,
+that expand to the appropriate syntax for the compiler that is in use.
 .Sh ATTRIBUTES
 .Bl -tag -width abc
 .It Ic __dead
-The
-.Xr gcc 1
-compiler knows that certain functions such as
+Certain functions, such as
 .Xr abort 3
 and
-.Xr exit 3
+.Xr exit 3 ,
 can never return any value.
-When such a function is equipped with
+When such a function is declared with
 .Ic __dead ,
 certain optimizations are possible.
 Obviously a
@@ -129,34 +141,29 @@ As with pure functions,
 certain micro-optimizations are possible for functions declared with
 .Ic __constfunc .
 .It Ic __noinline
-.Tn GCC
-is known for aggressive function inlining.
 Sometimes it is known that inlining is undesirable or that
 a function will perform incorrectly when inlined.
 The
 .Ic __noinline
 macro expands to a function attribute that prevents
-.Tn GCC
-for inlining the function, irrespective
-whether the function was declared with the
+the compiler from inlining the function, irrespective
+of whether the function was declared with the
 .Em inline
 keyword.
 The attribute takes precedence over all
 other compiler options related to inlining.
 .It Ic __unused
-In most
-.Tn GCC
-versions the common
-.Fl Wall
-flag enables warnings produced by functions that are defined but unused.
 Marking an unused function with the
 .Ic __unused
-macro inhibits these warnings.
+macro inhibits warnings that a function is defined but not used.
+Marking a variable with the
+.Ic __unused
+macro inhibits warnings that the variable is unused,
+or that it is set but never read.
 .It Ic __used
 The
 .Ic __used
-macro expands to an attribute that informs
-.Tn GCC
+macro expands to an attribute that informs the compiler
 that a static variable or function is to be always retained
 in the object file even if it is unreferenced.
 .It Ic __packed
@@ -300,6 +307,7 @@ and
 .Ic __predict_true .
 .El
 .Sh SEE ALSO
+.Xr clang 1 ,
 .Xr gcc 1 ,
 .Xr __builtin_object_size 3 ,
 .Xr cdefs 3 ,



CVS commit: src/sys/arch/vax/vsa

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 14:44:25 UTC 2013

Modified Files:
src/sys/arch/vax/vsa: hdc9224.c

Log Message:
Simplify (and remove now unused variable)


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/vax/vsa/hdc9224.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/vsa/hdc9224.c
diff -u src/sys/arch/vax/vsa/hdc9224.c:1.51 src/sys/arch/vax/vsa/hdc9224.c:1.52
--- src/sys/arch/vax/vsa/hdc9224.c:1.51	Tue Dec 14 23:31:16 2010
+++ src/sys/arch/vax/vsa/hdc9224.c	Fri Oct 25 14:44:25 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: hdc9224.c,v 1.51 2010/12/14 23:31:16 matt Exp $ */
+/*	$NetBSD: hdc9224.c,v 1.52 2013/10/25 14:44:25 martin Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -51,7 +51,7 @@
 #undef	RDDEBUG
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: hdc9224.c,v 1.51 2010/12/14 23:31:16 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: hdc9224.c,v 1.52 2013/10/25 14:44:25 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -502,7 +502,6 @@ hdcstart(struct hdcsoftc *sc, struct buf
 	struct rdsoftc *rd;
 	struct buf *bp;
 	int cn, sn, tn, bn, blks;
-	volatile char ch;
 
 	if (sc-sc_active)
 		return; /* Already doing something */
@@ -559,7 +558,7 @@ hdcstart(struct hdcsoftc *sc, struct buf
 	/* Count up vars */
 	sc-sc_xfer = blks * DEV_BSIZE;
 
-	ch = HDC_RSTAT; /* Avoid pending interrupts */
+	(void)HDC_RSTAT; /* Avoid pending interrupts */
 	WAIT;
 	vsbus_clrintr(sc-sc_intbit); /* Clear pending int's */
 



CVS commit: src/sys/compat/ibcs2

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 14:46:35 UTC 2013

Modified Files:
src/sys/compat/ibcs2: ibcs2_exec_coff.c

Log Message:
Remove a variable


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/compat/ibcs2/ibcs2_exec_coff.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/ibcs2/ibcs2_exec_coff.c
diff -u src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.25 src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.26
--- src/sys/compat/ibcs2/ibcs2_exec_coff.c:1.25	Thu Jul 22 03:19:02 2010
+++ src/sys/compat/ibcs2/ibcs2_exec_coff.c	Fri Oct 25 14:46:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ibcs2_exec_coff.c,v 1.25 2010/07/22 03:19:02 christos Exp $	*/
+/*	$NetBSD: ibcs2_exec_coff.c,v 1.26 2013/10/25 14:46:35 martin Exp $	*/
 
 /*
  * Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ibcs2_exec_coff.c,v 1.25 2010/07/22 03:19:02 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: ibcs2_exec_coff.c,v 1.26 2013/10/25 14:46:35 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -431,7 +431,7 @@ exec_ibcs2_coff_prep_zmagic(struct lwp *
 		size_t resid;
 		struct coff_slhdr *slhdr;
 		char *tbuf, *bufp;
-		size_t len = sh.s_size, path_index, entry_len;
+		size_t len = sh.s_size, /* path_index, */ entry_len;
 
 		if (len  64 * 1024)
 			return ENOEXEC;
@@ -462,7 +462,7 @@ exec_ibcs2_coff_prep_zmagic(struct lwp *
 return ENOEXEC;
 			}
 
-			path_index = slhdr-path_index * sizeof(long);
+			/* path_index = slhdr-path_index * sizeof(long); */
 			entry_len = slhdr-entry_len * sizeof(long);
 
 			if (entry_len  len) {



CVS commit: src/share/man/man3

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 14:46:59 UTC 2013

Modified Files:
src/share/man/man3: attribute.3

Log Message:
Document __diagused and __debugused


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/attribute.3
diff -u src/share/man/man3/attribute.3:1.12 src/share/man/man3/attribute.3:1.13
--- src/share/man/man3/attribute.3:1.12	Fri Oct 25 14:41:08 2013
+++ src/share/man/man3/attribute.3	Fri Oct 25 14:46:59 2013
@@ -1,4 +1,4 @@
-.\ $NetBSD: attribute.3,v 1.12 2013/10/25 14:41:08 apb Exp $
+.\ $NetBSD: attribute.3,v 1.13 2013/10/25 14:46:59 apb Exp $
 .\
 .\ Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -48,6 +48,10 @@
 .Pp
 .Ic __used
 .Pp
+.Ic __diagused
+.Pp
+.Ic __debugused
+.Pp
 .Ic __packed
 .Pp
 .Fn __aligned x
@@ -166,6 +170,35 @@ The
 macro expands to an attribute that informs the compiler
 that a static variable or function is to be always retained
 in the object file even if it is unreferenced.
+.It Ic __diagused
+The
+.Ic __diagused
+macro expands to an attribute that informs the compiler
+that a variable or function is used only in diagnostic code,
+and may be unused in non-diagnostic code.
+.Pp
+In the kernel, variables that are used when DIAGNOSTIC is defined,
+but unused when DIAGNOSTIC is not defined, may be declared with
+__diagused.  In userland, variables that are used when NDEBUG is not
+defined, but unused when NDEBUG is defined, may be declared with
+__diagused.
+.Pp
+Variables used only in assert(3) or KASSERT(9) macros are likely
+candidates for being declared with __diagused.
+.It Ic __debugused
+The
+.Ic __debugused
+macro expands to an attribute that informs the compiler
+that a variable or function is used only in debug code,
+and may be unused in non-debug code.
+.Pp
+In either the kernel or userland, variables that are used when DEBUG
+is defined, but unused when DEBUG is not defined, may be declared with
+__debugused.
+.Pp
+In the kernel, variables used only in KDASSERT(9) macros are likely
+candidates for being declared with __debugused.  There is no
+established convention for the use of DEBUG in userland code.
 .It Ic __packed
 The
 .Ic __packed



CVS commit: src/sys/sys

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 14:54:25 UTC 2013

Modified Files:
src/sys/sys: cdefs.h

Log Message:
Now that these attributes are documented in attribute(3), shorten
the comments for __used, __unused, __diagused, and __debugused.
Also s/variable/item/ because the attributes may bve applied
to functions.


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.115 src/sys/sys/cdefs.h:1.116
--- src/sys/sys/cdefs.h:1.115	Fri Oct 25 08:51:55 2013
+++ src/sys/sys/cdefs.h	Fri Oct 25 14:54:25 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs.h,v 1.115 2013/10/25 08:51:55 apb Exp $	*/
+/*	$NetBSD: cdefs.h,v 1.116 2013/10/25 14:54:25 apb Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -251,8 +251,7 @@
 #endif
 
 /*
- * __unused: Note that variable might be unused.
- * Do not warn if variable is unused.
+ * __unused: Note that item or function might be unused.
  */
 #if __GNUC_PREREQ__(2, 7)
 #define	__unused	__attribute__((__unused__))
@@ -261,9 +260,7 @@
 #endif
 
 /*
- * __used: Note that variable is needed, even if it appears to be unused.
- * Valid only for static variables.  Do not optimise variable away.
- * Do not warn if variable is unused.
+ * __used: Note that item is needed, even if it appears to be unused.
  */
 #if __GNUC_PREREQ__(3, 1)
 #define	__used		__attribute__((__used__))
@@ -272,17 +269,8 @@
 #endif
 
 /*
- * __diagused: Note that variable is used in diagnostic code, but may be
+ * __diagused: Note that item is used in diagnostic code, but may be
  * unused in non-diagnostic code.
- *
- * In the kernel, variables that are used when DIAGNOSTIC is defined,
- * but unused when DIAGNOSTIC is not defined, may be declared with
- * __diagused.  In userland, variables that are used when NDEBUG is not
- * defined, but unused when NDEBUG is defined, may be declared with
- * __diagused.
- *
- * Variables used only in assert(3) or KASSERT(9) macros are likely
- * candidates for being declared with __diagused.
  */
 #if (defined(_KERNEL)  defined(DIAGNOSTIC)) \
  || (!defined(_KERNEL)  !defined(NDEBUG))
@@ -292,16 +280,8 @@
 #endif
 
 /*
- * __debugused: Note that variable is used in debug code, but may be
+ * __debugused: Note that item is used in debug code, but may be
  * unused in non-debug code.
- *
- * In either the kernel or userland, variables that are used when DEBUG
- * is defined, but unused when DEBUG is not defined, may be declared with
- * __debugused.
- *
- * In the kernel, variables used only in KDASSERT(9) macros are likely
- * candidates for being declared with __debugused.  There is no
- * established convention for the use of DEBUG in userland code.
  */
 #if defined(DEBUG)
 #define	__debugused	/* empty */



CVS commit: src/sys/dev/bi

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 15:11:32 UTC 2013

Modified Files:
src/sys/dev/bi: if_ni.c

Log Message:
Eliminate unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/bi/if_ni.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/bi/if_ni.c
diff -u src/sys/dev/bi/if_ni.c:1.40 src/sys/dev/bi/if_ni.c:1.41
--- src/sys/dev/bi/if_ni.c:1.40	Sat Nov 13 13:51:57 2010
+++ src/sys/dev/bi/if_ni.c	Fri Oct 25 15:11:32 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ni.c,v 1.40 2010/11/13 13:51:57 uebayasi Exp $ */
+/*	$NetBSD: if_ni.c,v 1.41 2013/10/25 15:11:32 martin Exp $ */
 /*
  * Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
  *
@@ -36,7 +36,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_ni.c,v 1.40 2010/11/13 13:51:57 uebayasi Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_ni.c,v 1.41 2013/10/25 15:11:32 martin Exp $);
 
 #include opt_inet.h
 
@@ -233,7 +233,7 @@ niattach(device_t parent, device_t self,
 	struct ni_msg *msg;
 	struct ni_ptdb *ptdb;
 	void *va;
-	int i, j, s, res;
+	int i, j, s;
 	u_short type;
 
 	sc-sc_dev = self;
@@ -346,7 +346,7 @@ niattach(device_t parent, device_t self,
 	ni_getpgs(sc, NMSGBUF * 512, va, 0);
 	for (i = 0; i  NMSGBUF; i++) {
 		msg = (void *)((char *)va + i * 512);
-		res = INSQTI(msg, fqb-nf_mforw);
+		INSQTI(msg, fqb-nf_mforw);
 	}
 	WAITREG(NI_PCR, PCR_OWN);
 	NI_WREG(NI_PCR, PCR_FREEQNE|PCR_MFREEQ|PCR_OWN);
@@ -369,7 +369,7 @@ niattach(device_t parent, device_t self,
 			bbd[i * NTXFRAGS + j].nb_status = 0;
 			data-bufs[j]._index = i * NTXFRAGS + j;
 		}
-		res = INSQTI(data, fqb-nf_dforw);
+		INSQTI(data, fqb-nf_dforw);
 	}
 	WAITREG(NI_PCR, PCR_OWN);
 	NI_WREG(NI_PCR, PCR_FREEQNE|PCR_DFREEQ|PCR_OWN);
@@ -391,7 +391,7 @@ niattach(device_t parent, device_t self,
 		if (ni_add_rxbuf(sc, data, idx))
 			panic(niattach: ni_add_rxbuf: out of mbufs);
 
-		res = INSQTI(data, fqb-nf_rforw);
+		INSQTI(data, fqb-nf_rforw);
 	}
 	WAITREG(NI_PCR, PCR_OWN);
 	NI_WREG(NI_PCR, PCR_FREEQNE|PCR_RFREEQ|PCR_OWN);
@@ -409,7 +409,7 @@ niattach(device_t parent, device_t self,
 	((struct ni_param *)msg-nm_text[0])-np_flags = NP_PAD;
 
 	endwait = retry = 0;
-	res = INSQTI(msg, gvp-nc_forw0);
+	INSQTI(msg, gvp-nc_forw0);
 
 retry:	WAITREG(NI_PCR, PCR_OWN);
 	NI_WREG(NI_PCR, PCR_CMDQNE|PCR_CMDQ0|PCR_OWN);
@@ -432,7 +432,7 @@ retry:	WAITREG(NI_PCR, PCR_OWN);
 	msg-nm_len = sizeof(struct ni_param) + 6;
 	msg-nm_opcode2 = NI_RCCNTR;
 
-	res = INSQTI(msg, gvp-nc_forw0);
+	INSQTI(msg, gvp-nc_forw0);
 
 	WAITREG(NI_PCR, PCR_OWN);
 	NI_WREG(NI_PCR, PCR_CMDQNE|PCR_CMDQ0|PCR_OWN);
@@ -450,7 +450,7 @@ retry:	WAITREG(NI_PCR, PCR_OWN);
 	ptdb-np_index = 1;
 	ptdb-np_fque = 1;
 
-	res = INSQTI(msg, gvp-nc_forw0);
+	INSQTI(msg, gvp-nc_forw0);
 
 	WAITREG(NI_PCR, PCR_OWN);
 	NI_WREG(NI_PCR, PCR_CMDQNE|PCR_CMDQ0|PCR_OWN);



CVS commit: src/share/man/man3

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 15:11:21 UTC 2013

Modified Files:
src/share/man/man3: attribute.3

Log Message:
Use markup in the descriptions of __diagused and __debugused.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/attribute.3
diff -u src/share/man/man3/attribute.3:1.13 src/share/man/man3/attribute.3:1.14
--- src/share/man/man3/attribute.3:1.13	Fri Oct 25 14:46:59 2013
+++ src/share/man/man3/attribute.3	Fri Oct 25 15:11:21 2013
@@ -1,4 +1,4 @@
-.\ $NetBSD: attribute.3,v 1.13 2013/10/25 14:46:59 apb Exp $
+.\ $NetBSD: attribute.3,v 1.14 2013/10/25 15:11:21 apb Exp $
 .\
 .\ Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -177,14 +177,25 @@ macro expands to an attribute that infor
 that a variable or function is used only in diagnostic code,
 and may be unused in non-diagnostic code.
 .Pp
-In the kernel, variables that are used when DIAGNOSTIC is defined,
-but unused when DIAGNOSTIC is not defined, may be declared with
-__diagused.  In userland, variables that are used when NDEBUG is not
-defined, but unused when NDEBUG is defined, may be declared with
-__diagused.
+In the kernel, variables that are used when
+.Dv DIAGNOSTIC
+is defined, but unused when
+.Dv DIAGNOSTIC
+is not defined, may be declared with
+.Ic __diagused .
+In userland, variables that are used when
+.Dv NDEBUG
+is not defined, but unused when
+.Dv NDEBUG
+is defined, may be declared with
+.Ic __diagused .
 .Pp
-Variables used only in assert(3) or KASSERT(9) macros are likely
-candidates for being declared with __diagused.
+Variables used only in
+.Xr assert 3
+or
+.Xr KASSERT 9
+macros are likely candidates for being declared with
+.Ic __diagused .
 .It Ic __debugused
 The
 .Ic __debugused
@@ -192,13 +203,20 @@ macro expands to an attribute that infor
 that a variable or function is used only in debug code,
 and may be unused in non-debug code.
 .Pp
-In either the kernel or userland, variables that are used when DEBUG
-is defined, but unused when DEBUG is not defined, may be declared with
-__debugused.
-.Pp
-In the kernel, variables used only in KDASSERT(9) macros are likely
-candidates for being declared with __debugused.  There is no
-established convention for the use of DEBUG in userland code.
+In either the kernel or userland, variables that are used when
+.Dv DEBUG
+is defined, but unused when
+.Dv DEBUG
+is not defined, may be declared with
+.Ic __debugused. 
+.Pp
+In the kernel, variables used only in
+.Xr KDASSERT 9
+macros are likely candidates for being declared with
+.Ic __debugused .
+There is no established convention for the use of
+.Dv DEBUG
+in userland code.
 .It Ic __packed
 The
 .Ic __packed



CVS commit: src/share/man/man3lua

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 15:27:03 UTC 2013

Added Files:
src/share/man/man3lua: Makefile intro.3lua

Log Message:
add intro(3lua)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/share/man/man3lua/Makefile \
src/share/man/man3lua/intro.3lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/share/man/man3lua/Makefile
diff -u /dev/null src/share/man/man3lua/Makefile:1.1
--- /dev/null	Fri Oct 25 15:27:03 2013
+++ src/share/man/man3lua/Makefile	Fri Oct 25 15:27:03 2013
@@ -0,0 +1,6 @@
+#	$NetBSD: Makefile,v 1.1 2013/10/25 15:27:03 mbalmer Exp $
+
+MAN=	intro.3lua
+
+.include bsd.man.mk
+.include bsd.subdir.mk
Index: src/share/man/man3lua/intro.3lua
diff -u /dev/null src/share/man/man3lua/intro.3lua:1.1
--- /dev/null	Fri Oct 25 15:27:03 2013
+++ src/share/man/man3lua/intro.3lua	Fri Oct 25 15:27:03 2013
@@ -0,0 +1,48 @@
+.\	$NetBSD: intro.3lua,v 1.1 2013/10/25 15:27:03 mbalmer Exp $
+.\
+.\ Copyright (c) 2013 Marc Balmer mbal...@netbsd.org. All rights reserved.
+.\
+.\ Redistribution and use in source and binary forms, with or without
+.\ modification, are permitted provided that the following conditions
+.\ are met:
+.\ 1. Redistributions of source code must retain the above copyright
+.\notice, this list of conditions and the following disclaimer.
+.\ 2. Redistributions in binary form must reproduce the above copyright
+.\notice, this list of conditions and the following disclaimer in the
+.\documentation and/or other materials provided with the distribution.
+.\ 3. Neither the name of the University nor the names of its contributors
+.\may be used to endorse or promote products derived from this software
+.\without specific prior written permission.
+.\
+.\ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\ SUCH DAMAGE.
+.\
+.\
+.Dd October 25, 2013
+.Dt INTRO 3lua
+.Os
+.Sh NAME
+.Nm intro
+.Nd introduction to the Lua libraries
+.Sh DESCRIPTION
+This section provides an overview of the Lua libraries, their
+functions, error returns and other common definitions and concepts.
+.El
+.Sh SEE ALSO
+.Xr lua 1 ,
+.Xr luac 1 ,
+.Xr intro 9lua
+.Sh HISTORY
+An
+.Nm
+manual for Lua libraries appeared in
+.Nx 7.0 .



CVS commit: src/sys/dev/qbus

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 15:42:50 UTC 2013

Modified Files:
src/sys/dev/qbus: if_qe.c

Log Message:
Fix dmamap cleanup in an error path


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/dev/qbus/if_qe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/qbus/if_qe.c
diff -u src/sys/dev/qbus/if_qe.c:1.71 src/sys/dev/qbus/if_qe.c:1.72
--- src/sys/dev/qbus/if_qe.c:1.71	Mon Apr  5 07:21:47 2010
+++ src/sys/dev/qbus/if_qe.c	Fri Oct 25 15:42:50 2013
@@ -1,4 +1,4 @@
-/*  $NetBSD: if_qe.c,v 1.71 2010/04/05 07:21:47 joerg Exp $ */
+/*  $NetBSD: if_qe.c,v 1.72 2013/10/25 15:42:50 martin Exp $ */
 /*
  * Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
  *
@@ -38,7 +38,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: if_qe.c,v 1.71 2010/04/05 07:21:47 joerg Exp $);
+__KERNEL_RCSID(0, $NetBSD: if_qe.c,v 1.72 2013/10/25 15:42:50 martin Exp $);
 
 #include opt_inet.h
 
@@ -372,13 +372,13 @@ qeattach(device_t parent, device_t self,
 	}
  fail_5:
 	for (i = 0; i  RXDESCS; i++) {
-		if (sc-sc_xmtmap[i] != NULL)
-			bus_dmamap_destroy(sc-sc_dmat, sc-sc_xmtmap[i]);
+		if (sc-sc_rcvmap[i] != NULL)
+			bus_dmamap_destroy(sc-sc_dmat, sc-sc_rcvmap[i]);
 	}
  fail_4:
 	for (i = 0; i  TXDESCS; i++) {
-		if (sc-sc_rcvmap[i] != NULL)
-			bus_dmamap_destroy(sc-sc_dmat, sc-sc_rcvmap[i]);
+		if (sc-sc_xmtmap[i] != NULL)
+			bus_dmamap_destroy(sc-sc_dmat, sc-sc_xmtmap[i]);
 	}
 }
 
@@ -452,7 +452,7 @@ qestart(struct ifnet *ifp)
 	struct qe_cdata *qc = sc-sc_qedata;
 	paddr_t	buffer;
 	struct mbuf *m, *m0;
-	int idx, len, s, i, totlen, buflen, error;
+	int idx, len, s, i, totlen, buflen;
 	short orword, csr;
 
 	if ((QE_RCSR(QE_CSR_CSR)  QE_RCV_ENABLE) == 0)
@@ -502,7 +502,7 @@ qestart(struct ifnet *ifp)
 			if (m0) {
 if (m0-m_len == 0)
 	continue;
-error = bus_dmamap_load(sc-sc_dmat,
+bus_dmamap_load(sc-sc_dmat,
 sc-sc_xmtmap[idx], mtod(m0, void *),
 m0-m_len, 0, 0);
 buffer = sc-sc_xmtmap[idx]-dm_segs[0].ds_addr;



CVS commit: src/sys/netinet6

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 15:44:39 UTC 2013

Modified Files:
src/sys/netinet6: in6_ifattach.c

Log Message:
Mark a variable as used only in diagnostic kernels


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/sys/netinet6/in6_ifattach.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet6/in6_ifattach.c
diff -u src/sys/netinet6/in6_ifattach.c:1.88 src/sys/netinet6/in6_ifattach.c:1.89
--- src/sys/netinet6/in6_ifattach.c:1.88	Fri Oct 18 02:20:15 2013
+++ src/sys/netinet6/in6_ifattach.c	Fri Oct 25 15:44:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: in6_ifattach.c,v 1.88 2013/10/18 02:20:15 mrg Exp $	*/
+/*	$NetBSD: in6_ifattach.c,v 1.89 2013/10/25 15:44:39 martin Exp $	*/
 /*	$KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $	*/
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: in6_ifattach.c,v 1.88 2013/10/18 02:20:15 mrg Exp $);
+__KERNEL_RCSID(0, $NetBSD: in6_ifattach.c,v 1.89 2013/10/25 15:44:39 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -527,7 +527,7 @@ success:
 static int
 in6_ifattach_linklocal(struct ifnet *ifp, struct ifnet *altifp)
 {
-	struct in6_ifaddr *ia;
+	struct in6_ifaddr *ia __diagused;
 	struct in6_aliasreq ifra;
 	struct nd_prefixctl pr0;
 	int i, error;



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 15:51:36 UTC 2013

Modified Files:
src/sys/kern: kern_condvar.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/kern/kern_condvar.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_condvar.c
diff -u src/sys/kern/kern_condvar.c:1.33 src/sys/kern/kern_condvar.c:1.34
--- src/sys/kern/kern_condvar.c:1.33	Sat Sep 14 13:18:31 2013
+++ src/sys/kern/kern_condvar.c	Fri Oct 25 15:51:36 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_condvar.c,v 1.33 2013/09/14 13:18:31 joerg Exp $	*/
+/*	$NetBSD: kern_condvar.c,v 1.34 2013/10/25 15:51:36 martin Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_condvar.c,v 1.33 2013/09/14 13:18:31 joerg Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_condvar.c,v 1.34 2013/10/25 15:51:36 martin Exp $);
 
 #include sys/param.h
 #include sys/proc.h
@@ -190,7 +190,7 @@ cv_exit(kcondvar_t *cv, kmutex_t *mtx, l
 static void
 cv_unsleep(lwp_t *l, bool cleanup)
 {
-	kcondvar_t *cv;
+	kcondvar_t *cv __diagused;
 
 	cv = (kcondvar_t *)(uintptr_t)l-l_wchan;
 



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 15:52:57 UTC 2013

Modified Files:
src/sys/kern: kern_proc.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.188 -r1.189 src/sys/kern/kern_proc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_proc.c
diff -u src/sys/kern/kern_proc.c:1.188 src/sys/kern/kern_proc.c:1.189
--- src/sys/kern/kern_proc.c:1.188	Tue Sep 10 21:30:21 2013
+++ src/sys/kern/kern_proc.c	Fri Oct 25 15:52:57 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_proc.c,v 1.188 2013/09/10 21:30:21 matt Exp $	*/
+/*	$NetBSD: kern_proc.c,v 1.189 2013/10/25 15:52:57 martin Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: kern_proc.c,v 1.188 2013/09/10 21:30:21 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: kern_proc.c,v 1.189 2013/10/25 15:52:57 martin Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_kstack.h
@@ -1452,7 +1452,7 @@ proc_specific_key_delete(specificdata_ke
 void
 proc_initspecific(struct proc *p)
 {
-	int error;
+	int error __diagused;
 
 	error = specificdata_init(proc_specificdata_domain, p-p_specdataref);
 	KASSERT(error == 0);



CVS commit: src/sys/dev/mscp

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:00:35 UTC 2013

Modified Files:
src/sys/dev/mscp: mscp_disk.c mscp_subr.c mscp_tape.c

Log Message:
Eliminate unused variables


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dev/mscp/mscp_disk.c
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/mscp/mscp_subr.c
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/mscp/mscp_tape.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/mscp/mscp_disk.c
diff -u src/sys/dev/mscp/mscp_disk.c:1.76 src/sys/dev/mscp/mscp_disk.c:1.77
--- src/sys/dev/mscp/mscp_disk.c:1.76	Sat Oct 27 17:18:26 2012
+++ src/sys/dev/mscp/mscp_disk.c	Fri Oct 25 16:00:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: mscp_disk.c,v 1.76 2012/10/27 17:18:26 chs Exp $	*/
+/*	$NetBSD: mscp_disk.c,v 1.77 2013/10/25 16:00:35 martin Exp $	*/
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
@@ -82,7 +82,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mscp_disk.c,v 1.76 2012/10/27 17:18:26 chs Exp $);
+__KERNEL_RCSID(0, $NetBSD: mscp_disk.c,v 1.77 2013/10/25 16:00:35 martin Exp $);
 
 #include sys/param.h
 #include sys/buf.h
@@ -320,13 +320,11 @@ void
 rastrategy(struct buf *bp)
 {
 	struct ra_softc *ra = mscp_device_lookup(bp-b_dev);
-	int unit;
 	int b;
 
 	/*
 	 * Make sure this is a reasonable drive to use.
 	 */
-	unit = DISKUNIT(bp-b_dev);
 	if (ra == NULL) {
 		bp-b_error = ENXIO;
 		goto done;
@@ -728,7 +726,6 @@ rx_putonline(struct rx_softc *rx)
 {
 	struct	mscp *mp;
 	struct	mscp_softc *mi = device_private(device_parent(rx-ra_dev));
-	volatile int i;
 
 	rx-ra_state = DK_CLOSED;
 	mp = mscp_getcp(mi, MSCP_WAIT);
@@ -738,7 +735,7 @@ rx_putonline(struct rx_softc *rx)
 	*mp-mscp_addr |= MSCP_OWN | MSCP_INT;
 
 	/* Poll away */
-	i = bus_space_read_2(mi-mi_iot, mi-mi_iph, 0);
+	bus_space_read_2(mi-mi_iot, mi-mi_iph, 0);
 	if (tsleep(rx-ra_state, PRIBIO, rxonline, 100*100))
 		rx-ra_state = DK_CLOSED;
 

Index: src/sys/dev/mscp/mscp_subr.c
diff -u src/sys/dev/mscp/mscp_subr.c:1.45 src/sys/dev/mscp/mscp_subr.c:1.46
--- src/sys/dev/mscp/mscp_subr.c:1.45	Tue Mar 26 23:29:11 2013
+++ src/sys/dev/mscp/mscp_subr.c	Fri Oct 25 16:00:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: mscp_subr.c,v 1.45 2013/03/26 23:29:11 martin Exp $	*/
+/*	$NetBSD: mscp_subr.c,v 1.46 2013/10/25 16:00:35 martin Exp $	*/
 /*
  * Copyright (c) 1988 Regents of the University of California.
  * All rights reserved.
@@ -75,7 +75,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mscp_subr.c,v 1.45 2013/03/26 23:29:11 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: mscp_subr.c,v 1.46 2013/10/25 16:00:35 martin Exp $);
 
 #include sys/param.h
 #include sys/device.h
@@ -451,7 +451,7 @@ mscp_init(struct mscp_softc *mi)
 	mp-mscp_sccc.sccc_errlgfl = 0;
 	mp-mscp_sccc.sccc_ctlrflags = M_CF_ATTN | M_CF_MISC | M_CF_THIS;
 	*mp-mscp_addr |= MSCP_OWN | MSCP_INT;
-	i = READ_IP;
+	READ_IP;
 
 	count = 0;
 	while (count  DELAYTEN) {
@@ -607,7 +607,6 @@ mscp_kickaway(struct mscp_softc *mi)
 void
 mscp_dgo(struct mscp_softc *mi, struct mscp_xi *mxi)
 {
-	volatile int i;
 	struct	mscp *mp;
 
 	/*
@@ -617,7 +616,7 @@ mscp_dgo(struct mscp_softc *mi, struct m
 	mp-mscp_seq.seq_buffer = mxi-mxi_dmam-dm_segs[0].ds_addr;
 
 	*mp-mscp_addr |= MSCP_OWN | MSCP_INT;
-	i = READ_IP;
+	READ_IP;
 }
 
 #ifdef DIAGNOSTIC

Index: src/sys/dev/mscp/mscp_tape.c
diff -u src/sys/dev/mscp/mscp_tape.c:1.39 src/sys/dev/mscp/mscp_tape.c:1.40
--- src/sys/dev/mscp/mscp_tape.c:1.39	Sat Oct 27 17:18:27 2012
+++ src/sys/dev/mscp/mscp_tape.c	Fri Oct 25 16:00:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: mscp_tape.c,v 1.39 2012/10/27 17:18:27 chs Exp $ */
+/*	$NetBSD: mscp_tape.c,v 1.40 2013/10/25 16:00:35 martin Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -41,7 +41,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mscp_tape.c,v 1.39 2012/10/27 17:18:27 chs Exp $);
+__KERNEL_RCSID(0, $NetBSD: mscp_tape.c,v 1.40 2013/10/25 16:00:35 martin Exp $);
 
 #include sys/param.h
 #include sys/device.h
@@ -178,7 +178,6 @@ mt_putonline(struct mt_softc *mt)
 	struct	mscp *mp;
 	struct	mscp_softc *mi =
 	device_private(device_parent(mt-mt_dev));
-	volatile int i;
 
 	((volatile struct mt_softc *) mt)-mt_state = MT_OFFLINE;
 	mp = mscp_getcp(mi, MSCP_WAIT);
@@ -188,7 +187,7 @@ mt_putonline(struct mt_softc *mt)
 	*mp-mscp_addr |= MSCP_OWN | MSCP_INT;
 
 	/* Poll away */
-	i = bus_space_read_2(mi-mi_iot, mi-mi_iph, 0);
+	bus_space_read_2(mi-mi_iot, mi-mi_iph, 0);
 	if (tsleep(mt-mt_state, PRIBIO, mtonline, 240 * hz))
 		return MSCP_FAILED;
 
@@ -449,7 +448,6 @@ mtcmd(struct mt_softc *mt, int cmd, int 
 {
 	struct mscp *mp;
 	struct mscp_softc *mi = device_private(device_parent(mt-mt_dev));
-	volatile int i;
 
 	mp = mscp_getcp(mi, MSCP_WAIT);
 
@@ -508,7 +506,7 @@ mtcmd(struct mt_softc *mt, int cmd, int 
 		

CVS commit: src/sys/nfs

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:01:56 UTC 2013

Modified Files:
src/sys/nfs: nfs_iod.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/nfs/nfs_iod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/nfs/nfs_iod.c
diff -u src/sys/nfs/nfs_iod.c:1.5 src/sys/nfs/nfs_iod.c:1.6
--- src/sys/nfs/nfs_iod.c:1.5	Sat Sep 14 21:17:00 2013
+++ src/sys/nfs/nfs_iod.c	Fri Oct 25 16:01:56 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfs_iod.c,v 1.5 2013/09/14 21:17:00 martin Exp $	*/
+/*	$NetBSD: nfs_iod.c,v 1.6 2013/10/25 16:01:56 martin Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: nfs_iod.c,v 1.5 2013/09/14 21:17:00 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: nfs_iod.c,v 1.6 2013/10/25 16:01:56 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -194,7 +194,7 @@ nfs_iodinit(void)
 void
 nfs_iodfini(void)
 {
-	int error;
+	int error __diagused;
 
 	error = nfs_set_niothreads(0);
 	KASSERT(error == 0);



CVS commit: src/sys/dev/scsipi

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:03:51 UTC 2013

Modified Files:
src/sys/dev/scsipi: sd.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.303 -r1.304 src/sys/dev/scsipi/sd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/sd.c
diff -u src/sys/dev/scsipi/sd.c:1.303 src/sys/dev/scsipi/sd.c:1.304
--- src/sys/dev/scsipi/sd.c:1.303	Sat Sep 28 09:01:36 2013
+++ src/sys/dev/scsipi/sd.c	Fri Oct 25 16:03:51 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: sd.c,v 1.303 2013/09/28 09:01:36 skrll Exp $	*/
+/*	$NetBSD: sd.c,v 1.304 2013/10/25 16:03:51 martin Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2003, 2004 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: sd.c,v 1.303 2013/09/28 09:01:36 skrll Exp $);
+__KERNEL_RCSID(0, $NetBSD: sd.c,v 1.304 2013/10/25 16:03:51 martin Exp $);
 
 #include opt_scsi.h
 
@@ -773,7 +773,7 @@ sdstart(struct scsipi_periph *periph)
 	struct scsi_rw_6 cmd_small;
 	struct scsipi_generic *cmdp;
 	struct scsipi_xfer *xs;
-	int nblks, cmdlen, error, flags;
+	int nblks, cmdlen, error __diagused, flags;
 
 	SC_DEBUG(periph, SCSIPI_DB2, (sdstart ));
 	/*



CVS commit: src/sys/dev/scsipi

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:04:57 UTC 2013

Modified Files:
src/sys/dev/scsipi: ss_mustek.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/scsipi/ss_mustek.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/ss_mustek.c
diff -u src/sys/dev/scsipi/ss_mustek.c:1.41 src/sys/dev/scsipi/ss_mustek.c:1.42
--- src/sys/dev/scsipi/ss_mustek.c:1.41	Tue Feb 28 11:41:00 2012
+++ src/sys/dev/scsipi/ss_mustek.c	Fri Oct 25 16:04:57 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ss_mustek.c,v 1.41 2012/02/28 11:41:00 mbalmer Exp $	*/
+/*	$NetBSD: ss_mustek.c,v 1.42 2013/10/25 16:04:57 martin Exp $	*/
 
 /*
  * Copyright (c) 1995 Joachim Koenig-Baltes.  All rights reserved.
@@ -46,7 +46,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ss_mustek.c,v 1.41 2012/02/28 11:41:00 mbalmer Exp $);
+__KERNEL_RCSID(0, $NetBSD: ss_mustek.c,v 1.42 2013/10/25 16:04:57 martin Exp $);
 
 #include sys/param.h
 #include sys/kernel.h
@@ -451,7 +451,7 @@ mustek_read(struct ss_softc *ss, struct 
 	struct scsipi_xfer *xs;
 	struct scsipi_periph *periph = ss-sc_periph;
 	u_long lines_to_read;
-	int error;
+	int error __diagused;
 
 	SC_DEBUG(periph, SCSIPI_DB1, (mustek_read: start\n));
 



CVS commit: src/sys/dev/scsipi

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:05:47 UTC 2013

Modified Files:
src/sys/dev/scsipi: ss_scanjet.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/scsipi/ss_scanjet.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/ss_scanjet.c
diff -u src/sys/dev/scsipi/ss_scanjet.c:1.52 src/sys/dev/scsipi/ss_scanjet.c:1.53
--- src/sys/dev/scsipi/ss_scanjet.c:1.52	Tue Feb 28 11:41:00 2012
+++ src/sys/dev/scsipi/ss_scanjet.c	Fri Oct 25 16:05:47 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ss_scanjet.c,v 1.52 2012/02/28 11:41:00 mbalmer Exp $	*/
+/*	$NetBSD: ss_scanjet.c,v 1.53 2013/10/25 16:05:47 martin Exp $	*/
 
 /*
  * Copyright (c) 1995 Kenneth Stailey.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ss_scanjet.c,v 1.52 2012/02/28 11:41:00 mbalmer Exp $);
+__KERNEL_RCSID(0, $NetBSD: ss_scanjet.c,v 1.53 2013/10/25 16:05:47 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -253,7 +253,7 @@ scanjet_read(struct ss_softc *ss, struct
 	struct scsi_rw_scanner cmd;
 	struct scsipi_xfer *xs;
 	struct scsipi_periph *periph = ss-sc_periph;
-	int error;
+	int error __diagused;
 
 	/* Fill out the scsi command */
 	memset(cmd, 0, sizeof(cmd));



CVS commit: src/sys/dev/scsipi

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:06:44 UTC 2013

Modified Files:
src/sys/dev/scsipi: st.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.221 -r1.222 src/sys/dev/scsipi/st.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/st.c
diff -u src/sys/dev/scsipi/st.c:1.221 src/sys/dev/scsipi/st.c:1.222
--- src/sys/dev/scsipi/st.c:1.221	Thu Apr 19 17:45:20 2012
+++ src/sys/dev/scsipi/st.c	Fri Oct 25 16:06:44 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: st.c,v 1.221 2012/04/19 17:45:20 bouyer Exp $ */
+/*	$NetBSD: st.c,v 1.222 2013/10/25 16:06:44 martin Exp $ */
 
 /*-
  * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: st.c,v 1.221 2012/04/19 17:45:20 bouyer Exp $);
+__KERNEL_RCSID(0, $NetBSD: st.c,v 1.222 2013/10/25 16:06:44 martin Exp $);
 
 #include opt_scsi.h
 
@@ -1104,7 +1104,7 @@ ststart(struct scsipi_periph *periph)
 	struct buf *bp;
 	struct scsi_rw_tape cmd;
 	struct scsipi_xfer *xs;
-	int flags, error;
+	int flags, error __diagused;
 
 	SC_DEBUG(periph, SCSIPI_DB2, (ststart ));
 	/* See if there is a buf to do and we are not already  doing one */



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:08:18 UTC 2013

Modified Files:
src/sys/kern: subr_autoconf.c

Log Message:
Mark diagnostic-only variables


To generate a diff of this commit:
cvs rdiff -u -r1.228 -r1.229 src/sys/kern/subr_autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_autoconf.c
diff -u src/sys/kern/subr_autoconf.c:1.228 src/sys/kern/subr_autoconf.c:1.229
--- src/sys/kern/subr_autoconf.c:1.228	Sat Oct 12 16:49:01 2013
+++ src/sys/kern/subr_autoconf.c	Fri Oct 25 16:08:18 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.228 2013/10/12 16:49:01 christos Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.229 2013/10/25 16:08:18 martin Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: subr_autoconf.c,v 1.228 2013/10/12 16:49:01 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: subr_autoconf.c,v 1.229 2013/10/25 16:08:18 martin Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_ddb.h
@@ -241,7 +241,7 @@ frob_cfdrivervec(struct cfdriver * const
 {
 	void (*pr)(const char *, ...) __printflike(1, 2) =
 	dopanic ? panic : printf;
-	int i, error = 0, e2;
+	int i, error = 0, e2 __diagused;
 
 	for (i = 0; cfdriverv[i] != NULL; i++) {
 		if ((error = drv_do(cfdriverv[i])) != 0) {
@@ -273,7 +273,7 @@ frob_cfattachvec(const struct cfattachin
 	const struct cfattachinit *cfai = NULL;
 	void (*pr)(const char *, ...) __printflike(1, 2) =
 	dopanic ? panic : printf;
-	int j = 0, error = 0, e2;
+	int j = 0, error = 0, e2 __diagused;
 
 	for (cfai = cfattachv[0]; cfai-cfai_name != NULL; cfai++) {
 		for (j = 0; cfai-cfai_list[j] != NULL; j++) {



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:09:29 UTC 2013

Modified Files:
src/sys/kern: subr_kmem.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/kern/subr_kmem.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_kmem.c
diff -u src/sys/kern/subr_kmem.c:1.50 src/sys/kern/subr_kmem.c:1.51
--- src/sys/kern/subr_kmem.c:1.50	Mon Apr 22 13:22:25 2013
+++ src/sys/kern/subr_kmem.c	Fri Oct 25 16:09:29 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_kmem.c,v 1.50 2013/04/22 13:22:25 yamt Exp $	*/
+/*	$NetBSD: subr_kmem.c,v 1.51 2013/10/25 16:09:29 martin Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -102,7 +102,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: subr_kmem.c,v 1.50 2013/04/22 13:22:25 yamt Exp $);
+__KERNEL_RCSID(0, $NetBSD: subr_kmem.c,v 1.51 2013/10/25 16:09:29 martin Exp $);
 
 #include sys/param.h
 #include sys/callback.h
@@ -549,7 +549,7 @@ kmem_size_check(void *p, size_t sz)
 char *
 kmem_asprintf(const char *fmt, ...)
 {
-	int size, len;
+	int size __diagused, len;
 	va_list va;
 	char *str;
 



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:17:35 UTC 2013

Modified Files:
src/sys/kern: subr_lwp_specificdata.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/kern/subr_lwp_specificdata.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_lwp_specificdata.c
diff -u src/sys/kern/subr_lwp_specificdata.c:1.2 src/sys/kern/subr_lwp_specificdata.c:1.3
--- src/sys/kern/subr_lwp_specificdata.c:1.2	Mon Apr 12 23:09:28 2010
+++ src/sys/kern/subr_lwp_specificdata.c	Fri Oct 25 16:17:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_lwp_specificdata.c,v 1.2 2010/04/12 23:09:28 christos Exp $	*/
+/*	$NetBSD: subr_lwp_specificdata.c,v 1.3 2013/10/25 16:17:35 martin Exp $	*/
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 #define _LWP_API_PRIVATE
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: subr_lwp_specificdata.c,v 1.2 2010/04/12 23:09:28 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: subr_lwp_specificdata.c,v 1.3 2013/10/25 16:17:35 martin Exp $);
 
 #include sys/param.h
 #include sys/lwp.h
@@ -74,7 +74,7 @@ lwp_specific_key_delete(specificdata_key
 void
 lwp_initspecific(struct lwp *l)
 {
-	int error;
+	int error __diagused;
 
 	error = specificdata_init(lwp_specificdata_domain, l-l_specdataref);
 	KASSERT(error == 0);



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:18:37 UTC 2013

Modified Files:
src/sys/kern: subr_xcall.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/kern/subr_xcall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_xcall.c
diff -u src/sys/kern/subr_xcall.c:1.15 src/sys/kern/subr_xcall.c:1.16
--- src/sys/kern/subr_xcall.c:1.15	Sun Apr  7 00:31:40 2013
+++ src/sys/kern/subr_xcall.c	Fri Oct 25 16:18:36 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_xcall.c,v 1.15 2013/04/07 00:31:40 rmind Exp $	*/
+/*	$NetBSD: subr_xcall.c,v 1.16 2013/10/25 16:18:36 martin Exp $	*/
 
 /*-
  * Copyright (c) 2007-2010 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
  
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: subr_xcall.c,v 1.15 2013/04/07 00:31:40 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: subr_xcall.c,v 1.16 2013/10/25 16:18:36 martin Exp $);
 
 #include sys/types.h
 #include sys/param.h
@@ -159,7 +159,7 @@ void
 xc_init_cpu(struct cpu_info *ci)
 {
 	static bool again = false;
-	int error;
+	int error __diagused;
 
 	if (!again) {
 		/* Autoconfiguration will prevent re-entry. */



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:23:46 UTC 2013

Modified Files:
src/sys/kern: sys_aio.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/kern/sys_aio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sys_aio.c
diff -u src/sys/kern/sys_aio.c:1.37 src/sys/kern/sys_aio.c:1.38
--- src/sys/kern/sys_aio.c:1.37	Thu Feb 17 19:02:50 2011
+++ src/sys/kern/sys_aio.c	Fri Oct 25 16:23:46 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_aio.c,v 1.37 2011/02/17 19:02:50 matt Exp $	*/
+/*	$NetBSD: sys_aio.c,v 1.38 2013/10/25 16:23:46 martin Exp $	*/
 
 /*
  * Copyright (c) 2007 Mindaugas Rasiukevicius rmind at NetBSD org
@@ -32,7 +32,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: sys_aio.c,v 1.37 2011/02/17 19:02:50 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: sys_aio.c,v 1.38 2013/10/25 16:23:46 martin Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_ddb.h
@@ -280,7 +280,7 @@ aio_worker(void *arg)
 	struct aio_job *a_job;
 	struct lio_req *lio;
 	sigset_t oss, nss;
-	int error, refcnt;
+	int error __diagused, refcnt;
 
 	/*
 	 * Make an empty signal mask, so it



CVS commit: src/sys/netinet

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:29:20 UTC 2013

Modified Files:
src/sys/netinet: tcp_congctl.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/netinet/tcp_congctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet/tcp_congctl.c
diff -u src/sys/netinet/tcp_congctl.c:1.16 src/sys/netinet/tcp_congctl.c:1.17
--- src/sys/netinet/tcp_congctl.c:1.16	Fri Apr  8 11:15:11 2011
+++ src/sys/netinet/tcp_congctl.c	Fri Oct 25 16:29:20 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: tcp_congctl.c,v 1.16 2011/04/08 11:15:11 yamt Exp $	*/
+/*	$NetBSD: tcp_congctl.c,v 1.17 2013/10/25 16:29:20 martin Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2001, 2005, 2006 The NetBSD Foundation, Inc.
@@ -135,7 +135,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: tcp_congctl.c,v 1.16 2011/04/08 11:15:11 yamt Exp $);
+__KERNEL_RCSID(0, $NetBSD: tcp_congctl.c,v 1.17 2013/10/25 16:29:20 martin Exp $);
 
 #include opt_inet.h
 #include opt_tcp_debug.h
@@ -232,7 +232,7 @@ static kmutex_t tcp_congctl_mtx;
 void
 tcp_congctl_init(void)
 {
-	int r;
+	int r __diagused;
 	
 	mutex_init(tcp_congctl_mtx, MUTEX_DEFAULT, IPL_NONE);
 



CVS commit: src/sys/arch/vax/vax

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:30:52 UTC 2013

Modified Files:
src/sys/arch/vax/vax: trap.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 src/sys/arch/vax/vax/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/vax/trap.c
diff -u src/sys/arch/vax/vax/trap.c:1.131 src/sys/arch/vax/vax/trap.c:1.132
--- src/sys/arch/vax/vax/trap.c:1.131	Thu Aug  2 14:03:22 2012
+++ src/sys/arch/vax/vax/trap.c	Fri Oct 25 16:30:52 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.c,v 1.131 2012/08/02 14:03:22 matt Exp $ */
+/*	$NetBSD: trap.c,v 1.132 2013/10/25 16:30:52 martin Exp $ */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -33,7 +33,7 @@
  /* All bugs are subject to removal without further notice */
 		
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: trap.c,v 1.131 2012/08/02 14:03:22 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: trap.c,v 1.132 2013/10/25 16:30:52 martin Exp $);
 
 #include opt_ddb.h
 #include opt_multiprocessor.h
@@ -385,7 +385,7 @@ startlwp(void *arg)
 {
 	ucontext_t * const uc = arg;
 	lwp_t * const l = curlwp;
-	int error;
+	int error __diagused;
 
 	error = cpu_setmcontext(l, uc-uc_mcontext, uc-uc_flags);
 	KASSERT(error == 0);



CVS commit: src/sys/ufs/ufs

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 16:34:20 UTC 2013

Modified Files:
src/sys/ufs/ufs: ufs_lookup.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/sys/ufs/ufs/ufs_lookup.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/ufs/ufs_lookup.c
diff -u src/sys/ufs/ufs/ufs_lookup.c:1.126 src/sys/ufs/ufs/ufs_lookup.c:1.127
--- src/sys/ufs/ufs/ufs_lookup.c:1.126	Sun Oct 20 00:29:10 2013
+++ src/sys/ufs/ufs/ufs_lookup.c	Fri Oct 25 16:34:20 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ufs_lookup.c,v 1.126 2013/10/20 00:29:10 htodd Exp $	*/
+/*	$NetBSD: ufs_lookup.c,v 1.127 2013/10/25 16:34:20 martin Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ufs_lookup.c,v 1.126 2013/10/20 00:29:10 htodd Exp $);
+__KERNEL_RCSID(0, $NetBSD: ufs_lookup.c,v 1.127 2013/10/25 16:34:20 martin Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_ffs.h
@@ -1480,7 +1480,7 @@ int
 ufs_blkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp,
 bool modify)
 {
-	struct inode *ip;
+	struct inode *ip __diagused;
 	struct buf *bp;
 	daddr_t lbn;
 	const int dirrablks = ufs_dirrablks;



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 19:55:22 UTC 2013

Modified Files:
src/sys/kern: uipc_usrreq.c

Log Message:
Eliminat an unused variable and simplify the KASSERT which used to use it


To generate a diff of this commit:
cvs rdiff -u -r1.146 -r1.147 src/sys/kern/uipc_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/uipc_usrreq.c
diff -u src/sys/kern/uipc_usrreq.c:1.146 src/sys/kern/uipc_usrreq.c:1.147
--- src/sys/kern/uipc_usrreq.c:1.146	Tue Oct  8 17:21:24 2013
+++ src/sys/kern/uipc_usrreq.c	Fri Oct 25 19:55:22 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uipc_usrreq.c,v 1.146 2013/10/08 17:21:24 christos Exp $	*/
+/*	$NetBSD: uipc_usrreq.c,v 1.147 2013/10/25 19:55:22 martin Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2000, 2004, 2008, 2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uipc_usrreq.c,v 1.146 2013/10/08 17:21:24 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: uipc_usrreq.c,v 1.147 2013/10/25 19:55:22 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -369,7 +369,6 @@ uipc_usrreq(struct socket *so, int req, 
 {
 	struct unpcb *unp = sotounpcb(so);
 	struct socket *so2;
-	struct proc *p;
 	u_int newhiwat;
 	int error = 0;
 
@@ -380,7 +379,6 @@ uipc_usrreq(struct socket *so, int req, 
 	if (req != PRU_SEND  req != PRU_SENDOOB  control)
 		panic(uipc_usrreq: unexpected control mbuf);
 #endif
-	p = l ? l-l_proc : NULL;
 	if (req != PRU_ATTACH) {
 		if (unp == NULL) {
 			error = EINVAL;
@@ -567,7 +565,7 @@ uipc_usrreq(struct socket *so, int req, 
 m_freem(m);
 break;
 			}
-			KASSERT(p != NULL);
+			KASSERT(l != NULL);
 			error = unp_output(m, control, unp, l);
 			if (nam)
 unp_disconnect(unp);



CVS commit: src/sys/ufs/lfs

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:05:39 UTC 2013

Modified Files:
src/sys/ufs/lfs: ulfs_lookup.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/ufs/lfs/ulfs_lookup.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ufs/lfs/ulfs_lookup.c
diff -u src/sys/ufs/lfs/ulfs_lookup.c:1.16 src/sys/ufs/lfs/ulfs_lookup.c:1.17
--- src/sys/ufs/lfs/ulfs_lookup.c:1.16	Thu Oct 17 21:01:08 2013
+++ src/sys/ufs/lfs/ulfs_lookup.c	Fri Oct 25 20:05:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ulfs_lookup.c,v 1.16 2013/10/17 21:01:08 christos Exp $	*/
+/*	$NetBSD: ulfs_lookup.c,v 1.17 2013/10/25 20:05:39 martin Exp $	*/
 /*  from NetBSD: ufs_lookup.c,v 1.122 2013/01/22 09:39:18 dholland Exp  */
 
 /*
@@ -38,7 +38,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ulfs_lookup.c,v 1.16 2013/10/17 21:01:08 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: ulfs_lookup.c,v 1.17 2013/10/25 20:05:39 martin Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_lfs.h
@@ -1472,7 +1472,7 @@ int
 ulfs_blkatoff(struct vnode *vp, off_t offset, char **res, struct buf **bpp,
 bool modify)
 {
-	struct inode *ip;
+	struct inode *ip __diagused;
 	struct buf *bp;
 	daddr_t lbn;
 	const int dirrablks = ulfs_dirrablks;



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:08:11 UTC 2013

Modified Files:
src/sys/uvm: uvm_anon.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/uvm/uvm_anon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_anon.c
diff -u src/sys/uvm/uvm_anon.c:1.62 src/sys/uvm/uvm_anon.c:1.63
--- src/sys/uvm/uvm_anon.c:1.62	Thu Aug 18 14:13:59 2011
+++ src/sys/uvm/uvm_anon.c	Fri Oct 25 20:08:11 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_anon.c,v 1.62 2011/08/18 14:13:59 yamt Exp $	*/
+/*	$NetBSD: uvm_anon.c,v 1.63 2013/10/25 20:08:11 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_anon.c,v 1.62 2011/08/18 14:13:59 yamt Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_anon.c,v 1.63 2013/10/25 20:08:11 martin Exp $);
 
 #include opt_uvmhist.h
 
@@ -431,7 +431,7 @@ void
 uvm_anon_release(struct vm_anon *anon)
 {
 	struct vm_page *pg = anon-an_page;
-	bool success;
+	bool success __diagused;
 
 	KASSERT(mutex_owned(anon-an_lock));
 	KASSERT(pg != NULL);



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:22:55 UTC 2013

Modified Files:
src/sys/uvm: uvm_aobj.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.119 -r1.120 src/sys/uvm/uvm_aobj.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_aobj.c
diff -u src/sys/uvm/uvm_aobj.c:1.119 src/sys/uvm/uvm_aobj.c:1.120
--- src/sys/uvm/uvm_aobj.c:1.119	Sat Sep 15 06:25:47 2012
+++ src/sys/uvm/uvm_aobj.c	Fri Oct 25 20:22:55 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_aobj.c,v 1.119 2012/09/15 06:25:47 matt Exp $	*/
+/*	$NetBSD: uvm_aobj.c,v 1.120 2013/10/25 20:22:55 martin Exp $	*/
 
 /*
  * Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
@@ -38,7 +38,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_aobj.c,v 1.119 2012/09/15 06:25:47 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_aobj.c,v 1.120 2013/10/25 20:22:55 martin Exp $);
 
 #include opt_uvmhist.h
 
@@ -407,7 +407,7 @@ uao_create(vsize_t size, int flags)
 {
 	static struct uvm_aobj kernel_object_store;
 	static kmutex_t kernel_object_lock;
-	static int kobj_alloced = 0;
+	static int kobj_alloced __diagused = 0;
 	pgoff_t pages = round_page(size)  PAGE_SHIFT;
 	struct uvm_aobj *aobj;
 	int refs;



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:23:33 UTC 2013

Modified Files:
src/sys/uvm: uvm_bio.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/uvm/uvm_bio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_bio.c
diff -u src/sys/uvm/uvm_bio.c:1.79 src/sys/uvm/uvm_bio.c:1.80
--- src/sys/uvm/uvm_bio.c:1.79	Tue Sep 27 01:02:39 2011
+++ src/sys/uvm/uvm_bio.c	Fri Oct 25 20:23:33 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_bio.c,v 1.79 2011/09/27 01:02:39 jym Exp $	*/
+/*	$NetBSD: uvm_bio.c,v 1.80 2013/10/25 20:23:33 martin Exp $	*/
 
 /*
  * Copyright (c) 1998 Chuck Silvers.
@@ -34,7 +34,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_bio.c,v 1.79 2011/09/27 01:02:39 jym Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_bio.c,v 1.80 2013/10/25 20:23:33 martin Exp $);
 
 #include opt_uvmhist.h
 #include opt_ubc.h
@@ -646,7 +646,7 @@ ubc_release(void *va, int flags)
 		mutex_enter(uvm_pageqlock);
 		for (u_int i = 0; i  npages; i++) {
 			paddr_t pa;
-			bool rv;
+			bool rv __diagused;
 
 			rv = pmap_extract(pmap_kernel(),
 			umapva + slot_offset + (i  PAGE_SHIFT), pa);



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:25:25 UTC 2013

Modified Files:
src/sys/uvm: uvm_map.c

Log Message:
Mark diagnostic-only variables


To generate a diff of this commit:
cvs rdiff -u -r1.325 -r1.326 src/sys/uvm/uvm_map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.325 src/sys/uvm/uvm_map.c:1.326
--- src/sys/uvm/uvm_map.c:1.325	Fri Oct 25 14:20:11 2013
+++ src/sys/uvm/uvm_map.c	Fri Oct 25 20:25:25 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_map.c,v 1.325 2013/10/25 14:20:11 martin Exp $	*/
+/*	$NetBSD: uvm_map.c,v 1.326 2013/10/25 20:25:25 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_map.c,v 1.325 2013/10/25 14:20:11 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_map.c,v 1.326 2013/10/25 20:25:25 martin Exp $);
 
 #include opt_ddb.h
 #include opt_uvmhist.h
@@ -404,7 +404,7 @@ uvm_rb_fixup(struct vm_map *map, struct 
 static void
 uvm_rb_insert(struct vm_map *map, struct vm_map_entry *entry)
 {
-	struct vm_map_entry *ret;
+	struct vm_map_entry *ret __diagused;
 
 	entry-gap = entry-maxgap = uvm_rb_gap(entry);
 	if (entry-prev != map-header)
@@ -1798,7 +1798,7 @@ uvm_map_findspace(struct vm_map *map, va
 {
 	struct vm_map_entry *entry;
 	struct vm_map_entry *child, *prev, *tmp;
-	vaddr_t orig_hint;
+	vaddr_t orig_hint __diagused;
 	const int topdown = map-flags  VM_MAP_TOPDOWN;
 	UVMHIST_FUNC(uvm_map_findspace);
 	UVMHIST_CALLED(maphist);



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:26:22 UTC 2013

Modified Files:
src/sys/uvm: uvm_page.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.182 -r1.183 src/sys/uvm/uvm_page.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_page.c
diff -u src/sys/uvm/uvm_page.c:1.182 src/sys/uvm/uvm_page.c:1.183
--- src/sys/uvm/uvm_page.c:1.182	Thu Feb 16 11:46:14 2012
+++ src/sys/uvm/uvm_page.c	Fri Oct 25 20:26:22 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_page.c,v 1.182 2012/02/16 11:46:14 matt Exp $	*/
+/*	$NetBSD: uvm_page.c,v 1.183 2013/10/25 20:26:22 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_page.c,v 1.182 2012/02/16 11:46:14 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_page.c,v 1.183 2013/10/25 20:26:22 martin Exp $);
 
 #include opt_ddb.h
 #include opt_uvmhist.h
@@ -239,7 +239,7 @@ uvm_pageinsert_list(struct uvm_object *u
 static inline void
 uvm_pageinsert_tree(struct uvm_object *uobj, struct vm_page *pg)
 {
-	struct vm_page *ret;
+	struct vm_page *ret __diagused;
 
 	KASSERT(uobj == pg-uobject);
 	ret = rb_tree_insert_node(uobj-rb_tree, pg);



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:27:29 UTC 2013

Modified Files:
src/sys/uvm: uvm_pager.c

Log Message:
Mark diagnostic-only variables


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/uvm/uvm_pager.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_pager.c
diff -u src/sys/uvm/uvm_pager.c:1.108 src/sys/uvm/uvm_pager.c:1.109
--- src/sys/uvm/uvm_pager.c:1.108	Fri Jan 27 19:48:42 2012
+++ src/sys/uvm/uvm_pager.c	Fri Oct 25 20:27:29 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_pager.c,v 1.108 2012/01/27 19:48:42 para Exp $	*/
+/*	$NetBSD: uvm_pager.c,v 1.109 2013/10/25 20:27:29 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_pager.c,v 1.108 2012/01/27 19:48:42 para Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_pager.c,v 1.109 2013/10/25 20:27:29 martin Exp $);
 
 #include opt_uvmhist.h
 #include opt_readahead.h
@@ -396,7 +396,7 @@ uvm_aio_aiodone_pages(struct vm_page **p
 #if defined(VMSWAP)
 			if (swap) {
 if (pg-uobject != NULL) {
-	int oldslot;
+	int oldslot __diagused;
 	oldslot = uao_set_swslot(pg-uobject,
 		pg-offset  PAGE_SHIFT, slot);
 	KASSERT(oldslot == swslot + i);
@@ -527,7 +527,7 @@ uvm_pageratop(vaddr_t kva)
 {
 	struct vm_page *pg;
 	paddr_t pa;
-	bool rv;
+	bool rv __diagused;
 
 	rv = pmap_extract(pmap_kernel(), kva, pa);
 	KASSERT(rv);



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:28:33 UTC 2013

Modified Files:
src/sys/uvm: uvm_pdaemon.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/sys/uvm/uvm_pdaemon.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_pdaemon.c
diff -u src/sys/uvm/uvm_pdaemon.c:1.107 src/sys/uvm/uvm_pdaemon.c:1.108
--- src/sys/uvm/uvm_pdaemon.c:1.107	Mon Jul 30 23:56:48 2012
+++ src/sys/uvm/uvm_pdaemon.c	Fri Oct 25 20:28:33 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_pdaemon.c,v 1.107 2012/07/30 23:56:48 matt Exp $	*/
+/*	$NetBSD: uvm_pdaemon.c,v 1.108 2013/10/25 20:28:33 martin Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: uvm_pdaemon.c,v 1.107 2012/07/30 23:56:48 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: uvm_pdaemon.c,v 1.108 2013/10/25 20:28:33 martin Exp $);
 
 #include opt_uvmhist.h
 #include opt_readahead.h
@@ -516,7 +516,7 @@ swapcluster_flush(struct swapcluster *sw
 	int slot;
 	int nused;
 	int nallocated;
-	int error;
+	int error __diagused;
 
 	if (swc-swc_slot == 0) {
 		return;



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:36:08 UTC 2013

Modified Files:
src/sys/kern: vfs_bio.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.247 -r1.248 src/sys/kern/vfs_bio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_bio.c
diff -u src/sys/kern/vfs_bio.c:1.247 src/sys/kern/vfs_bio.c:1.248
--- src/sys/kern/vfs_bio.c:1.247	Mon Sep 30 18:58:00 2013
+++ src/sys/kern/vfs_bio.c	Fri Oct 25 20:36:08 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_bio.c,v 1.247 2013/09/30 18:58:00 hannken Exp $	*/
+/*	$NetBSD: vfs_bio.c,v 1.248 2013/10/25 20:36:08 martin Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vfs_bio.c,v 1.247 2013/09/30 18:58:00 hannken Exp $);
+__KERNEL_RCSID(0, $NetBSD: vfs_bio.c,v 1.248 2013/10/25 20:36:08 martin Exp $);
 
 #include opt_bufcache.h
 
@@ -1211,7 +1211,7 @@ buf_t *
 geteblk(int size)
 {
 	buf_t *bp;
-	int error;
+	int error __diagused;
 
 	mutex_enter(bufcache_lock);
 	while ((bp = getnewbuf(0, 0, 0)) == NULL)



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:37:17 UTC 2013

Modified Files:
src/sys/kern: vfs_mount.c

Log Message:
Mark diagnostic-only variables


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/kern/vfs_mount.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_mount.c
diff -u src/sys/kern/vfs_mount.c:1.21 src/sys/kern/vfs_mount.c:1.22
--- src/sys/kern/vfs_mount.c:1.21	Mon Sep 30 18:58:00 2013
+++ src/sys/kern/vfs_mount.c	Fri Oct 25 20:37:17 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_mount.c,v 1.21 2013/09/30 18:58:00 hannken Exp $	*/
+/*	$NetBSD: vfs_mount.c,v 1.22 2013/10/25 20:37:17 martin Exp $	*/
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vfs_mount.c,v 1.21 2013/09/30 18:58:00 hannken Exp $);
+__KERNEL_RCSID(0, $NetBSD: vfs_mount.c,v 1.22 2013/10/25 20:37:17 martin Exp $);
 
 #include sys/param.h
 #include sys/kernel.h
@@ -130,7 +130,7 @@ struct mount *
 vfs_mountalloc(struct vfsops *vfsops, vnode_t *vp)
 {
 	struct mount *mp;
-	int error;
+	int error __diagused;
 
 	mp = kmem_zalloc(sizeof(*mp), KM_SLEEP);
 	if (mp == NULL)
@@ -1233,7 +1233,7 @@ mount_specific_key_delete(specificdata_k
 void
 mount_initspecific(struct mount *mp)
 {
-	int error;
+	int error __diagused;
 
 	error = specificdata_init(mount_specificdata_domain,
   mp-mnt_specdataref);



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:38:10 UTC 2013

Modified Files:
src/sys/kern: vfs_trans.c

Log Message:
Mark diagnostic-only variables


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/kern/vfs_trans.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_trans.c
diff -u src/sys/kern/vfs_trans.c:1.27 src/sys/kern/vfs_trans.c:1.28
--- src/sys/kern/vfs_trans.c:1.27	Mon Sep 30 18:58:00 2013
+++ src/sys/kern/vfs_trans.c	Fri Oct 25 20:38:10 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_trans.c,v 1.27 2013/09/30 18:58:00 hannken Exp $	*/
+/*	$NetBSD: vfs_trans.c,v 1.28 2013/10/25 20:38:10 martin Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vfs_trans.c,v 1.27 2013/09/30 18:58:00 hannken Exp $);
+__KERNEL_RCSID(0, $NetBSD: vfs_trans.c,v 1.28 2013/10/25 20:38:10 martin Exp $);
 
 /*
  * File system transaction operations.
@@ -99,7 +99,7 @@ static void cow_change_done(const struct
 void
 fstrans_init(void)
 {
-	int error;
+	int error __diagused;
 
 	error = lwp_specific_key_create(lwp_data_key, fstrans_lwp_dtor);
 	KASSERT(error == 0);
@@ -510,7 +510,7 @@ static bool
 cow_state_change_done(const struct mount *mp)
 {
 	struct fstrans_lwp_info *fli;
-	struct fstrans_mount_info *fmi;
+	struct fstrans_mount_info *fmi __diagused;
 
 	fmi = mp-mnt_transinfo;
 



CVS commit: src/sys/kern

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:39:41 UTC 2013

Modified Files:
src/sys/kern: vfs_vnode.c

Log Message:
Mark diagnostic-only variables


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/kern/vfs_vnode.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_vnode.c
diff -u src/sys/kern/vfs_vnode.c:1.21 src/sys/kern/vfs_vnode.c:1.22
--- src/sys/kern/vfs_vnode.c:1.21	Mon Sep 30 15:24:14 2013
+++ src/sys/kern/vfs_vnode.c	Fri Oct 25 20:39:40 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_vnode.c,v 1.21 2013/09/30 15:24:14 hannken Exp $	*/
+/*	$NetBSD: vfs_vnode.c,v 1.22 2013/10/25 20:39:40 martin Exp $	*/
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -126,7 +126,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vfs_vnode.c,v 1.21 2013/09/30 15:24:14 hannken Exp $);
+__KERNEL_RCSID(0, $NetBSD: vfs_vnode.c,v 1.22 2013/10/25 20:39:40 martin Exp $);
 
 #include sys/param.h
 #include sys/kernel.h
@@ -183,7 +183,7 @@ extern int		(**dead_vnodeop_p)(void *);
 void
 vfs_vnode_sysinit(void)
 {
-	int error;
+	int error __diagused;
 
 	vnode_cache = pool_cache_init(sizeof(vnode_t), 0, 0, 0, vnodepl,
 	NULL, IPL_NONE, NULL, NULL, NULL);
@@ -359,7 +359,7 @@ int
 getnewvnode(enum vtagtype tag, struct mount *mp, int (**vops)(void *),
 kmutex_t *slock, vnode_t **vpp)
 {
-	struct uvm_object *uobj;
+	struct uvm_object *uobj __diagused;
 	vnode_t *vp;
 	int error = 0;
 



CVS commit: src/sys/arch/m68k/m68k

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:45:35 UTC 2013

Modified Files:
src/sys/arch/m68k/m68k: m68k_syscall.c

Log Message:
Mark a diagnostic-only variable


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/m68k/m68k/m68k_syscall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/m68k/m68k_syscall.c
diff -u src/sys/arch/m68k/m68k/m68k_syscall.c:1.48 src/sys/arch/m68k/m68k/m68k_syscall.c:1.49
--- src/sys/arch/m68k/m68k/m68k_syscall.c:1.48	Sun Feb 19 21:06:14 2012
+++ src/sys/arch/m68k/m68k/m68k_syscall.c	Fri Oct 25 20:45:35 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: m68k_syscall.c,v 1.48 2012/02/19 21:06:14 rmind Exp $	*/
+/*	$NetBSD: m68k_syscall.c,v 1.49 2013/10/25 20:45:35 martin Exp $	*/
 
 /*-
  * Portions Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: m68k_syscall.c,v 1.48 2012/02/19 21:06:14 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: m68k_syscall.c,v 1.49 2013/10/25 20:45:35 martin Exp $);
 
 #include opt_execfmt.h
 #include opt_compat_netbsd.h
@@ -414,7 +414,7 @@ startlwp(void *arg)
 	ucontext_t *uc = arg;
 	lwp_t *l = curlwp;
 	struct frame *f = (struct frame *)l-l_md.md_regs;
-	int error;
+	int error __diagused;
 
 	f-f_regs[D0] = 0;
 	f-f_sr = ~PSL_C;



CVS commit: src/sys/nfs

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:46:29 UTC 2013

Modified Files:
src/sys/nfs: nfs_boot.c

Log Message:
Mark a potentially unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/nfs/nfs_boot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/nfs/nfs_boot.c
diff -u src/sys/nfs/nfs_boot.c:1.80 src/sys/nfs/nfs_boot.c:1.81
--- src/sys/nfs/nfs_boot.c:1.80	Mon Oct  4 23:48:22 2010
+++ src/sys/nfs/nfs_boot.c	Fri Oct 25 20:46:29 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: nfs_boot.c,v 1.80 2010/10/04 23:48:22 cyber Exp $	*/
+/*	$NetBSD: nfs_boot.c,v 1.81 2013/10/25 20:46:29 martin Exp $	*/
 
 /*-
  * Copyright (c) 1995, 1997 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: nfs_boot.c,v 1.80 2010/10/04 23:48:22 cyber Exp $);
+__KERNEL_RCSID(0, $NetBSD: nfs_boot.c,v 1.81 2013/10/25 20:46:29 martin Exp $);
 
 #ifdef _KERNEL_OPT
 #include opt_nfs.h
@@ -112,7 +112,7 @@ nfs_boot_init(struct nfs_diskless *nd, s
 {
 	struct ifnet *ifp;
 	int error = 0;
-	int flags;
+	int flags __unused;
 
 	/* Explicitly necessary or build fails
 	 * due to unused variable, otherwise.



CVS commit: src/sys/arch/mac68k/dev

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:49:38 UTC 2013

Modified Files:
src/sys/arch/mac68k/dev: pm_direct.c

Log Message:
Remove unused variables


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/mac68k/dev/pm_direct.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/dev/pm_direct.c
diff -u src/sys/arch/mac68k/dev/pm_direct.c:1.28 src/sys/arch/mac68k/dev/pm_direct.c:1.29
--- src/sys/arch/mac68k/dev/pm_direct.c:1.28	Wed Jan 24 13:08:12 2007
+++ src/sys/arch/mac68k/dev/pm_direct.c	Fri Oct 25 20:49:38 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: pm_direct.c,v 1.28 2007/01/24 13:08:12 hubertf Exp $	*/
+/*	$NetBSD: pm_direct.c,v 1.29 2013/10/25 20:49:38 martin Exp $	*/
 
 /*
  * Copyright (C) 1997 Takashi Hamada
@@ -32,7 +32,7 @@
 /* From: pm_direct.c 1.3 03/18/98 Takashi Hamada */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: pm_direct.c,v 1.28 2007/01/24 13:08:12 hubertf Exp $);
+__KERNEL_RCSID(0, $NetBSD: pm_direct.c,v 1.29 2013/10/25 20:49:38 martin Exp $);
 
 #include opt_adb.h
 
@@ -598,7 +598,6 @@ pm_intr_pm1(void *arg)
 int
 pm_receive_pm2(u_char *data)
 {
-	int i;
 	int rval;
 
 	rval = 0xcd34;
@@ -608,7 +607,7 @@ pm_receive_pm2(u_char *data)
 			/* set VIA SR to input mode */
 			via_reg(VIA1, vACR) |= 0x0c;
 			via_reg(VIA1, vACR) = ~0x10;
-			i = PM_SR();
+			PM_SR();
 
 			PM_SET_STATE_ACKOFF();
 			if (pm_wait_busy((int)ADBDelay*32) != 0)
@@ -1137,7 +1136,6 @@ pm_adb_poll_next_device_pm1(PMData *pmda
 	int i;
 	int ndid;
 	u_short bendid = 0x1;
-	int rval;
 	PMData tmp_pmdata;
 
 	/* find another existent ADB device to poll */
@@ -1156,8 +1154,5 @@ pm_adb_poll_next_device_pm1(PMData *pmda
 	tmp_pmdata.data[0] = (u_char)(ndid  4) | 0xc;
 	tmp_pmdata.data[1] = 0x04;	/* magic spell for awaking the PM */
 	tmp_pmdata.data[2] = 0x00;
-	rval = pmgrop(tmp_pmdata);
+	pmgrop(tmp_pmdata);
 }
-
-
-



CVS commit: src/sys/arch/m68k/m68k

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:51:14 UTC 2013

Modified Files:
src/sys/arch/m68k/m68k: pmap_motorola.c

Log Message:
Mark a potentialy unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/arch/m68k/m68k/pmap_motorola.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/m68k/pmap_motorola.c
diff -u src/sys/arch/m68k/m68k/pmap_motorola.c:1.66 src/sys/arch/m68k/m68k/pmap_motorola.c:1.67
--- src/sys/arch/m68k/m68k/pmap_motorola.c:1.66	Mon Jul  9 19:23:45 2012
+++ src/sys/arch/m68k/m68k/pmap_motorola.c	Fri Oct 25 20:51:14 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap_motorola.c,v 1.66 2012/07/09 19:23:45 rkujawa Exp $*/
+/*	$NetBSD: pmap_motorola.c,v 1.67 2013/10/25 20:51:14 martin Exp $*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -119,7 +119,7 @@
 #include opt_m68k_arch.h
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: pmap_motorola.c,v 1.66 2012/07/09 19:23:45 rkujawa Exp $);
+__KERNEL_RCSID(0, $NetBSD: pmap_motorola.c,v 1.67 2013/10/25 20:51:14 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -939,7 +939,7 @@ pmap_protect(pmap_t pmap, vaddr_t sva, v
 {
 	vaddr_t nssva;
 	pt_entry_t *pte;
-	bool firstpage, needtflush;
+	bool firstpage __unused, needtflush;
 	int isro;
 
 	PMAP_DPRINTF(PDB_FOLLOW|PDB_PROTECT,



CVS commit: src/sys/arch/m68k/m68k

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:53:02 UTC 2013

Modified Files:
src/sys/arch/m68k/m68k: vm_machdep.c

Log Message:
Mark a potentially unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/m68k/m68k/vm_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/m68k/vm_machdep.c
diff -u src/sys/arch/m68k/m68k/vm_machdep.c:1.38 src/sys/arch/m68k/m68k/vm_machdep.c:1.39
--- src/sys/arch/m68k/m68k/vm_machdep.c:1.38	Sun Feb 19 21:06:15 2012
+++ src/sys/arch/m68k/m68k/vm_machdep.c	Fri Oct 25 20:53:02 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: vm_machdep.c,v 1.38 2012/02/19 21:06:15 rmind Exp $	*/
+/*	$NetBSD: vm_machdep.c,v 1.39 2013/10/25 20:53:02 martin Exp $	*/
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: vm_machdep.c,v 1.38 2012/02/19 21:06:15 rmind Exp $);
+__KERNEL_RCSID(0, $NetBSD: vm_machdep.c,v 1.39 2013/10/25 20:53:02 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -149,7 +149,7 @@ cpu_lwp_free2(struct lwp *l)
 int
 vmapbuf(struct buf *bp, vsize_t len)
 {
-	struct pmap *upmap, *kpmap;
+	struct pmap *upmap, *kpmap __unused;
 	vaddr_t uva;		/* User VA (map from) */
 	vaddr_t kva;		/* Kernel VA (new to) */
 	paddr_t pa; 		/* physical address */



CVS commit: src/sys/dev/wscons

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 20:55:24 UTC 2013

Modified Files:
src/sys/dev/wscons: wscons_rinit.c

Log Message:
Consistently ifdef a variable and all uses


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/wscons/wscons_rinit.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/wscons/wscons_rinit.c
diff -u src/sys/dev/wscons/wscons_rinit.c:1.6 src/sys/dev/wscons/wscons_rinit.c:1.7
--- src/sys/dev/wscons/wscons_rinit.c:1.6	Sun Dec 11 12:24:12 2005
+++ src/sys/dev/wscons/wscons_rinit.c	Fri Oct 25 20:55:24 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: wscons_rinit.c,v 1.6 2005/12/11 12:24:12 christos Exp $ */
+/* $NetBSD: wscons_rinit.c,v 1.7 2013/10/25 20:55:24 martin Exp $ */
 
 /*
  * Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: wscons_rinit.c,v 1.6 2005/12/11 12:24:12 christos Exp $);
+__KERNEL_RCSID(0, $NetBSD: wscons_rinit.c,v 1.7 2013/10/25 20:55:24 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -57,7 +57,9 @@ void	rcons_initfont(struct rcons *, stru
 void
 rcons_initfont(struct rcons *rc, struct raster_font *fp)
 {
+#if !defined(MSBYTE_FIRST)  !defined(MSBIT_FIRST) /* XXX other cases */
 	static int initfontdone;
+#endif
 
 	rc-rc_font = fp;
 
@@ -87,9 +89,9 @@ rcons_initfont(struct rcons *rc, struct 
 			}
 		}
 	}
-#endif
 
 	initfontdone = 1;
+#endif
 }
 
 void



CVS commit: src/usr.bin/make

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 20:57:03 UTC 2013

Modified Files:
src/usr.bin/make: make.1

Log Message:
The :C/// modifier takes an extendedregular expression.


To generate a diff of this commit:
cvs rdiff -u -r1.222 -r1.223 src/usr.bin/make/make.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/make.1
diff -u src/usr.bin/make/make.1:1.222 src/usr.bin/make/make.1:1.223
--- src/usr.bin/make/make.1:1.222	Sun Aug 11 09:53:49 2013
+++ src/usr.bin/make/make.1	Fri Oct 25 20:57:02 2013
@@ -1,4 +1,4 @@
-.\	$NetBSD: make.1,v 1.222 2013/08/11 09:53:49 apb Exp $
+.\	$NetBSD: make.1,v 1.223 2013/10/25 20:57:02 apb Exp $
 .\
 .\ Copyright (c) 1990, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\
 .\	from: @(#)make.1	8.4 (Berkeley) 3/19/94
 .\
-.Dd August 11, 2013
+.Dd October 25, 2013
 .Dt MAKE 1
 .Os
 .Sh NAME
@@ -1209,7 +1209,7 @@ The
 modifier is just like the
 .Cm \:S
 modifier except that the old and new strings, instead of being
-simple strings, are a regular expression (see
+simple strings, are an extended regular expression (see
 .Xr regex 3 )
 string
 .Ar pattern



CVS commit: src/sys/arch/mac68k/dev

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 21:09:25 UTC 2013

Modified Files:
src/sys/arch/mac68k/dev: akbd.c

Log Message:
Mark a potentially unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/mac68k/dev/akbd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/dev/akbd.c
diff -u src/sys/arch/mac68k/dev/akbd.c:1.23 src/sys/arch/mac68k/dev/akbd.c:1.24
--- src/sys/arch/mac68k/dev/akbd.c:1.23	Sat Oct 27 17:17:59 2012
+++ src/sys/arch/mac68k/dev/akbd.c	Fri Oct 25 21:09:25 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: akbd.c,v 1.23 2012/10/27 17:17:59 chs Exp $	*/
+/*	$NetBSD: akbd.c,v 1.24 2013/10/25 21:09:25 martin Exp $	*/
 
 /*
  * Copyright (C) 1998	Colin Wood
@@ -31,7 +31,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: akbd.c,v 1.23 2012/10/27 17:17:59 chs Exp $);
+__KERNEL_RCSID(0, $NetBSD: akbd.c,v 1.24 2013/10/25 21:09:25 martin Exp $);
 
 #include opt_adb.h
 
@@ -132,7 +132,7 @@ akbdattach(device_t parent, device_t sel
 	ADBSetInfoBlock adbinfo;
 	struct akbd_softc *sc = device_private(self);
 	struct adb_attach_args *aa_args = (struct adb_attach_args *)aux;
-	int error, kbd_done;
+	int error __unused, kbd_done;
 	short cmd;
 	u_char buffer[9];
 #if NWSKBD  0



CVS commit: src/sys/arch/mac68k/dev

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 21:19:56 UTC 2013

Modified Files:
src/sys/arch/mac68k/dev: adb_direct.c

Log Message:
Mark potentially unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/mac68k/dev/adb_direct.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/dev/adb_direct.c
diff -u src/sys/arch/mac68k/dev/adb_direct.c:1.65 src/sys/arch/mac68k/dev/adb_direct.c:1.66
--- src/sys/arch/mac68k/dev/adb_direct.c:1.65	Sat Oct 19 16:19:13 2013
+++ src/sys/arch/mac68k/dev/adb_direct.c	Fri Oct 25 21:19:56 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: adb_direct.c,v 1.65 2013/10/19 16:19:13 martin Exp $	*/
+/*	$NetBSD: adb_direct.c,v 1.66 2013/10/25 21:19:56 martin Exp $	*/
 
 /* From: adb_direct.c 2.02 4/18/97 jpw */
 
@@ -62,7 +62,7 @@
 #ifdef __NetBSD__
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: adb_direct.c,v 1.65 2013/10/19 16:19:13 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: adb_direct.c,v 1.66 2013/10/25 21:19:56 martin Exp $);
 
 #include opt_adb.h
 
@@ -391,7 +391,7 @@ adb_cuda_tickle(void)
 void
 adb_intr_cuda(void *arg)
 {
-	volatile int i, ending;
+	volatile int i __unused, ending;
 	volatile unsigned int s;
 	struct adbCommand packet;
 



CVS commit: src/sys/arch/mac68k/obio

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 21:24:14 UTC 2013

Modified Files:
src/sys/arch/mac68k/obio: asc.c

Log Message:
Remove not yet used stuff


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/mac68k/obio/asc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/obio/asc.c
diff -u src/sys/arch/mac68k/obio/asc.c:1.54 src/sys/arch/mac68k/obio/asc.c:1.55
--- src/sys/arch/mac68k/obio/asc.c:1.54	Sat Oct 27 17:18:00 2012
+++ src/sys/arch/mac68k/obio/asc.c	Fri Oct 25 21:24:14 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: asc.c,v 1.54 2012/10/27 17:18:00 chs Exp $	*/
+/*	$NetBSD: asc.c,v 1.55 2013/10/25 21:24:14 martin Exp $	*/
 
 /*
  * Copyright (C) 1997 Scott Reynolds
@@ -64,7 +64,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: asc.c,v 1.54 2012/10/27 17:18:00 chs Exp $);
+__KERNEL_RCSID(0, $NetBSD: asc.c,v 1.55 2013/10/25 21:24:14 martin Exp $);
 
 #include sys/types.h
 #include sys/errno.h
@@ -250,11 +250,13 @@ ascwrite(dev_t dev, struct uio *uio, int
 int
 ascioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
 {
-	struct asc_softc *sc;
 	int error;
+#ifdef not_yet
+	struct asc_softc *sc;
 	int unit = ASCUNIT(dev);
 
 	sc = device_lookup_private(asc_cd, unit);
+#endif
 	error = 0;
 
 	switch (cmd) {



CVS commit: src/sys/dev/ic

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 21:29:28 UTC 2013

Modified Files:
src/sys/dev/ic: dp83932.c

Log Message:
Remove unused stuff


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/ic/dp83932.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/dp83932.c
diff -u src/sys/dev/ic/dp83932.c:1.35 src/sys/dev/ic/dp83932.c:1.36
--- src/sys/dev/ic/dp83932.c:1.35	Sat Nov 13 13:52:00 2010
+++ src/sys/dev/ic/dp83932.c	Fri Oct 25 21:29:28 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: dp83932.c,v 1.35 2010/11/13 13:52:00 uebayasi Exp $	*/
+/*	$NetBSD: dp83932.c,v 1.36 2013/10/25 21:29:28 martin Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: dp83932.c,v 1.35 2010/11/13 13:52:00 uebayasi Exp $);
+__KERNEL_RCSID(0, $NetBSD: dp83932.c,v 1.36 2013/10/25 21:29:28 martin Exp $);
 
 
 #include sys/param.h
@@ -701,7 +701,7 @@ sonic_rxintr(struct sonic_softc *sc)
 	struct sonic_rda16 *rda16;
 	struct mbuf *m;
 	int i, len;
-	uint16_t status, bytecount, ptr0, ptr1, seqno;
+	uint16_t status, bytecount /*, ptr0, ptr1, seqno */;
 
 	for (i = sc-sc_rxptr;; i = SONIC_NEXTRX(i)) {
 		ds = sc-sc_rxsoft[i];
@@ -715,9 +715,9 @@ sonic_rxintr(struct sonic_softc *sc)
 break;
 			status = sonic32toh(sc, rda32-rda_status);
 			bytecount = sonic32toh(sc, rda32-rda_bytecount);
-			ptr0 = sonic32toh(sc, rda32-rda_pkt_ptr0);
-			ptr1 = sonic32toh(sc, rda32-rda_pkt_ptr1);
-			seqno = sonic32toh(sc, rda32-rda_seqno);
+			/* ptr0 = sonic32toh(sc, rda32-rda_pkt_ptr0); */
+			/* ptr1 = sonic32toh(sc, rda32-rda_pkt_ptr1); */
+			/* seqno = sonic32toh(sc, rda32-rda_seqno); */
 		} else {
 			SONIC_CDRXSYNC16(sc, i,
 			BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
@@ -727,9 +727,9 @@ sonic_rxintr(struct sonic_softc *sc)
 break;
 			status = sonic16toh(sc, rda16-rda_status);
 			bytecount = sonic16toh(sc, rda16-rda_bytecount);
-			ptr0 = sonic16toh(sc, rda16-rda_pkt_ptr0);
-			ptr1 = sonic16toh(sc, rda16-rda_pkt_ptr1);
-			seqno = sonic16toh(sc, rda16-rda_seqno);
+			/* ptr0 = sonic16toh(sc, rda16-rda_pkt_ptr0); */
+			/* ptr1 = sonic16toh(sc, rda16-rda_pkt_ptr1); */
+			/* seqno = sonic16toh(sc, rda16-rda_seqno); */
 		}
 
 		/*



CVS commit: src/sys/arch/m68k/fpe

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 21:32:46 UTC 2013

Modified Files:
src/sys/arch/m68k/fpe: fpu_emulate.c

Log Message:
Comment unused stuff (for documentation purposes)


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/m68k/fpe/fpu_emulate.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/m68k/fpe/fpu_emulate.c
diff -u src/sys/arch/m68k/fpe/fpu_emulate.c:1.37 src/sys/arch/m68k/fpe/fpu_emulate.c:1.38
--- src/sys/arch/m68k/fpe/fpu_emulate.c:1.37	Tue Mar 26 11:30:20 2013
+++ src/sys/arch/m68k/fpe/fpu_emulate.c	Fri Oct 25 21:32:45 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpu_emulate.c,v 1.37 2013/03/26 11:30:20 isaki Exp $	*/
+/*	$NetBSD: fpu_emulate.c,v 1.38 2013/10/25 21:32:45 martin Exp $	*/
 
 /*
  * Copyright (c) 1995 Gordon W. Ross
@@ -37,7 +37,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: fpu_emulate.c,v 1.37 2013/03/26 11:30:20 isaki Exp $);
+__KERNEL_RCSID(0, $NetBSD: fpu_emulate.c,v 1.38 2013/10/25 21:32:45 martin Exp $);
 
 #include sys/param.h
 #include sys/types.h
@@ -421,7 +421,7 @@ fpu_emul_fmovm(struct fpemu *fe, struct 
 	int word1, sig;
 	int reglist, regmask, regnum;
 	int fpu_to_mem, order;
-	int w1_post_incr;
+	/* int w1_post_incr; */
 	int *fpregs;
 
 	insn-is_advance = 4;
@@ -438,7 +438,7 @@ fpu_emul_fmovm(struct fpemu *fe, struct 
 	 * 1,0: Static  reg list, post-incr.
 	 * 1,1: Dynamic reg list, post-incr
 	 */
-	w1_post_incr = word1  0x1000;
+	/* w1_post_incr = word1  0x1000; */
 	if (word1  0x0800) {
 		/* dynamic reg list */
 		reglist = frame-f_regs[(word1  0x70)  4];



CVS commit: src/sys/arch/mac68k/nubus

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 21:42:30 UTC 2013

Modified Files:
src/sys/arch/mac68k/nubus: grf_nubus.c

Log Message:
Simplify


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/arch/mac68k/nubus/grf_nubus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/nubus/grf_nubus.c
diff -u src/sys/arch/mac68k/nubus/grf_nubus.c:1.76 src/sys/arch/mac68k/nubus/grf_nubus.c:1.77
--- src/sys/arch/mac68k/nubus/grf_nubus.c:1.76	Sat Oct 27 17:17:59 2012
+++ src/sys/arch/mac68k/nubus/grf_nubus.c	Fri Oct 25 21:42:30 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: grf_nubus.c,v 1.76 2012/10/27 17:17:59 chs Exp $	*/
+/*	$NetBSD: grf_nubus.c,v 1.77 2013/10/25 21:42:30 martin Exp $	*/
 
 /*
  * Copyright (c) 1995 Allen Briggs.  All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: grf_nubus.c,v 1.76 2012/10/27 17:17:59 chs Exp $);
+__KERNEL_RCSID(0, $NetBSD: grf_nubus.c,v 1.77 2013/10/25 21:42:30 martin Exp $);
 
 #include sys/param.h
 
@@ -628,9 +628,8 @@ static void
 grfmv_intr_supermacgfx(void *vsc)
 {
 	struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
-	u_int8_t dummy;
 
-	dummy = bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xE70D3);
+	bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xE70D3);
 }
 
 /*
@@ -641,10 +640,9 @@ static void
 grfmv_intr_cmax(void *vsc)
 {
 	struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
-	u_int32_t dummy;
 
-	dummy = bus_space_read_4(sc-sc_tag, sc-sc_handle, 0xf501c);
-	dummy = bus_space_read_4(sc-sc_tag, sc-sc_handle, 0xf5018);
+	bus_space_read_4(sc-sc_tag, sc-sc_handle, 0xf501c);
+	bus_space_read_4(sc-sc_tag, sc-sc_handle, 0xf5018);
 }
 
 /*
@@ -670,10 +668,9 @@ static void
 grfmv_intr_formac(void *vsc)
 {
 	struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
-	u_int8_t dummy;
 
-	dummy = bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xde80db);
-	dummy = bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xde80d3);
+	bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xde80db);
+	bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xde80d3);
 }
 
 /*
@@ -697,9 +694,8 @@ static void
 grfmv_intr_gvimage(void *vsc)
 {
 	struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
-	u_int8_t dummy;
 
-	dummy = bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xf0);
+	bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xf0);
 }
 
 /*
@@ -710,9 +706,8 @@ static void
 grfmv_intr_radius_gsc(void *vsc)
 {
 	struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
-	u_int8_t dummy;
 
-	dummy = bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xfb802);
+	bus_space_read_1(sc-sc_tag, sc-sc_handle, 0xfb802);
 	bus_space_write_1(sc-sc_tag, sc-sc_handle, 0xfb802, 0xff);
 }
 
@@ -737,10 +732,9 @@ static void
 grfmv_intr_relax_200(void *vsc)
 {
 	struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
-	unsigned long	scratch;
 
 	/* The board ROM driver code has a tst.l here. */
-	scratch = bus_space_read_4(sc-sc_tag, sc-sc_handle, 0x000D0040);
+	bus_space_read_4(sc-sc_tag, sc-sc_handle, 0x000D0040);
 }
 
 /*
@@ -764,9 +758,8 @@ static void
 grfmv_intr_viltro_340(void *vsc)
 {
 	struct grfbus_softc *sc = (struct grfbus_softc *)vsc;
-	u_int8_t scratch;
 
 	/* Yes, two read accesses to the same spot. */
-	scratch = bus_space_read_1(sc-sc_tag, sc-sc_handle, 0x0500);
-	scratch = bus_space_read_1(sc-sc_tag, sc-sc_handle, 0x0500);
+	bus_space_read_1(sc-sc_tag, sc-sc_handle, 0x0500);
+	bus_space_read_1(sc-sc_tag, sc-sc_handle, 0x0500);
 }



CVS commit: src/sys/arch/mac68k/dev

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 21:48:48 UTC 2013

Modified Files:
src/sys/arch/mac68k/dev: mac68k5380.c ncr5380.c

Log Message:
Simplify


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/mac68k/dev/mac68k5380.c
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/mac68k/dev/ncr5380.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/dev/mac68k5380.c
diff -u src/sys/arch/mac68k/dev/mac68k5380.c:1.48 src/sys/arch/mac68k/dev/mac68k5380.c:1.49
--- src/sys/arch/mac68k/dev/mac68k5380.c:1.48	Thu Dec  6 13:28:17 2012
+++ src/sys/arch/mac68k/dev/mac68k5380.c	Fri Oct 25 21:48:48 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: mac68k5380.c,v 1.48 2012/12/06 13:28:17 hauke Exp $	*/
+/*	$NetBSD: mac68k5380.c,v 1.49 2013/10/25 21:48:48 martin Exp $	*/
 
 /*
  * Copyright (c) 1995 Allen Briggs
@@ -34,7 +34,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mac68k5380.c,v 1.48 2012/12/06 13:28:17 hauke Exp $);
+__KERNEL_RCSID(0, $NetBSD: mac68k5380.c,v 1.49 2013/10/25 21:48:48 martin Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -147,9 +147,8 @@ static int	transfer_pdma(u_char *, u_cha
 static void
 scsi_clr_ipend(void)
 {
-	int tmp;
 
-	tmp = GET_5380_REG(NCR5380_IRCV);
+	GET_5380_REG(NCR5380_IRCV);
 	scsi_clear_irq();
 }
 
@@ -357,7 +356,7 @@ extern	int			*nofault, m68k_fault_addr;
 	register int		count;
 	volatile u_int32_t	*long_drq;
 	u_int32_t		*long_data;
-	volatile u_int8_t	*drq, tmp_data;
+	volatile u_int8_t	*drq;
 	u_int8_t		*data;
 
 #if DBG_PID
@@ -499,8 +498,7 @@ extern	int			*nofault, m68k_fault_addr;
 
 		PID(write complete);
 
-		drq = (volatile u_int8_t *) ncr_5380_with_drq;
-		tmp_data = *drq;
+		(void)*((volatile u_int8_t *) ncr_5380_with_drq);
 
 		PID(read a byte to force a phase change);
 	}

Index: src/sys/arch/mac68k/dev/ncr5380.c
diff -u src/sys/arch/mac68k/dev/ncr5380.c:1.65 src/sys/arch/mac68k/dev/ncr5380.c:1.66
--- src/sys/arch/mac68k/dev/ncr5380.c:1.65	Sat Oct 27 17:17:59 2012
+++ src/sys/arch/mac68k/dev/ncr5380.c	Fri Oct 25 21:48:48 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: ncr5380.c,v 1.65 2012/10/27 17:17:59 chs Exp $	*/
+/*	$NetBSD: ncr5380.c,v 1.66 2013/10/25 21:48:48 martin Exp $	*/
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -26,7 +26,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: ncr5380.c,v 1.65 2012/10/27 17:17:59 chs Exp $);
+__KERNEL_RCSID(0, $NetBSD: ncr5380.c,v 1.66 2013/10/25 21:48:48 martin Exp $);
 
 /*
  * Bit mask of targets you want debugging to be shown
@@ -262,7 +262,6 @@ ncr5380_scsi_request(struct scsipi_chann
 void *arg)
 {
 	struct scsipi_xfer *xs;
-	struct scsipi_periph *periph; 
 	struct ncr_softc *sc = device_private(chan-chan_adapter-adapt_dev);
 	int	sps, flags;
 	SC_REQ	*reqp, *link, *tmp;
@@ -271,7 +270,6 @@ ncr5380_scsi_request(struct scsipi_chann
 	case ADAPTER_REQ_RUN_XFER:
 		xs = arg;
 		flags = xs-xs_control;
-		periph = xs-xs_periph;
 
 		/*
 		 * We do not queue RESET commands
@@ -1629,7 +1627,6 @@ static int
 reach_msg_out(struct ncr_softc *sc, u_long len)
 {
 	u_char	phase;
-	u_char	data;
 	u_long	n = len;
 
 	ncr_aprint(sc, Trying to reach Message-out phase\n);
@@ -1648,7 +1645,7 @@ reach_msg_out(struct ncr_softc *sc, u_lo
 		if (((GET_5380_REG(NCR5380_IDSTAT)  2)  7) != phase)
 			break;
 		if (PH_IN(phase)) {
-			data = GET_5380_REG(NCR5380_DATA);
+			GET_5380_REG(NCR5380_DATA);
 			SET_5380_REG(NCR5380_ICOM, SC_A_ACK | SC_A_ATN);
 		}
 		else {



CVS commit: src/sys/arch/mac68k/obio

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 21:50:28 UTC 2013

Modified Files:
src/sys/arch/mac68k/obio: wdc_obio.c

Log Message:
Simplify


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/mac68k/obio/wdc_obio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mac68k/obio/wdc_obio.c
diff -u src/sys/arch/mac68k/obio/wdc_obio.c:1.26 src/sys/arch/mac68k/obio/wdc_obio.c:1.27
--- src/sys/arch/mac68k/obio/wdc_obio.c:1.26	Tue Jul 31 15:50:32 2012
+++ src/sys/arch/mac68k/obio/wdc_obio.c	Fri Oct 25 21:50:28 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: wdc_obio.c,v 1.26 2012/07/31 15:50:32 bouyer Exp $ */
+/*	$NetBSD: wdc_obio.c,v 1.27 2013/10/25 21:50:28 martin Exp $ */
 
 /*
  * Copyright (c) 2002 Takeshi Shibagaki  All rights reserved.
@@ -32,7 +32,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: wdc_obio.c,v 1.26 2012/07/31 15:50:32 bouyer Exp $);
+__KERNEL_RCSID(0, $NetBSD: wdc_obio.c,v 1.27 2013/10/25 21:50:28 martin Exp $);
 
 #include sys/types.h
 #include sys/param.h
@@ -91,7 +91,6 @@ wdc_obio_match(device_t parent, cfdata_t
 	struct ata_channel ch;
 	struct wdc_softc wdc;
 	struct wdc_regs wdr;
-	static int wdc_matched = 0;
 	int i, result = 0;
 
 	memset(wdc, 0, sizeof(wdc));
@@ -132,8 +131,6 @@ wdc_obio_match(device_t parent, cfdata_t
 
 		bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_OBIO_REG_NPORTS);
 
-		if (result)
-			wdc_matched = 1;
 		return (result);
 	}
 	return 0;



CVS commit: src/usr.bin/make

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 22:05:00 UTC 2013

Modified Files:
src/usr.bin/make: make.1

Log Message:
Explain that ${VAR:M*} will normalise the inter-word spacing.


To generate a diff of this commit:
cvs rdiff -u -r1.223 -r1.224 src/usr.bin/make/make.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/make.1
diff -u src/usr.bin/make/make.1:1.223 src/usr.bin/make/make.1:1.224
--- src/usr.bin/make/make.1:1.223	Fri Oct 25 20:57:02 2013
+++ src/usr.bin/make/make.1	Fri Oct 25 22:05:00 2013
@@ -1,4 +1,4 @@
-.\	$NetBSD: make.1,v 1.223 2013/10/25 20:57:02 apb Exp $
+.\	$NetBSD: make.1,v 1.224 2013/10/25 22:05:00 apb Exp $
 .\
 .\ Copyright (c) 1990, 1993
 .\	The Regents of the University of California.  All rights reserved.
@@ -1066,6 +1066,13 @@ may
 be used.
 The wildcard characters may be escaped with a backslash
 .Pq Ql \e .
+As a consequence of the way values are split into words, matched,
+and then joined, a construct like
+.Dl ${VAR:M*}
+will normalise the inter-word spacing, removing all leading and
+trailing space, and converting multiple consecutive spaces
+to single spaces.
+.
 .It Cm \:N Ns Ar pattern
 This is identical to
 .Ql Cm \:M ,



CVS commit: src/share/man/man4

2013-10-25 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri Oct 25 22:15:02 UTC 2013

Modified Files:
src/share/man/man4: seeprom.4

Log Message:
Typo fixes.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/seeprom.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/seeprom.4
diff -u src/share/man/man4/seeprom.4:1.5 src/share/man/man4/seeprom.4:1.6
--- src/share/man/man4/seeprom.4:1.5	Fri Oct 25 14:23:15 2013
+++ src/share/man/man4/seeprom.4	Fri Oct 25 22:15:02 2013
@@ -1,4 +1,4 @@
-.\	$NetBSD: seeprom.4,v 1.5 2013/10/25 14:23:15 jdc Exp $
+.\	$NetBSD: seeprom.4,v 1.6 2013/10/25 22:15:02 wiz Exp $
 .\
 .\ Copyright (c) 2007 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -37,8 +37,9 @@
 The
 .Nm
 driver provides support for the ATMEL 24-series of I2C EEPROMs, and
-compatables, available from a variety of vendors.  The Philips PCF8582
-is also supported, as compatable with the AT24C02.
+compatibles, available from a variety of vendors.
+The Philips PCF8582 is also supported, as compatible with the
+AT24C02.
 .Pp
 Access to the contents of the memory is through a character device.
 .Pp
@@ -73,7 +74,7 @@ device appeared in
 .Sh BUGS
 AT24C1024 EEPROM's are not supported.
 .Pp
-Software write protection on the AT34Cxx EEPROM's is not supported.
+Software write protection on the AT34Cxx EEPROMs is not supported.
 .Pp
 The
 .Nm



CVS commit: src/share/mk

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 22:16:29 UTC 2013

Modified Files:
src/share/mk: bsd.man.mk

Log Message:
Rename _MNUMBERS to _MSECTIONS.  The manual section identifiers
are not just numbers any more.

Also introduce a new variable, _MSECTIONREGEX, as a regular expression
to match any of the elements of ${_MSECTIONS}.  Use this instead of
\.[1-9][a-z]*.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/share/mk/bsd.man.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.man.mk
diff -u src/share/mk/bsd.man.mk:1.113 src/share/mk/bsd.man.mk:1.114
--- src/share/mk/bsd.man.mk:1.113	Fri Oct 25 10:45:01 2013
+++ src/share/mk/bsd.man.mk	Fri Oct 25 22:16:29 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.man.mk,v 1.113 2013/10/25 10:45:01 apb Exp $
+#	$NetBSD: bsd.man.mk,v 1.114 2013/10/25 22:16:29 apb Exp $
 #	@(#)bsd.man.mk	8.1 (Berkeley) 6/8/93
 
 .include bsd.init.mk
@@ -31,9 +31,10 @@ MANTARGET?=	cat
 
 MAN?=
 MLINKS?=
-_MNUMBERS=	1 2 3 4 5 6 7 8 9
-_MNUMBERS+=	3lua 9lua
-.SUFFIXES:	${_MNUMBERS:@N@.$N@}
+_MSECTIONS=	1 2 3 4 5 6 7 8 9
+_MSECTIONS+=	3lua 9lua
+_MSECTIONREGEX=	${_MSECTIONS:ts|} # e.g. 1|2|3|...
+.SUFFIXES:	${_MSECTIONS:@N@.$N@}
 
 .if ${MKMANZ} == no
 MANCOMPRESS?=
@@ -74,9 +75,9 @@ MANPAGES=	${MAN:C/.$/${MANSUFFIX}/}
 realall:	${MANPAGES}
 .if !empty(MANSUFFIX)
 .NOPATH:	${MANPAGES}
-.SUFFIXES:	${_MNUMBERS:@N@.$N${MANSUFFIX}@}
+.SUFFIXES:	${_MSECTIONS:@N@.$N${MANSUFFIX}@}
 
-${_MNUMBERS:@N@.$N.$N${MANSUFFIX}@}:			# build rule
+${_MSECTIONS:@N@.$N.$N${MANSUFFIX}@}:			# build rule
 	${_MKTARGET_FORMAT}
 	cat ${.IMPSRC} ${MANCOMPRESS}  ${.TARGET}.tmp  mv ${.TARGET}.tmp ${.TARGET}
 .endif # !empty(MANSUFFIX)
@@ -124,14 +125,14 @@ manlinks::	${_t}
 .if (${MKCATPAGES} != no)  (${MKMAN} != no)
 catinstall:	catpages catlinks
 catpages::	# ensure target exists
-CATPAGES=	${MAN:C/\.([1-9][a-z]*)$/.cat\1${MANSUFFIX}/}
+CATPAGES=	${MAN:C/\.(${_MSECTIONREGEX})\$/.cat\1${MANSUFFIX}/}
 
 realall:	${CATPAGES}
 .NOPATH:	${CATPAGES}
-.SUFFIXES:	${_MNUMBERS:@N@.cat$N${MANSUFFIX}@}
+.SUFFIXES:	${_MSECTIONS:@N@.cat$N${MANSUFFIX}@}
 .MADE:	${CATDEPS}
 
-${_MNUMBERS:@N@.$N.cat$N${MANSUFFIX}@}: ${CATDEPS}	# build rule
+${_MSECTIONS:@N@.$N.cat$N${MANSUFFIX}@}: ${CATDEPS}	# build rule
 	${_MKTARGET_FORMAT}
 .if ${MKMANDOC} == yes  !defined(NOMANDOC)
 	if test ${NOMANDOC.${.IMPSRC:T}:tl:Q} != yes; then \
@@ -192,16 +193,16 @@ catlinks::	${_t}
 .if (${MKHTML} != no)  (${MKMAN} != no)		# {
 htmlinstall:	htmlpages htmllinks
 htmlpages::	# ensure target exists
-HTMLPAGES=	${MAN:C/\.([1-9][a-z]*)$/.html\1/}
+HTMLPAGES=	${MAN:C/\.(${_MSECTIONREGEX})\$/.html\1/}
 
 HTMLLINKS=	${MANSUBDIR:?../:}../html%S/%N.html
 HTMLSTYLE=	${MANSUBDIR:?../:}../style.css
 
 realall:	${HTMLPAGES}
 .NOPATH:	${HTMLPAGES}
-.SUFFIXES:	${_MNUMBERS:@N@.html$N@}
+.SUFFIXES:	${_MSECTIONS:@N@.html$N@}
 
-${_MNUMBERS:@N@.$N.html$N@}: # build rule
+${_MSECTIONS:@N@.$N.html$N@}: # build rule
 	${_MKTARGET_FORMAT}
 .if ${MKMANDOC} == yes  !defined(NOMANDOC)
 	if test ${NOMANDOC.${.IMPSRC:T}:tl:Q} != yes; then \



CVS commit: src/share/man/man3

2013-10-25 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri Oct 25 22:19:41 UTC 2013

Modified Files:
src/share/man/man3: attribute.3

Log Message:
Whitespace; better macro.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man3/attribute.3
diff -u src/share/man/man3/attribute.3:1.14 src/share/man/man3/attribute.3:1.15
--- src/share/man/man3/attribute.3:1.14	Fri Oct 25 15:11:21 2013
+++ src/share/man/man3/attribute.3	Fri Oct 25 22:19:41 2013
@@ -1,4 +1,4 @@
-.\ $NetBSD: attribute.3,v 1.14 2013/10/25 15:11:21 apb Exp $
+.\ $NetBSD: attribute.3,v 1.15 2013/10/25 22:19:41 wiz Exp $
 .\
 .\ Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\ All rights reserved.
@@ -85,7 +85,7 @@ code should usually avoid direct use of 
 .Em __attribute__
 or similar syntax provided by specific compilers.
 Instead,
-.Nx Ns 's
+.Nx Ap s
 .In sys/cdefs.h
 header file
 provides several attribute macros in a namespace
@@ -208,7 +208,7 @@ In either the kernel or userland, variab
 is defined, but unused when
 .Dv DEBUG
 is not defined, may be declared with
-.Ic __debugused. 
+.Ic __debugused .
 .Pp
 In the kernel, variables used only in
 .Xr KDASSERT 9



CVS commit: src/share/mk

2013-10-25 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 26 03:26:57 UTC 2013

Modified Files:
src/share/mk: bsd.sys.mk

Log Message:
define a HOST_LINK.cc always.


To generate a diff of this commit:
cvs rdiff -u -r1.227 -r1.228 src/share/mk/bsd.sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.227 src/share/mk/bsd.sys.mk:1.228
--- src/share/mk/bsd.sys.mk:1.227	Thu Sep 12 15:36:16 2013
+++ src/share/mk/bsd.sys.mk	Sat Oct 26 03:26:57 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.227 2013/09/12 15:36:16 joerg Exp $
+#	$NetBSD: bsd.sys.mk,v 1.228 2013/10/26 03:26:57 mrg Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -150,8 +150,9 @@ HOST_CC?=	cc
 HOST_CFLAGS?=	-O
 HOST_COMPILE.c?=${HOST_CC} ${HOST_CFLAGS} ${HOST_CPPFLAGS} -c
 HOST_COMPILE.cc?=  ${HOST_CXX} ${HOST_CXXFLAGS} ${HOST_CPPFLAGS} -c
-.if defined(HOSTPROG_CXX) 
-HOST_LINK.c?=	${HOST_CXX} ${HOST_CXXFLAGS} ${HOST_CPPFLAGS} ${HOST_LDFLAGS}
+HOST_LINK.cc?=  ${HOST_CXX} ${HOST_CXXFLAGS} ${HOST_CPPFLAGS} ${HOST_LDFLAGS}
+.if defined(HOSTPROG_CXX)
+HOST_LINK.c?=   ${HOST_LINK.cc}
 .else
 HOST_LINK.c?=	${HOST_CC} ${HOST_CFLAGS} ${HOST_CPPFLAGS} ${HOST_LDFLAGS}
 .endif



CVS commit: src/etc

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 07:59:55 UTC 2013

Modified Files:
src/etc: man.conf

Log Message:
_build rule for man pages with a .numberletters extension (.3tcl, .3am, 
.3lua, etc.)


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/etc/man.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc/mtree

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 08:15:14 UTC 2013

Modified Files:
src/etc/mtree: NetBSD.dist.base

Log Message:
define a place for Lua man pages


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/etc/mtree/NetBSD.dist.base

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 08:19:46 UTC 2013

Modified Files:
src/etc: man.conf

Log Message:
add 3l/3lua and 9l/9lua man page sections


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/etc/man.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 08:47:30 UTC 2013

Modified Files:
src/sys/sys: cdefs.h

Log Message:
Add comments explaining what __unused and __used are for.


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 08:51:55 UTC 2013

Modified Files:
src/sys/sys: cdefs.h

Log Message:
Add __diagused and __debugused.  These are for marking variables that
are used only in diagnotic or debug code, but unused when NDEBUG is
defined, or DIAGNOSTIC is not defined, or DEBUG is not defined.


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2013-10-25 Thread Mihai Chelaru
Module Name:src
Committed By:   kefren
Date:   Fri Oct 25 09:25:32 UTC 2013

Modified Files:
src/sys/net: if_mpls.c

Log Message:
RFC3032 conformance for Router Alert Label


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/net/if_mpls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 09:46:10 UTC 2013

Modified Files:
src/sys/arch/hp700/dev: pdc.c
src/sys/arch/hp700/hp700: mainbus.c
src/sys/arch/hppa/hppa: trap.c
src/sys/arch/m68k/m68k: bus_dma.c

Log Message:
Change a few __unused to __diagused/__debugused


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/hp700/dev/pdc.c
cvs rdiff -u -r1.84 -r1.85 src/sys/arch/hp700/hp700/mainbus.c
cvs rdiff -u -r1.103 -r1.104 src/sys/arch/hppa/hppa/trap.c
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/m68k/m68k/bus_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/base

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 10:27:08 UTC 2013

Modified Files:
src/distrib/sets/lists/base: mi

Log Message:
add new man page directories


To generate a diff of this commit:
cvs rdiff -u -r1.1043 -r1.1044 src/distrib/sets/lists/base/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/mk

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 10:45:01 UTC 2013

Modified Files:
src/share/mk: bsd.man.mk

Log Message:
Recognise .3lua and .9lua as man page extensions.  Source
files like foo.3lua will result in installed files like
/usr/share/man/man3lua/foo.3lua, /usr/share/man/cat3lua/foo.0,
and /usr/share/man/html3lua/foo.html.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/share/mk/bsd.man.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 11:35:55 UTC 2013

Modified Files:
src/sys/dev/scsipi: cd.c
src/sys/dev/sdmmc: sdmmc_mem.c
src/sys/kern: kern_rndsink.c subr_kcpuset.c subr_vmem.c
src/sys/miscfs/genfs: genfs_io.c
src/sys/net/npf: npf_inet.c
src/sys/ufs/ffs: ffs_wapbl.c

Log Message:
Turn a few __unused into __diagused


To generate a diff of this commit:
cvs rdiff -u -r1.315 -r1.316 src/sys/dev/scsipi/cd.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/sdmmc/sdmmc_mem.c
cvs rdiff -u -r1.6 -r1.7 src/sys/kern/kern_rndsink.c
cvs rdiff -u -r1.9 -r1.10 src/sys/kern/subr_kcpuset.c
cvs rdiff -u -r1.85 -r1.86 src/sys/kern/subr_vmem.c
cvs rdiff -u -r1.57 -r1.58 src/sys/miscfs/genfs/genfs_io.c
cvs rdiff -u -r1.23 -r1.24 src/sys/net/npf/npf_inet.c
cvs rdiff -u -r1.24 -r1.25 src/sys/ufs/ffs/ffs_wapbl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 14:20:11 UTC 2013

Modified Files:
src/sys/uvm: uvm_map.c

Log Message:
Some pmaps may not consume all arguments of pmap_copy()


To generate a diff of this commit:
cvs rdiff -u -r1.324 -r1.325 src/sys/uvm/uvm_map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2013-10-25 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Fri Oct 25 14:23:15 UTC 2013

Modified Files:
src/share/man/man4: seeprom.4
src/sys/dev/i2c: at24cxx.c

Log Message:
Allow the EEPROM size to be specified in the kernel configuration by
using flags.
Add the flags values, and configuration examples to the manual page.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/seeprom.4
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/i2c/at24cxx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/ld/emultempl

2013-10-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Oct 25 14:28:29 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/ld/emultempl: elf32.em

Log Message:
Recursively add DT_NEEDED entries from shared libraries if symbols are
used indirectly. This is more in line with the old GNU ld behavior, but
not exactly the desired semantic.

Patch from Martin Husemann.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/binutils/dist/ld/emultempl/elf32.em

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/uvm

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 14:30:21 UTC 2013

Modified Files:
src/sys/uvm: uvm_page.h

Log Message:
Optimize out VM_PHYSMEM_PTR_SWAP on architectures that have VM_PHYSSEG_MAX = 1
(hard to address two different array entries there w/o invoking undefined
behaviour, and newer compilers complain about it).


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/uvm/uvm_page.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2013-10-25 Thread Julian Coleman
Module Name:src
Committed By:   jdc
Date:   Fri Oct 25 14:32:10 UTC 2013

Modified Files:
src/sys/dev/i2c: at24cxx.c
src/sys/dev/ofw: ofw_subr.c

Log Message:
Add i2c-at34c02 AT34C02 EEPROM.  This is compatible with the AT24C02
EEPROM, apart from software write protection (not supported in our driver).


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/i2c/at24cxx.c
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/ofw/ofw_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 14:41:08 UTC 2013

Modified Files:
src/share/man/man3: attribute.3

Log Message:
Try to make this more compiler-neutral, and give both GCC and LLVM/Clang
as examples.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/vax/vsa

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 14:44:25 UTC 2013

Modified Files:
src/sys/arch/vax/vsa: hdc9224.c

Log Message:
Simplify (and remove now unused variable)


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/vax/vsa/hdc9224.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/ibcs2

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 14:46:35 UTC 2013

Modified Files:
src/sys/compat/ibcs2: ibcs2_exec_coff.c

Log Message:
Remove a variable


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/compat/ibcs2/ibcs2_exec_coff.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 14:46:59 UTC 2013

Modified Files:
src/share/man/man3: attribute.3

Log Message:
Document __diagused and __debugused


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 14:54:25 UTC 2013

Modified Files:
src/sys/sys: cdefs.h

Log Message:
Now that these attributes are documented in attribute(3), shorten
the comments for __used, __unused, __diagused, and __debugused.
Also s/variable/item/ because the attributes may bve applied
to functions.


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3

2013-10-25 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Fri Oct 25 15:11:21 UTC 2013

Modified Files:
src/share/man/man3: attribute.3

Log Message:
Use markup in the descriptions of __diagused and __debugused.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/share/man/man3/attribute.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/bi

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 15:11:32 UTC 2013

Modified Files:
src/sys/dev/bi: if_ni.c

Log Message:
Eliminate unused variable


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/bi/if_ni.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man3lua

2013-10-25 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Fri Oct 25 15:27:03 UTC 2013

Added Files:
src/share/man/man3lua: Makefile intro.3lua

Log Message:
add intro(3lua)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/share/man/man3lua/Makefile \
src/share/man/man3lua/intro.3lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/qbus

2013-10-25 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Oct 25 15:42:50 UTC 2013

Modified Files:
src/sys/dev/qbus: if_qe.c

Log Message:
Fix dmamap cleanup in an error path


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/dev/qbus/if_qe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   >