CVS commit: src/sys/compat/netbsd32

2021-01-17 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Sun Jan 17 10:50:01 UTC 2021

Modified Files:
src/sys/compat/netbsd32: netbsd32_ioctl.c netbsd32_ioctl.h

Log Message:
Handle the SIOCGNBRINFO_IN6 ioctl for compat32.  ndp -a works with
compat32 now.


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/sys/compat/netbsd32/netbsd32_ioctl.c
cvs rdiff -u -r1.76 -r1.77 src/sys/compat/netbsd32/netbsd32_ioctl.h

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 11:28:02 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: decl.c func.c

Log Message:
lint: fix type mismatch for strict bool mode

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.60 -r1.61 src/usr.bin/xlint/lint1/func.c

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



CVS commit: src/tests/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 11:32:06 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict.c
d_c99_bool_strict.exp

Log Message:
lint: demonstrate wrong error message in strict bool mode


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.10 -r1.11 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 11:55:55 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: err.c

Log Message:
lint: rename local variables in lbasename


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/usr.bin/xlint/lint1/err.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 12:23:01 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: op.h tree.c

Log Message:
lint: rename mod_t members


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/xlint/lint1/op.h
cvs rdiff -u -r1.163 -r1.164 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/tests/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 13:15:03 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict.c
d_c99_bool_strict.exp

Log Message:
lint: explain failing test case in strict bool mode


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.11 -r1.12 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp

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



CVS commit: src

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 13:50:33 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict.c
d_c99_bool_strict.exp
src/usr.bin/xlint/common: inittyp.c
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: in strict bool mode, don't treat bool as arithmetic type


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.12 -r1.13 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/xlint/common/inittyp.c
cvs rdiff -u -r1.164 -r1.165 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 14:26:31 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: flatten check_pointer_integer_conversion


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/usr.bin/xlint/lint1/tree.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/arm/fdt

2021-01-17 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 17 14:28:25 UTC 2021

Modified Files:
src/sys/arch/arm/fdt: arm_simplefb.c

Log Message:
fix build without VCONS_DRAW_INTR


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/fdt/arm_simplefb.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 14:37:49 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: extract fallback_symbol from new_name_node

The code was too close to the right margin, causing unnatural line
breaks.  Furthermore it was getting too long and detailed.


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 14:45:21 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_204.c
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: rename build_ampersand to build_address

At that stage of analysis, the ampersand is no longer ambiguous, it has
already been resolved as the address-of operator, instead of the
bitwise-and operator.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_204.c
cvs rdiff -u -r1.167 -r1.168 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 14:50:11 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y emit1.c func.c ops.def tree.c

Log Message:
lint: rename operator AMPER to ADDR

There is no operator called 'ampersand'.  The ampersand sign is merely
the textual representation of both the operator ADDR and the operator
BITAND.


To generate a diff of this commit:
cvs rdiff -u -r1.141 -r1.142 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/xlint/lint1/ops.def
cvs rdiff -u -r1.168 -r1.169 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 14:55:22 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y ops.def tree.c

Log Message:
lint: rename operator STAR to INDIR

C99 calls this operator the "indirection operator".  The word "star"
does not occur in the index of that standard.


To generate a diff of this commit:
cvs rdiff -u -r1.142 -r1.143 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/xlint/lint1/ops.def
cvs rdiff -u -r1.169 -r1.170 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 15:06:54 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y ops.def scan.l tree.c

Log Message:
lint: rename bitwise operators

When there are several variants of the AND operator, both of them should
get a distinguishing prefix, otherwise it's not clear which of the two
possible operators is meant by the plain AND.


To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/xlint/lint1/ops.def
cvs rdiff -u -r1.118 -r1.119 src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.170 -r1.171 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 15:09:56 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: cgram.y scan.l

Log Message:
lint: rename T_AND to T_AMPER

When parsing a text into a C program, the character '&' does not yet
mean 'bitwise and', it could also be the address operator.


To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.119 -r1.120 src/usr.bin/xlint/lint1/scan.l

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



