CVS commit: src/sys/dev/mii

2021-12-27 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Dec 28 06:36:30 UTC 2021 Modified Files: src/sys/dev/mii: makphy.c makphyvar.h Log Message: Reduce the access of the ESSR register. - makphyattach() have a code to detect the Fiber/Copper auto selection feature. Save

CVS commit: src/sys/dev/mii

2021-12-27 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Dec 28 06:36:30 UTC 2021 Modified Files: src/sys/dev/mii: makphy.c makphyvar.h Log Message: Reduce the access of the ESSR register. - makphyattach() have a code to detect the Fiber/Copper auto selection feature. Save

CVS commit: src/sys/dev/mii

2021-12-27 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Dec 28 06:35:37 UTC 2021 Modified Files: src/sys/dev/mii: makphy.c Log Message: QEMU e1000's PHY code doesn't implement register 16. Do workaround. - Marvell 88E1[01]11 (and many other Marvell PHYs) have the Fiber/Copper

CVS commit: src/sys/dev/mii

2021-12-27 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Dec 28 06:34:40 UTC 2021 Modified Files: src/sys/dev/mii: makphy.c Log Message: QEMU e1000's PHY code doesn't implement page 0 register 15. Do workaround. - The BMSR register bit 8 (BMSR_EXTSTAT) denote the existence of

CVS commit: src/sys/dev/mii

2021-12-27 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Dec 28 06:34:40 UTC 2021 Modified Files: src/sys/dev/mii: makphy.c Log Message: QEMU e1000's PHY code doesn't implement page 0 register 15. Do workaround. - The BMSR register bit 8 (BMSR_EXTSTAT) denote the existence of

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 01:27:37 UTC 2021 Modified Files: src/usr.bin/make: parse.c Log Message: make: remove redundant local variable The variable name 'end' suggested pointing to the end of the string, but instead it pointed to the last

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 01:27:37 UTC 2021 Modified Files: src/usr.bin/make: parse.c Log Message: make: remove redundant local variable The variable name 'end' suggested pointing to the end of the string, but instead it pointed to the last

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 01:20:24 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: clean up stylistically No binary change. To generate a diff of this commit: cvs rdiff -u -r1.560 -r1.561 src/usr.bin/make/main.c Please

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 01:20:24 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: clean up stylistically No binary change. To generate a diff of this commit: cvs rdiff -u -r1.560 -r1.561 src/usr.bin/make/main.c Please

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 01:11:36 UTC 2021 Modified Files: src/usr.bin/make: main.c nonints.h Log Message: make: constify cached_realpath No binary change. To generate a diff of this commit: cvs rdiff -u -r1.559 -r1.560

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 01:11:36 UTC 2021 Modified Files: src/usr.bin/make: main.c nonints.h Log Message: make: constify cached_realpath No binary change. To generate a diff of this commit: cvs rdiff -u -r1.559 -r1.560

CVS commit: src/usr.bin/make/unit-tests

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 01:04:04 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: Makefile opt-debug-file.mk Log Message: tests/make: clean up after test 'opt-debug-file' To generate a diff of this commit: cvs rdiff -u -r1.292 -r1.293

CVS commit: src/usr.bin/make/unit-tests

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 01:04:04 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: Makefile opt-debug-file.mk Log Message: tests/make: clean up after test 'opt-debug-file' To generate a diff of this commit: cvs rdiff -u -r1.292 -r1.293

CVS commit: src

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Tue Dec 28 00:56:17 UTC 2021 Modified Files: src/distrib/sets/lists/tests: mi src/usr.bin/make/unit-tests: Makefile Added Files: src/usr.bin/make/unit-tests: varmod-assign-shell.exp

CVS commit: src/sys/arch/i386/stand/lib

2021-12-27 Thread Simon Burge
Module Name:src Committed By: simonb Date: Tue Dec 28 00:37:16 UTC 2021 Modified Files: src/sys/arch/i386/stand/lib: biosdisk.c Log Message: In biosdisk_findpartition() check if part_name isn't NULL before assigning *part_name. Thanks to manu@ for the pointer. To

