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

2021-01-30 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Jan 30 09:36:46 UTC 2021

Modified Files:
src/sys/arch/arm/nxp: imx6_clk.c

Log Message:
Pretty print


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/nxp/imx6_clk.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/nxp

2021-01-30 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat Jan 30 09:48:59 UTC 2021

Modified Files:
src/sys/arch/arm/nxp: imx6_usb.c

Log Message:
Don't print undefined interrupt value


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/arm/nxp/imx6_usb.c

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



CVS commit: src/usr.sbin/isibootd

2021-01-30 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Jan 30 11:34:28 UTC 2021

Modified Files:
src/usr.sbin/isibootd: isibootd.c

Log Message:
Fix "Cannot allocate memory" failure on amd64.

BIOCGBLEN ioctl of bpf(4) requires u_int, not size_t.
The problem is reported by Kenji Aoyama.

Should be pulled up to netbsd-9 and netbsd-8.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/isibootd/isibootd.c

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



CVS commit: src/usr.sbin/tprof

2021-01-30 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Jan 30 11:46:25 UTC 2021

Modified Files:
src/usr.sbin/tprof: tprof_analyze.c

Log Message:
Print the path that we failed to open on error


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/tprof/tprof_analyze.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/make/unit-tests

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 12:14:08 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: opt-touch-jobs.mk

Log Message:
make(1): explain test opt-touch-jobs


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/opt-touch-jobs.mk

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



CVS commit: src

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 12:46:38 UTC 2021

Modified Files:
src/distrib/sets/lists/tests: mi
src/usr.bin/make/unit-tests: Makefile jobs-empty-commands.mk
Added Files:
src/usr.bin/make/unit-tests: opt-no-action-touch.exp
opt-no-action-touch.mk

Log Message:
make(1): add test for combining the options -j, -n, -t

This is a preparation for refactoring the complicated condition in
JobStart.


To generate a diff of this commit:
cvs rdiff -u -r1.1013 -r1.1014 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.263 -r1.264 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/jobs-empty-commands.mk
cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/opt-no-action-touch.exp \
src/usr.bin/make/unit-tests/opt-no-action-touch.mk

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



CVS commit: src/usr.bin/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 13:02:54 UTC 2021

Modified Files:
src/usr.bin/make: job.c

Log Message:
make(1): clean up comments in JobSaveCommands and JobStart


To generate a diff of this commit:
cvs rdiff -u -r1.402 -r1.403 src/usr.bin/make/job.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/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 13:12:00 UTC 2021

Modified Files:
src/usr.bin/make: job.c

Log Message:
make(1): clean up JobWriteShellCommands


To generate a diff of this commit:
cvs rdiff -u -r1.403 -r1.404 src/usr.bin/make/job.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/make/unit-tests

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 13:50:18 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: lint.mk

Log Message:
make(1): update documentation of test lint.mk


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/lint.mk

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



CVS commit: src/usr.bin/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 15:48:42 UTC 2021

Modified Files:
src/usr.bin/make: enum.h make.c suff.c var.c

Log Message:
make(1): reduce boilerplate for printing bit sets in debug mode

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/make/enum.h
cvs rdiff -u -r1.235 -r1.236 src/usr.bin/make/make.c
cvs rdiff -u -r1.340 -r1.341 src/usr.bin/make/suff.c
cvs rdiff -u -r1.782 -r1.783 src/usr.bin/make/var.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/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 15:53:55 UTC 2021

Modified Files:
src/usr.bin/make: enum.h

Log Message:
make(1): fix lint warning about empty declarations


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/make/enum.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/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 16:05:45 UTC 2021

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

Log Message:
make(1): run lint with strict bool mode

The make code is not supposed to use constructs such as "if (strcmp(s1,
s2))" or "if (p && *p)", instead all boolean expressions have a form
that would be accepted by a C#, Go or Java compiler as well.  This also
ensures that pre-C99 compilers generate equivalent code as C99
compilers, at least regarding boolean expressions.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/usr.bin/make/Makefile

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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 17:02:58 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_216.c msg_216.exp msg_217.c
msg_217.exp msg_220.c msg_220.exp msg_223.c msg_223.exp msg_224.c
msg_224.exp