CVS commit: src/sys/dev/wscons

2021-01-17 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 17 15:13:15 UTC 2021

Modified Files:
src/sys/dev/wscons: wsdisplay_vconsvar.h

Log Message:
Add appropriate memory barriers around sc_busy accesses. Fixes an issue
where character cells are sometimes not erased properly on aarch64 at
boot.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/wscons/wsdisplay_vconsvar.h

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 15:24:03 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: decl.c tree.c

Log Message:
lint: replace integer constants with bool constants


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.171 -r1.172 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 15:31:11 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: reduce scope of local variables in check_expr_misc


To generate a diff of this commit:
cvs rdiff -u -r1.172 -r1.173 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 15:40:28 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: externs1.h init.c tree.c

Log Message:
lint: fix return type of conaddr


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.63 -r1.64 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.173 -r1.174 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/tests/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 16:00:16 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_123.c msg_123.exp

Log Message:
lint: add test for ordered comparison between incompatible types


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_123.c \
src/tests/usr.bin/xlint/lint1/msg_123.exp

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 16:01:19 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: clean up typeok_ordered_comparison


To generate a diff of this commit:
cvs rdiff -u -r1.174 -r1.175 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/tests/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 16:16:10 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_163.c msg_163.exp

Log Message:
lint: add test for rvalue ++ after cast


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_163.c \
src/tests/usr.bin/xlint/lint1/msg_163.exp

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



CVS commit: src

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 16:19:54 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_115.c msg_115.exp
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: add test for incrementing const variable


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_115.c \
src/tests/usr.bin/xlint/lint1/msg_115.exp
cvs rdiff -u -r1.175 -r1.176 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 16:25:30 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: decl.c lint1.h tree.c

Log Message:
lint: extend a few message comments


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.57 -r1.58 src/usr.bin/xlint/lint1/lint1.h
cvs rdiff -u -r1.176 -r1.177 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 16:32:36 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: flatten typeok_ordered_comparison


To generate a diff of this commit:
cvs rdiff -u -r1.177 -r1.178 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/sys/dev/wscons

2021-01-17 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 17 16:51:12 UTC 2021

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

Log Message:
The change from config_interrupts to a kthread for VCONS_DRAW_INTR init
unfortunately makes it easier to trigger a race that results in characters
not being erased properly at boot. Work around the original issue a
different way by creating a fake device_t and defer initialization until
we are sure that config_interrupt threads are done. This is not ideal and
the race is still present but fixing this properly would require a rewrite
to make this code MP-safe.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/wscons/wsdisplay_vcons.c

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



CVS commit: src

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 17:14:34 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_126.exp
src/usr.bin/xlint/lint1: err.c tree.c

Log Message:
lint: add type information to message 126


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_126.exp
cvs rdiff -u -r1.68 -r1.69 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.178 -r1.179 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 17:16:47 UTC 2021

Modified Files:
src/usr.bin/xlint/lint1: tree.c

Log Message:
lint: rename typeok_amper to typeok_address

This is about the address-of operator, not about the '&' sign that is
also used for bitwise and.


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 src/usr.bin/xlint/lint1/tree.c

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



CVS commit: src/sys/dev/wscons

2021-01-17 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 17 19:03:32 UTC 2021

Modified Files:
src/sys/dev/wscons: wsdisplay_vcons.c wsdisplay_vconsvar.h

Log Message:
Revert previous and introduce vcons_earlyinit, which is like vcons_init
except it does not setup a vcons_intr thread.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/wscons/wsdisplay_vcons.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/wscons/wsdisplay_vconsvar.h

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



CVS commit: src/sys/arch/arm/fdt

2021-01-17 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 17 19:03:50 UTC 2021

Modified Files:
src/sys/arch/arm/fdt: arm_simplefb.c

Log Message:
Use vcons_earlyinit


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/arm/fdt/arm_simplefb.c

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



CVS commit: src

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 19:32:53 UTC 2021