CVS commit: src/sys/arch/i386/stand/lib

2021-12-27 Thread Simon Burge
Module Name:src Committed By: simonb Date: Tue Dec 28 00:37:16 UTC 2021 Modified Files: src/sys/arch/i386/stand/lib: biosdisk.c Log Message: In biosdisk_findpartition() check if part_name isn't NULL before assigning *part_name. Thanks to manu@ for the pointer. To

Re: CVS commit: src/sys/arch/i386/stand/efiboot

2021-12-27 Thread Simon Burge
Emmanuel Dreyfus wrote: > In src/sys/arch/i386/stand/lib/biosdisk.c > int > biosdisk_findpartition(int biosdev, daddr_t sector, >int *partition, const char **part_name) > { > (...) > /* default ot first partition */ > *partition = 0; > *part_name =

CVS commit: src/sys/arch/i386/stand/lib

2021-12-27 Thread Simon Burge
Module Name:src Committed By: simonb Date: Tue Dec 28 00:34:30 UTC 2021 Modified Files: src/sys/arch/i386/stand/lib: biosdisk.c Log Message: Fix a tyop. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/arch/i386/stand/lib/biosdisk.c Please note

CVS commit: src/sys/arch/i386/stand/lib

2021-12-27 Thread Simon Burge
Module Name:src Committed By: simonb Date: Tue Dec 28 00:34:30 UTC 2021 Modified Files: src/sys/arch/i386/stand/lib: biosdisk.c Log Message: Fix a tyop. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/arch/i386/stand/lib/biosdisk.c Please note

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 23:44:06 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: clean up Cmd_Exec Renaming savederr to saved_errno makes the comment redundant. Group the conditions for setting errfmt, retaining their

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 23:44:06 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: clean up Cmd_Exec Renaming savederr to saved_errno makes the comment redundant. Group the conditions for setting errfmt, retaining their

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 23:19:41 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: reduce indentation of Cmd_Exec No functional change. To generate a diff of this commit: cvs rdiff -u -r1.557 -r1.558

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 23:19:41 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: reduce indentation of Cmd_Exec No functional change. To generate a diff of this commit: cvs rdiff -u -r1.557 -r1.558

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 23:11:55 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: free the names of the makefiles in cleanup mode Since parse.c 1.576 from 2021-12-13 the filenames from opts.makefiles no longer end up in

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 23:11:55 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: free the names of the makefiles in cleanup mode Since parse.c 1.576 from 2021-12-13 the filenames from opts.makefiles no longer end up in

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 23:06:19 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: merge local variables holding the path to the object directory This is a similar pattern as in the other situations where a string is fed

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 23:06:19 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: merge local variables holding the path to the object directory This is a similar pattern as in the other situations where a string is fed

CVS commit: src/sys

2021-12-27 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Mon Dec 27 23:04:20 UTC 2021 Modified Files: src/sys/arch/arm/imx: imx31_intr.h src/sys/arch/hpcsh/dev/hd64465: hd64465reg.h src/sys/dev/i2c: files.i2c Log Message: fix few typos in comments. To generate a diff

CVS commit: src/sys

2021-12-27 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Mon Dec 27 23:04:20 UTC 2021 Modified Files: src/sys/arch/arm/imx: imx31_intr.h src/sys/arch/hpcsh/dev/hd64465: hd64465reg.h src/sys/dev/i2c: files.i2c Log Message: fix few typos in comments. To generate a diff

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 22:57:26 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: prevent out-of-bounds read for debug log file name Even though the name of the debug log file currently only occurs in strings of the form

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 22:57:26 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: prevent out-of-bounds read for debug log file name Even though the name of the debug log file currently only occurs in strings of the form

CVS commit: src/sys/dev

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 22:57:20 UTC 2021 Modified Files: src/sys/dev: cgd.c Log Message: cgd(4): Fix criterion for detach when wedgies are held. The somewhat confusingly named DK_BUSY(dksc, pmask) answers the following question:

CVS commit: src/sys/dev

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 22:57:20 UTC 2021 Modified Files: src/sys/dev: cgd.c Log Message: cgd(4): Fix criterion for detach when wedgies are held. The somewhat confusingly named DK_BUSY(dksc, pmask) answers the following question:

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 22:22:49 UTC 2021 Modified Files: src/usr.bin/make: main.c src/usr.bin/make/unit-tests: opt-debug-file.exp Log Message: make: remove usage message if the debug file cannot be opened Since a non-writable file

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 22:22:49 UTC 2021 Modified Files: src/usr.bin/make: main.c src/usr.bin/make/unit-tests: opt-debug-file.exp Log Message: make: remove usage message if the debug file cannot be opened Since a non-writable file

CVS commit: src/usr.bin/make/unit-tests

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 22:04:21 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: opt-debug-file.exp opt-debug-file.mk Log Message: tests/make: cover a debug log file that cannot be opened To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/make/unit-tests

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 22:04:21 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: opt-debug-file.exp opt-debug-file.mk Log Message: tests/make: cover a debug log file that cannot be opened To generate a diff of this commit: cvs rdiff

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 21:27:25 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: narrow down the return type of ReadMakefile No functional change. To generate a diff of this commit: cvs rdiff -u -r1.552 -r1.553

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 21:27:25 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: narrow down the return type of ReadMakefile No functional change. To generate a diff of this commit: cvs rdiff -u -r1.552 -r1.553

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 21:21:17 UTC 2021 Modified Files: src/usr.bin/make: cond.c main.c parse.c Log Message: make: rename local variables to be simpler No binary change. To generate a diff of this commit: cvs rdiff -u -r1.307 -r1.308

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 21:21:17 UTC 2021 Modified Files: src/usr.bin/make: cond.c main.c parse.c Log Message: make: rename local variables to be simpler No binary change. To generate a diff of this commit: cvs rdiff -u -r1.307 -r1.308

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 20:59:59 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: clean up 'explode' Breaking out of the first 'for' loop was unnecessarily complicated. The call to strlen was not necessary since f

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 20:59:59 UTC 2021 Modified Files: src/usr.bin/make: main.c Log Message: make: clean up 'explode' Breaking out of the first 'for' loop was unnecessarily complicated. The call to strlen was not necessary since f

CVS commit: src/usr.bin/make/unit-tests

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 20:17:35 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: varname-makeflags.mk Log Message: tests/make: test MAKEFLAGS in POSIX mode This test covers the function 'explode' in main.c, the case in which the flags

CVS commit: src/usr.bin/make/unit-tests

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 20:17:35 UTC 2021 Modified Files: src/usr.bin/make/unit-tests: varname-makeflags.mk Log Message: tests/make: test MAKEFLAGS in POSIX mode This test covers the function 'explode' in main.c, the case in which the flags

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 19:06:07 UTC 2021 Modified Files: src/usr.bin/make: hash.c parse.c Log Message: make: replace __func__ with actual strings Make is supposed to be C90-compatible, and __func__ is from C99. No functional change. To

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 19:06:07 UTC 2021 Modified Files: src/usr.bin/make: hash.c parse.c Log Message: make: replace __func__ with actual strings Make is supposed to be C90-compatible, and __func__ is from C99. No functional change. To

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 18:54:19 UTC 2021 Modified Files: src/usr.bin/make: cond.c main.c parse.c src/usr.bin/make/unit-tests: cond-short.mk cond-token-number.exp cond-token-number.mk var-eval-short.exp var-eval-short.mk

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 18:54:19 UTC 2021 Modified Files: src/usr.bin/make: cond.c main.c parse.c src/usr.bin/make/unit-tests: cond-short.mk cond-token-number.exp cond-token-number.mk var-eval-short.exp var-eval-short.mk

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 18:26:22 UTC 2021 Modified Files: src/usr.bin/make: compat.c job.c main.c make.c make.h parse.c Log Message: make: remove unnecessary words from command line options Several years ago, the command line options were

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 18:26:22 UTC 2021 Modified Files: src/usr.bin/make: compat.c job.c main.c make.c make.h parse.c Log Message: make: remove unnecessary words from command line options Several years ago, the command line options were

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 17:18:57 UTC 2021 Modified Files: src/usr.bin/make: compat.c job.c main.c nonints.h Log Message: make: rename eunlink to unlink_file The name eunlink suggested a relation with the similarly named functions emalloc or

CVS commit: src/usr.bin/make

2021-12-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Dec 27 17:18:57 UTC 2021 Modified Files: src/usr.bin/make: compat.c job.c main.c nonints.h Log Message: make: rename eunlink to unlink_file The name eunlink suggested a relation with the similarly named functions emalloc or

CVS commit: src/sys/external/bsd/common/linux

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 14:57:30 UTC 2021 Modified Files: src/sys/external/bsd/common/linux: linux_tasklet.c Log Message: linux: Fix copypasto in comment. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 13:29:15 UTC 2021 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: i915_request.c Log Message: i915: Fix timeout return value of i915_request_wait. For some reason this returns ETIME, not ETIMEDOUT or 0

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 13:29:04 UTC 2021 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: i915_request.c Log Message: i915: Factor a little out of #ifdef NetBSD. Doesn't really reduce diff but slightly reduces danger of bad

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 13:29:04 UTC 2021 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: i915_request.c Log Message: i915: Factor a little out of #ifdef NetBSD. Doesn't really reduce diff but slightly reduces danger of bad

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 13:28:52 UTC 2021 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: i915_request.c Log Message: i915: Omit diff now that TASK_INTERRUPTIBLE is defined. To generate a diff of this commit: cvs rdiff -u -r1.13

CVS commit: src/sys/external/bsd/drm2/include/linux

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 13:28:41 UTC 2021 Modified Files: src/sys/external/bsd/drm2/include/linux: sched.h Log Message: drm: Define TASK_INTERRUPTIBLE so we can reduce diffs a little. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/i386/stand/efiboot

2021-12-27 Thread Simon Burge
Module Name:src Committed By: simonb Date: Mon Dec 27 12:19:27 UTC 2021 Modified Files: src/sys/arch/i386/stand/efiboot: devopen.c Log Message: Revert rev 1.12 of devopen.c. This had the unintented side effect of breaking opens on non-root filesystems (eg trying to

CVS commit: src/sys/arch/i386/stand/efiboot

2021-12-27 Thread Simon Burge
Module Name:src Committed By: simonb Date: Mon Dec 27 12:19:27 UTC 2021 Modified Files: src/sys/arch/i386/stand/efiboot: devopen.c Log Message: Revert rev 1.12 of devopen.c. This had the unintented side effect of breaking opens on non-root filesystems (eg trying to

Re: CVS commit: src/sys/arch/i386/stand/efiboot

2021-12-27 Thread Simon Burge
Emmanuel Dreyfus wrote: > On Mon, Dec 27, 2021 at 01:08:15PM +1100, Simon Burge wrote: > > What crash did this fix? All the use of part_name by the > > called functions should check if it is NULL before trying > > to assign anything to *part_name. > > I do not recall the details now, but I had a

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 11:06:49 UTC 2021 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: intel_csr.c Log Message: i915: Disable message citing firmware URL. Not very helpful for users; helpful only for developers maintaining the

CVS commit: src/sys/external/bsd/common/include/asm

2021-12-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Dec 27 10:41:57 UTC 2021 Modified Files: src/sys/external/bsd/common/include/asm: barrier.h Log Message: linux: Define mb/wmb/rmb as mfence/sfence/lfence on i386 too. Not the same as membar_*; drm uses mb to order special