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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jan 5 07:37:41 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: print.c Log Message: lint: add missing strings for operators It's difficult to keep these lists in sync when they are spread over several files. The lists

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jan 5 00:22:05 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: func.c Log Message: lint: clean up comments To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/usr.bin/xlint/lint1/func.c Please note that

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jan 5 00:17:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: extract code for determining possible precedence confusion The function check_precedence_confusion was pretty long, and right in the

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Jan 5 00:02:52 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: remove unused TBUILTIN_SIZEOF from the C grammar This token is not generated by the lexer, and it was misspelled anyway. All other

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 23:58:19 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: op.h tree.c Log Message: lint: precedence confusion is only possible with binary operators No functional change. The operator table in ops.def states that

CVS commit: src

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 23:50:47 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_169.exp src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix bug in "precedence confusion possible [169]" To generate a diff of this

CVS commit: src

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 23:47:27 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_169.c msg_169.exp src/usr.bin/xlint/lint1: tree.c Log Message: lint: document and demonstrate the bug in check_precedence_confusion It took

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 23:17:04 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: add more rationale for removing effect-less code To generate a diff of this commit: cvs rdiff -u -r1.129 -r1.130

CVS commit: src

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 22:41:56 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_169.c src/usr.bin/xlint/lint1: tree.c Log Message: lint: finish the comments in check_precedence_confusion To generate a diff of this

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 22:33:47 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: replace LERROR with lint_assert in check_expr_misc This reduces the visual clutter. There is no reason for anyone to modify the

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 22:29:01 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: mem1.c Log Message: lint: reduce comment for xgetblk to the actually interesting part To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22

CVS commit: src/usr.bin/xlint

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 22:26:51 UTC 2021 Modified Files: src/usr.bin/xlint/common: tyname.c src/usr.bin/xlint/lint1: decl.c emit1.c func.c lint1.h main1.c scan.l tree.c src/usr.bin/xlint/lint2: chk.c main2.c read.c

CVS commit: src/sys/dev/i2c

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 22:09:35 UTC 2021 Modified Files: src/sys/dev/i2c: files.i2c Added Files: src/sys/dev/i2c: tsllux.c Removed Files: src/sys/dev/i2c: tsl256x.c Log Message: Rename tsl256x.c -> tsllux.c. No other

CVS commit: src/sys/dev/i2c

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 21:59:49 UTC 2021 Modified Files: src/sys/dev/i2c: tsl256x.c tsl256xreg.h Log Message: Tweak register bit names, in preparation for supporting younger siblings of this chip. To generate a diff of this commit: cvs

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 21:30:07 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: fix bugs in dprint_node in debug mode (since today) The node was dereferenced before the null check. GCC 5.5 didn't warn about this

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 21:17:31 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: move dprint_node to the top of the file It now resides right below dumpnode, which implements the same idea but uses a fixed-size

CVS commit: src/share/man/man9

2021-01-04 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Mon Jan 4 18:27:47 UTC 2021 Modified Files: src/share/man/man9: malloc.9 Log Message: Better grammar. To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/share/man/man9/malloc.9 Please note that diffs are not

CVS commit: src/sys/dev/ic

2021-01-04 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jan 4 18:27:00 UTC 2021 Modified Files: src/sys/dev/ic: tpm.c tpmreg.h tpmvar.h Log Message: dev/ic/tpm: Take advantage of entropy source if available. If the tpm is deactivated, though, detach the entropy source so we

CVS commit: src/sys/dev/ic

2021-01-04 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jan 4 18:26:08 UTC 2021 Modified Files: src/sys/dev/ic: tpm.c Log Message: dev/ic/tpm: Add missing line break in attach output. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/dev/ic/tpm.c Please

CVS commit: src/sys/arch/atari/isa

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 18:23:10 UTC 2021 Modified Files: src/sys/arch/atari/isa: isa_dma.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/atari/isa/isa_dma.c Please note that

CVS commit: src/sys/dev/ic

2021-01-04 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Jan 4 18:22:19 UTC 2021 Modified Files: src/sys/dev/ic: tpm.c tpmreg.h tpmvar.h Log Message: dev/ic/tpm: Tidy up headers. - Add include guards. - Add necessary includes. - Sort includes. - Use _BYTE_ORDER, not