Modified Files:
src/distrib/sets/lists/base: mi
src/distrib/sets/lists/comp: mi
src/etc/mtree: NetBSD.dist.base
src/usr.bin/xlint/xlint: Makefile

Log Message:
lint: install custom stdbool.h, used for strict bool mode


To generate a diff of this commit:
cvs rdiff -u -r1.1273 -r1.1274 src/distrib/sets/lists/base/mi
cvs rdiff -u -r1.2370 -r1.2371 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.232 -r1.233 src/etc/mtree/NetBSD.dist.base
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/xlint/Makefile

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



CVS commit: src/sys/arch/arm/fdt

2021-01-17 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 17 19:51:43 UTC 2021

Modified Files:
src/sys/arch/arm/fdt: arm_simplefb.c

Log Message:
Fit in 80 columns. NFC.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/fdt/arm_simplefb.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/arm/fdt

2021-01-17 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 17 19:53:05 UTC 2021

Modified Files:
src/sys/arch/arm/fdt: acpi_fdt.c

Log Message:
trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/fdt/acpi_fdt.c

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



CVS commit: src/sys/dev/fdt

2021-01-17 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Jan 17 19:54:23 UTC 2021

Modified Files:
src/sys/dev/fdt: amdccp_fdt.c fixedregulator.c gpioregulator.c
i2cmux_fdt.c

Log Message:
trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/fdt/amdccp_fdt.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/fdt/fixedregulator.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/fdt/gpioregulator.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/fdt/i2cmux_fdt.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/macppc/dev

2021-01-17 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jan 17 21:02:33 UTC 2021

Modified Files:
src/sys/arch/macppc/dev: deq.c lmu.c psoc.c smusat.c

Log Message:
Use designated initializers and a consistent termination style in
compat_data[].


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/macppc/dev/deq.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/macppc/dev/lmu.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/macppc/dev/psoc.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/macppc/dev/smusat.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/sparc64/dev

2021-01-17 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jan 17 21:03:27 UTC 2021

Modified Files:
src/sys/arch/sparc64/dev: pcf8591_envctrl.c

Log Message:
Use designated initializers and a consistent termination style in
compat_data[].


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/sparc64/dev/pcf8591_envctrl.c

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



CVS commit: src/tests/usr.bin/xlint/lint1

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 21:19:06 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict.c
d_c99_bool_strict.exp

Log Message:
lint: add test for macro from system header in strict bool mode

Seen in usr.bin/make/meta.c:1670: FD_ZERO(&readfds).  These macros
cannot be fixed since system headers must not include .
Therefore INT constants should be accepted as controlling expressions as
well.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.13 -r1.14 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp

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



CVS commit: src/sys/dev

2021-01-17 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jan 17 21:42:35 UTC 2021

Modified Files:
src/sys/dev/i2c: ac100.c adadc.c adm1021.c adm1026.c anxedp.c as3722.c
asms.c axp20x.c axp22x.c cwfg.c dbcool.c dstemp.c em3027.c
es8316ac.c fcu.c hytp14.c lm75.c lm87.c max77620.c pca9685.c
pcf8563.c pcf8574.c spdmem_i2c.c ssdfb_i2c.c sy8106a.c tcagpio.c
tcakp.c tda19988.c titemp.c tps65217pmic.c twl4030.c
src/sys/dev/spi: m25p.c oj6sh.c ssdfb_spi.c

Log Message:
Use designated initializers and a consistent termination style in
compat_data[].


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/i2c/ac100.c src/sys/dev/i2c/tda19988.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/i2c/adadc.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/i2c/adm1021.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/adm1026.c src/sys/dev/i2c/max77620.c \
src/sys/dev/i2c/titemp.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/anxedp.c src/sys/dev/i2c/pca9685.c \
src/sys/dev/i2c/twl4030.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/i2c/as3722.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/asms.c src/sys/dev/i2c/cwfg.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/i2c/axp20x.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/axp22x.c src/sys/dev/i2c/dstemp.c \
src/sys/dev/i2c/pcf8574.c
cvs rdiff -u -r1.56 -r1.57 src/sys/dev/i2c/dbcool.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/em3027.c src/sys/dev/i2c/ssdfb_i2c.c \
src/sys/dev/i2c/sy8106a.c src/sys/dev/i2c/tcagpio.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/i2c/es8316ac.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/i2c/fcu.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/hytp14.c
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/i2c/lm75.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/i2c/lm87.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/pcf8563.c src/sys/dev/i2c/tcakp.c
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/i2c/spdmem_i2c.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/i2c/tps65217pmic.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/spi/m25p.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/spi/oj6sh.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/spi/ssdfb_spi.c

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