Log Message:
lint: add tests that trigger a few more messages


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_216.c \
src/tests/usr.bin/xlint/lint1/msg_216.exp \
src/tests/usr.bin/xlint/lint1/msg_217.c \
src/tests/usr.bin/xlint/lint1/msg_217.exp \
src/tests/usr.bin/xlint/lint1/msg_220.c \
src/tests/usr.bin/xlint/lint1/msg_220.exp \
src/tests/usr.bin/xlint/lint1/msg_223.c \
src/tests/usr.bin/xlint/lint1/msg_223.exp \
src/tests/usr.bin/xlint/lint1/msg_224.c \
src/tests/usr.bin/xlint/lint1/msg_224.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/i2c

2021-01-30 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 30 17:37:25 UTC 2021

Modified Files:
src/sys/dev/i2c: dstemp.c

Log Message:
Add the standard compat string from the Device Tree bindings.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/i2c/dstemp.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-30 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 30 17:38:28 UTC 2021

Modified Files:
src/sys/dev/i2c: rs5c372.c

Log Message:
Add standard compat strings from the Device Tree bindings.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/i2c/rs5c372.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-30 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Sat Jan 30 17:38:57 UTC 2021

Modified Files:
src/sys/dev/i2c: s390.c

Log Message:
Add the standard compat string from the Device Tree bindings.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/i2c/s390.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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 17:56:29 UTC 2021

Modified Files:
src/tests/usr.bin/xlint/lint1: msg_189.c msg_189.exp msg_191.c
msg_191.exp msg_192.c msg_192.exp msg_193.c msg_193.exp msg_194.c
msg_194.exp msg_231.c msg_231.exp
src/usr.bin/xlint/lint1: err.c

Log Message:
lint: remove message 189, add tests for a few other messages

Message 189 would have applied to traditional C and was supposed to
detect assignments between struct and union types.  The corresponding
check had never been implemented though.

Traditional C has been superseded for 30 years now, therefore there is no
point in adding this check retroactively.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_189.c \
src/tests/usr.bin/xlint/lint1/msg_189.exp \
src/tests/usr.bin/xlint/lint1/msg_191.c \
src/tests/usr.bin/xlint/lint1/msg_191.exp \
src/tests/usr.bin/xlint/lint1/msg_192.c \
src/tests/usr.bin/xlint/lint1/msg_192.exp \
src/tests/usr.bin/xlint/lint1/msg_193.c \
src/tests/usr.bin/xlint/lint1/msg_193.exp \
src/tests/usr.bin/xlint/lint1/msg_194.c \
src/tests/usr.bin/xlint/lint1/msg_194.exp \
src/tests/usr.bin/xlint/lint1/msg_231.c \
src/tests/usr.bin/xlint/lint1/msg_231.exp
cvs rdiff -u -r1.69 -r1.70 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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 18:12:07 UTC 2021

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

Log Message:
lint: remove redundant parentheses

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.191 -r1.192 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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 18:14:25 UTC 2021

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

Log Message:
lint: fix type conversion for very large data types

Data types that are 4 GB or larger are an edge case.  Nevertheless,
compute their size correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 18:16:45 UTC 2021

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

Log Message:
lint: rename incompl to is_incomplete

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.63 -r1.64 src/usr.bin/xlint/lint1/externs1.h
cvs rdiff -u -r1.65 -r1.66 src/usr.bin/xlint/lint1/func.c
cvs rdiff -u -r1.64 -r1.65 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.193 -r1.194 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/share/misc

2021-01-30 Thread Jonathan A. Kollasch
Module Name:src
Committed By:   jakllsch
Date:   Sat Jan 30 19:20:44 UTC 2021

Modified Files:
src/share/misc: acronyms.comp

Log Message:
Add a few network interface offload feature initialisms