CVS commit: src/sys/arch/mips/sibyte/dev

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 18:19:53 UTC 2021 Modified Files: src/sys/arch/mips/sibyte/dev: sbjcn.c sbscn.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sys/arch/mips/sibyte/dev/sbjcn.c

CVS commit: src/sys/arch/mips/ralink

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 18:14:38 UTC 2021 Modified Files: src/sys/arch/mips/ralink: ralink_intr.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/mips/ralink/ralink_intr.c Please

CVS commit: src/sys/arch/mips/adm5120

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 18:11:26 UTC 2021 Modified Files: src/sys/arch/mips/adm5120: adm5120_intr.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/mips/adm5120/adm5120_intr.c

CVS commit: src/sys/arch/mips/mips

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 18:09:01 UTC 2021 Modified Files: src/sys/arch/mips/mips: bus_dma.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/arch/mips/mips/bus_dma.c Please note that

CVS commit: src/sys/arch/mips/atheros

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 17:42:29 UTC 2021 Modified Files: src/sys/arch/mips/atheros: ar_intr.c src/sys/arch/mips/atheros/dev: arspi.c athflash.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/mips/alchemy

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 17:35:12 UTC 2021 Modified Files: src/sys/arch/mips/alchemy: au_himem_space.c au_icu.c au_wired_space.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16

CVS commit: src/sys/arch/mips/cavium/dev

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 17:22:59 UTC 2021 Modified Files: src/sys/arch/mips/cavium/dev: octeon_asx.c octeon_fpa.c octeon_gmx.c octeon_ipd.c octeon_pip.c octeon_pko.c Log Message: malloc(9) -> kmem(9) To generate a diff of this

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

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 17:06:21 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: in debug mode, print node tree for precedence >From the code alone, it is too difficult to see how the various internal operators

CVS commit: src/sys/dev

2021-01-04 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Mon Jan 4 16:17:26 UTC 2021 Modified Files: src/sys/dev: vnd.c Log Message: Fix calculation of cylinder count from medium size. Pullups needed. To generate a diff of this commit: cvs rdiff -u -r1.277 -r1.278 src/sys/dev/vnd.c

CVS commit: src/sys/arch/ibmnws/ibmnws

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 15:56:24 UTC 2021 Modified Files: src/sys/arch/ibmnws/ibmnws: mainbus.c Log Message: malloc(9) -> kmem(9) To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/ibmnws/ibmnws/mainbus.c Please

CVS commit: src

2021-01-04 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Jan 4 15:52:51 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_169.c msg_169.exp src/usr.bin/xlint/lint1: tree.c Log Message: lint: add test for "precedence confusion possible [169]" To generate a diff

CVS commit: src/sys/arch/sandpoint/sandpoint

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 15:36:22 UTC 2021 Modified Files: src/sys/arch/sandpoint/sandpoint: satmgr.c Log Message: Use sel{record,remove}_knote(). To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29

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

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 15:29:34 UTC 2021 Modified Files: src/sys/arch/sparc/dev: tctrl.c Log Message: Use sel{record,remove}_knote(). To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/sys/arch/sparc/dev/tctrl.c Please

CVS commit: src/sys/dev/ic

2021-01-04 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Jan 4 15:14:32 UTC 2021 Modified Files: src/sys/dev/ic: wdc.c Log Message: KNF To generate a diff of this commit: cvs rdiff -u -r1.305 -r1.306 src/sys/dev/ic/wdc.c Please note that diffs are not public domain; they are

CVS commit: src/sys

2021-01-04 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Jan 4 15:13:50 UTC 2021 Modified Files: src/sys/arch/arm/xscale: pxa2x0_intr.c src/sys/arch/sparc64/doc: TODO src/sys/dev/ic: wdc.c Log Message: Trailing whitespace To generate a diff of this commit: cvs

CVS commit: src/sys

2021-01-04 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Jan 4 15:13:06 UTC 2021 Modified Files: src/sys/arch/arm/xscale: pxa2x0_intr.c src/sys/arch/sparc64/doc: TODO src/sys/dev/ic: wdc.c Log Message: Spell interrupts correctly To generate a diff of this commit:

CVS commit: src/sys/arch/sparc64

2021-01-04 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Mon Jan 4 14:48:52 UTC 2021 Modified Files: src/sys/arch/sparc64/dev: cbus.c central.c ebus.c ebus_mainbus.c fdc.c fhc.c pckbc_ebus.c psycho.c pyro.c sbus.c upa.c vbus.c vpci.c vrtc.c