CVS commit: src/sys/dev/i2c

2021-01-17 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jan 17 21:47:50 UTC 2021

Modified Files:
src/sys/dev/i2c: ihidev.c tsllux.c

Log Message:
Use designated initializers and a consistent termination style in
compat_data[].


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/ihidev.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/tsllux.c

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



CVS commit: src/sys

2021-01-17 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sun Jan 17 21:56:20 UTC 2021

Modified Files:
src/sys/dev/i2c: at24cxx.c axppmic.c ds1307.c fan53555.c m41st84.c
pcagpio.c pcai2cmux.c rkpmic.c
src/sys/sys: device.h

Log Message:
Change the device_compatible_entry struct to have a union of
a scalar value (uintptr_t value) and a pointer value (const void *data),
rather than just "uintptr_t data".  This eliminates the need for drivers
to cast this value, and doesn't lose const'ness of pointers assigned
to the field.

Update all of the users of this field to use the correct set of
designated initialisers for each specific case.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/i2c/at24cxx.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/i2c/axppmic.c
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/i2c/ds1307.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/i2c/fan53555.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/i2c/m41st84.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/pcagpio.c
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/i2c/pcai2cmux.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/i2c/rkpmic.c
cvs rdiff -u -r1.159 -r1.160 src/sys/sys/device.h

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



CVS commit: src/sys/rump/librump/rumpkern

2021-01-17 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Jan 17 22:32:25 UTC 2021

Modified Files:
src/sys/rump/librump/rumpkern: rump.c

Log Message:
rump_component_init() is called recursively, so LIST_FOREACH_SAFE is not
actually safe, since the recursive calls can result in elements other than
the current element being removed from the list.  instead use an explicit
marker element to do safe list traversal.


To generate a diff of this commit:
cvs rdiff -u -r1.352 -r1.353 src/sys/rump/librump/rumpkern/rump.c

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



CVS commit: src

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 23:00:41 UTC 2021

Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/xlint/lint1: Makefile d_c99_bool_strict.c
d_c99_bool_strict.exp t_integration.sh
Added Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict_syshdr.c
d_c99_bool_strict_syshdr.exp

Log Message:
lint: add more tests for system headers in strict bool mode


To generate a diff of this commit:
cvs rdiff -u -r1.1011 -r1.1012 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.29 -r1.30 src/tests/usr.bin/xlint/lint1/Makefile
cvs rdiff -u -r1.16 -r1.17 src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.c
cvs rdiff -u -r1.14 -r1.15 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict.exp
cvs rdiff -u -r0 -r1.1 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.exp
cvs rdiff -u -r1.26 -r1.27 src/tests/usr.bin/xlint/lint1/t_integration.sh

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



CVS commit: src

2021-01-17 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Jan 17 23:04:09 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: d_c99_bool_strict_syshdr.c
d_c99_bool_strict_syshdr.exp
src/usr.bin/xlint/lint1: externs1.h scan.l tree.c

Log Message:
lint: allow system headers to use int as bool, even in strict bool mode


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.c \
src/tests/usr.bin/xlint/lint1/d_c99_bool_strict_syshdr.exp
cvs rdiff -u -r1.57 -r1.58 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.120 -r1.121 src/usr.bin/xlint/lint1/scan.l
cvs rdiff -u -r1.180 -r1.181 src/usr.bin/xlint/lint1/tree.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/evbarm/conf

2021-01-17 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Mon Jan 18 00:32:38 UTC 2021