To generate a diff of this commit:
cvs rdiff -u -r1.319 -r1.320 src/share/misc/acronyms.comp

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



CVS commit: src/usr.bin/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 20:53:29 UTC 2021

Modified Files:
src/usr.bin/make: buf.c buf.h cond.c dir.c for.c main.c parse.c var.c

Log Message:
make(1): split Buf_Destroy into Buf_Done and Buf_DoneData

In all cases except one, the boolean argument to Buf_Destroy was
constant.  Removing that argument by splitting the function into two
separate functions makes the intention clearer on the call site.  It
also removes the possibility for using the return value of Buf_Done,
which would have made no sense.

The function Buf_Done now pairs with Buf_Init, just as in HashTable and
Lst.

Even though Buf_Done is essentially a no-op, it is kept as a function,
both for symmetry with Buf_Init and for clearing the Buffer members
after use (this will be done only in CLEANUP mode, in a follow-up
commit).


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/make/buf.c
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/make/buf.h
cvs rdiff -u -r1.253 -r1.254 src/usr.bin/make/cond.c
cvs rdiff -u -r1.264 -r1.265 src/usr.bin/make/dir.c
cvs rdiff -u -r1.138 -r1.139 src/usr.bin/make/for.c
cvs rdiff -u -r1.517 -r1.518 src/usr.bin/make/main.c
cvs rdiff -u -r1.533 -r1.534 src/usr.bin/make/parse.c
cvs rdiff -u -r1.783 -r1.784 src/usr.bin/make/var.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/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 20:59:29 UTC 2021

Modified Files:
src/usr.bin/make: buf.c

Log Message:
make(1): only clean up the Buffer data in CLEANUP mode

Cleaning up the members is only useful during debugging but not during
use in production.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/usr.bin/make/buf.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/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 21:03:32 UTC 2021

Modified Files:
src/usr.bin/make: buf.c buf.h main.c var.c

Log Message:
make(1): inline Buf_GetAll


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/usr.bin/make/buf.c
cvs rdiff -u -r1.39 -r1.40 src/usr.bin/make/buf.h
cvs rdiff -u -r1.518 -r1.519 src/usr.bin/make/main.c
cvs rdiff -u -r1.784 -r1.785 src/usr.bin/make/var.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/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 21:18:14 UTC 2021

Modified Files:
src/usr.bin/make: buf.c buf.h

Log Message:
make(1): remove __predict_false

The effect (at least on x86_64) is so minimal that it is not worth
cluttering the code.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/make/buf.c
cvs rdiff -u -r1.40 -r1.41 src/usr.bin/make/buf.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

2021-01-30 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Jan 30 21:23:08 UTC 2021

Modified Files:
src/sys/net: files.net
Added Files:
src/sys/net: toeplitz.c toeplitz.h

Log Message:
Add symmetric toeplitz implementation with integration for NICs, from OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/net/files.net
cvs rdiff -u -r0 -r1.1 src/sys/net/toeplitz.c src/sys/net/toeplitz.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/pci

2021-01-30 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Jan 30 21:24:30 UTC 2021

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
Add some more product IDs for mcx(4)


To generate a diff of this commit:
cvs rdiff -u -r1.1423 -r1.1424 src/sys/dev/pci/pcidevs

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



CVS commit: src/sys/dev/pci

2021-01-30 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Jan 30 21:24:46 UTC 2021

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.1409 -r1.1410 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1408 -r1.1409 src/sys/dev/pci/pcidevs_data.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/make

2021-01-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 21:25:10 UTC 2021

Modified Files:
src/usr.bin/make: buf.h main.c var.c

Log Message:
make(1): inline Buf_Len


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/usr.bin/make/buf.h
cvs rdiff -u -r1.519 -r1.520 src/usr.bin/make/main.c
cvs rdiff -u -r1.785 -r1.786 src/usr.bin/make/var.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/pci

2021-01-30 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sat Jan 30 21:26:33 UTC 2021

Modified Files:
src/sys/dev/pci: files.pci if_mcx.c