Modified Files:
src/sys/arch/evbarm/conf: GENERIC.common

Log Message:
disable compat_ossaudio, it's not useful without compat_linux

when running netbsd binaries we use userspace libossaudio instead.

"oh. plz undo then. badly named option" - jmcneill


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/evbarm/conf/GENERIC.common

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



CVS commit: src/sys/arch/aarch64/aarch64

2021-01-17 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jan 18 01:38:44 UTC 2021

Modified Files:
src/sys/arch/aarch64/aarch64: db_machdep.c

Log Message:
Fix build as crash(8); Protect db_md_meminfo_cmd() by defined(_KERNEL).


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/aarch64/aarch64/db_machdep.c

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



CVS commit: src/sys

2021-01-17 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Mon Jan 18 02:35:50 UTC 2021

Modified Files:
src/sys/arch/arm/amlogic: meson_pinctrl.c meson_pwm.c meson_thermal.c
meson_usbctrl.c meson_usbphy.c mesong12_clkc.c mesongx_mmc.c
mesongxbb_clkc.c
src/sys/arch/arm/broadcom: bcm2835_emmc.c
src/sys/arch/arm/fdt: pcihost_fdt.c
src/sys/arch/arm/nvidia: tegra_ahcisata.c tegra_nouveau.c
tegra_pinmux.c tegra_soctherm.c tegra_xusb.c
src/sys/arch/arm/nxp: if_enet_imx.c imx6_pcie.c imx6_spi.c
imx8mq_usbphy.c imx_sdhc.c
src/sys/arch/arm/rockchip: rk3328_iomux.c rk3399_iomux.c rk_gmac.c
rk_i2s.c rk_pwm.c rk_usb.c rk_v1crypto.c rk_vop.c
src/sys/arch/arm/samsung: exynos_gpio.c exynos_pinctrl.c
exynos_pinctrl.h exynos_platform.c exynos_usbdrdphy.c
exynos_usbphy.c exynos_var.h
src/sys/arch/arm/sociox: if_ave.c
src/sys/arch/arm/sunxi: sun4i_a10_ccu.c sun4i_dma.c sun6i_dma.c
sun8i_crypto.c sunxi_can.c sunxi_codec.c sunxi_codec.h
sunxi_de2_ccu.c sunxi_debe.c sunxi_dep.c sunxi_emac.c sunxi_gpio.c
sunxi_hdmi.c sunxi_hdmiphy.c sunxi_i2s.c sunxi_lcdc.c sunxi_lradc.c
sunxi_mixer.c sunxi_mmc.c sunxi_musb.c sunxi_nmi.c sunxi_pwm.c
sunxi_rsb.c sunxi_rtc.c sunxi_sid.c sunxi_tcon.c sunxi_thermal.c
sunxi_ts.c sunxi_twi.c sunxi_usb3phy.c sunxi_usbphy.c sunxi_wdt.c
src/sys/arch/arm/ti: ti_dpll_clock.c ti_gpio.c ti_iic.c ti_omapintc.c
ti_omaptimer.c ti_sdhc.c
src/sys/arch/mips/cavium/dev: octeon_cib.c octeon_intc.c
src/sys/dev/fdt: amdccp_fdt.c arasan_sdhc_fdt.c connector_fdt.c
dwc2_fdt.c dwcmmc_fdt.c i2cmux_fdt.c ns8250_uart.c panel_fdt.c
pinctrl_single.c vmt_fdt.c
src/sys/dev/ofw: ofw_subr.c openfirm.h

Log Message:
Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/amlogic/meson_pinctrl.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/amlogic/meson_pwm.c \
src/sys/arch/arm/amlogic/meson_usbctrl.c \
src/sys/arch/arm/amlogic/mesong12_clkc.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/amlogic/meson_thermal.c \
src/sys/arch/arm/amlogic/meson_usbphy.c \
src/sys/arch/arm/amlogic/mesongxbb_clkc.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/amlogic/mesongx_mmc.c
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/arm/broadcom/bcm2835_emmc.c
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/arm/fdt/pcihost_fdt.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/arm/nvidia/tegra_ahcisata.c
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/arm/nvidia/tegra_nouveau.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/nvidia/tegra_pinmux.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/arm/nvidia/tegra_soctherm.c
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/arm/nvidia/tegra_xusb.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/nxp/if_enet_imx.c \
src/sys/arch/arm/nxp/imx6_pcie.c src/sys/arch/arm/nxp/imx_sdhc.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/nxp/imx6_spi.c
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/nxp/imx8mq_usbphy.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/rockchip/rk3328_iomux.c \
src/sys/arch/arm/rockchip/rk_pwm.c \
src/sys/arch/arm/rockchip/rk_v1crypto.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/rockchip/rk3399_iomux.c \
src/sys/arch/arm/rockchip/rk_vop.c
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/rockchip/rk_gmac.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/rockchip/rk_i2s.c \
src/sys/arch/arm/rockchip/rk_usb.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/arm/samsung/exynos_gpio.c
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/samsung/exynos_pinctrl.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/samsung/exynos_pinctrl.h
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/arm/samsung/exynos_platform.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/samsung/exynos_usbdrdphy.c \
src/sys/arch/arm/samsung/exynos_usbphy.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/arm/samsung/exynos_var.h
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arm/sociox/if_ave.c
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arm/sunxi/sun4i_a10_ccu.c \
src/sys/arch/arm/sunxi/sunxi_mixer.c \
src/sys/arch/arm/sunxi/sunxi_usbphy.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/sunxi/sun4i_dma.c \
src/sys/arch/arm/sunxi/sunxi_can.c src/sys/arch/arm/sunxi/sunxi_hdmiphy.c \
src/sys/arch/arm/sunxi/sunxi_ts.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/sunxi/sun6i_dma.c \
src/sys/arch/arm/sunxi/sunxi_debe.c src/sys/arch/arm/sunxi/sunxi_hdmi.c \
src/sys/arch/arm/sunxi/sunxi_rsb.c
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/arm/sunxi/sun8i_crypto.c
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/arm/sunxi/sunxi_codec.c \
src/sys/arch/arm/sunxi/sunxi_i2s.c src/sys/arch/arm/sunxi/sunxi_lcdc.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/ar

CVS commit: src/sys/arch/powerpc/ibm4xx

2021-01-17 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jan 18 02:43:27 UTC 2021

Modified Files:
src/sys/arch/powerpc/ibm4xx: ibm4xx_machdep.c

Log Message:
white space --> tab


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c

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



CVS commit: src/distrib/amd64/installimage

2021-01-17 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 18 03:35:11 UTC 2021

Modified Files:
src/distrib/amd64/installimage: Makefile

Log Message:
Oooppss we need another size bump


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/distrib/amd64/installimage/Makefile

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



CVS commit: src/sys/arch/powerpc/ibm4xx

2021-01-17 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jan 18 04:30:13 UTC 2021

Modified Files:
src/sys/arch/powerpc/ibm4xx: clock.c

Log Message:
Simplify and correct stale comment; nticks-th hardclock() had no longer
been special since rev 1.24:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/ibm4xx/clock.c#rev1.24

No functional changes intended.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/powerpc/ibm4xx/clock.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/powerpc/ibm4xx

2021-01-17 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Jan 18 04:35:05 UTC 2021

Modified Files:
src/sys/arch/powerpc/ibm4xx: clock.c

Log Message:
Invoke hardclock() and statclock() in the interrupt context.

Otherwise, entropy_enter() is used instead of entropy_enter_intr() in
statclock(), which results in KASSERT() failure.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/powerpc/ibm4xx/clock.c

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



CVS commit: src/tests/lib/libc/sys

2021-01-17 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Mon Jan 18 05:44:21 UTC 2021

Modified Files:
src/tests/lib/libc/sys: t_syscall.c

Log Message:
Check for MAP_FAILED instead of NULL when looking for an error from mmap(2).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/sys/t_syscall.c

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