Log Message:
Sync with OpenBSD r1.98. Lots of improvements including checksum offload,
hardware vlan tagging, and support for multiple receive queues.


To generate a diff of this commit:
cvs rdiff -u -r1.432 -r1.433 src/sys/dev/pci/files.pci
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pci/if_mcx.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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 21:49:08 UTC 2021

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

Log Message:
lint: add type information to warning about troublesome casts

The previous warning text did not mention the actual types that are
involved in the type conversion.  These types can be hard to see from
the source code as soon as macros are involved, and even in plain code,
one would have to follow the declarations, which is an unnecessary
burden.  Lint already has all information about the involved types, so
there is no reason for omitting this crucial information.

Seen in external/mit/lua/dist/src/lvm.c and several other files.
Including the type information in the message immediately makes the
message scarier.

Before: pointer casts may be troublesome
After:  pointer cast from 'pointer to struct TString' to 'pointer to
union GCUnion' may be troublesome


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.194 -r1.195 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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 21:58:04 UTC 2021

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

Log Message:
lint: add type information to message 275

Before: cast discards 'const' from pointer target type
After:  cast discards 'const' from type 'pointer to const char'

Seen in sqlite3.c.


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/usr.bin/xlint/lint1/err.c
cvs rdiff -u -r1.195 -r1.196 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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 22:07:31 UTC 2021

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

Log Message:
lint: add test for message 259 about implicit conversions


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

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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 22:38:54 UTC 2021

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

Log Message:
lint: add test for 129, possibly demonstrating a bug in lint


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/usr.bin/xlint/lint1/msg_129.c \
src/tests/usr.bin/xlint/lint1/msg_129.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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 22:48:50 UTC 2021

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

Log Message:
lint: extract has_side_effect from check_null_effect

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.196 -r1.197 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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 23:05:08 UTC 2021

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

Log Message:
lint: fix wrong 'expression has null effect'


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_129.c \
src/tests/usr.bin/xlint/lint1/msg_129.exp
cvs rdiff -u -r1.197 -r1.198 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-30 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Jan 30 23:15:32 UTC 2021

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

Log Message:
lint: flatten has_side_effect

Since GCC performs tail call optimization, the generated code is
practically the same.

Replace redundant comments with open questions.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.198 -r1.199 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/aarch64

2021-01-30 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Sun Jan 31 04:51:29 UTC 2021

Modified Files:
src/sys/arch/aarch64/aarch64: pmap.c
src/sys/arch/aarch64/include: pmap.h

Log Message:
implement pmap_remove_all().

The size of struct pv_entry has increased, but speed of kernel build has 
improved by about 1%
exec and exit should have been improved.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/arch/aarch64/aarch64/pmap.c
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/aarch64/include/pmap.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/arm

2021-01-30 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Jan 31 05:59:55 UTC 2021

Modified Files:
src/sys/arch/arm/arm: cpufunc.c

Log Message:
One #include "opt_cputypes.h" is enough for anyone


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 src/sys/arch/arm/arm/cpufunc.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/include

2021-01-30 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Jan 31 06:18:50 UTC 2021

Modified Files:
src/sys/arch/arm/include: armreg.h

Log Message:
Fix (unused) PRRR_NOSn #define


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/sys/arch/arm/include/armreg.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/evbarm/conf

2021-01-30 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Jan 31 06:24:40 UTC 2021

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

Log Message:
Remove duplicate EARLYCONS=imx entry (both are commented out)


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

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



CVS commit: src/usr.bin/make

2021-01-30 Thread Simon J. Gerraty
Module Name:src
Committed By:   sjg
Date:   Sun Jan 31 07:07:53 UTC 2021

Modified Files:
src/usr.bin/make: job.c

Log Message:
Reduce unnecessary calls to waitpid

Set a flag when we catch SIGCHLD and
don't call waitpid if it is not set.
Clear it when we call waitpid.


To generate a diff of this commit:
cvs rdiff -u -r1.404 -r1.405 src/usr.bin/make/job.c

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