Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (13m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-09 22:51:57 UTC Now

2021-05-10 12:29:12 UTC MAIN commitmail json YAML

2021-05-09 23:26:53 UTC thorpej-i2c-spi-conf commitmail json YAML

Don't include fdtvar.h directly here.

(thorpej)

2021-05-09 23:19:10 UTC thorpej-i2c-spi-conf commitmail json YAML

Revert most of previous -- some consumers of this file still have
ACPI-specific requirements.

(thorpej)

2021-05-09 22:36:35 UTC thorpej-i2c-spi-conf commitmail json YAML

2021-05-09 22:29:54 UTC thorpej-i2c-spi-conf commitmail json YAML

No need to include smuiicvar.h.

(thorpej)

2021-05-09 21:37:04 UTC thorpej-i2c-spi-conf commitmail json YAML

Adapt the smu driver to the new i2c device enumeration method.  While
here, collapse the "smuiic" driver into the base "smu" driver; it was
superfluous given how the rest of the "smu" driver is structured.

(thorpej)

2021-05-09 16:58:57 UTC MAIN commitmail json YAML

fix casts and types to make it compile with clang

(christos)

2021-05-09 16:58:19 UTC MAIN commitmail json YAML

make this compile again under clang:
- factor out duplicated code
- add casts
- plug memory leak

(christos)

2021-05-09 16:55:36 UTC MAIN commitmail json YAML

make xt_error() dead for the benefit of clang

(christos)

2021-05-09 16:13:39 UTC MAIN commitmail json YAML

Use __noreturn__ instead of noreturn because <stdnoreturn.h> #defines
noreturn _Noreturn and this gives clang a heartache.

(christos)

2021-05-09 15:40:27 UTC MAIN commitmail json YAML

fix clang build (on_signal is dead)

(christos)

2021-05-09 12:51:45 UTC MAIN commitmail json YAML

ossaudio: Set handle on OSSv4 mixer devices

(nia)

2021-05-09 11:28:25 UTC MAIN commitmail json YAML

libossaudio: Various OSSv4 fixes to allow reference programs to compile

- Define various new AFMT_*. These are not returned as supported
  formats by SNDCTL_DSP_GETFMTS, because it would be very silly to
  have Vorbis in the kernel.

- Implement PLAYTGT and RECSRC. For each NetBSD audio device
  we only return one playback and recording source, "primary".

- Return preferred channel configuration in capabilities.
  Either DSP_CH_STEREO, DSP_CH_MONO, or DSP_CH_MULTI
  depending on the current hardware format.

- SNDCTL_DSP_HALT_* simply flushes the audio device.

(nia)

2021-05-09 11:06:20 UTC MAIN commitmail json YAML

Do not allow editing of start/size/fs-type for partitions that
are already carved in stone (e.g. defined in an outer MBR while we are
editing the inner disklabel).

(martin)

2021-05-09 10:39:01 UTC MAIN commitmail json YAML

Keep MSDOS partition size and subtype consistent - some u-boot are picky.

(martin)

2021-05-09 10:37:49 UTC MAIN commitmail json YAML

For FS_MSDOS report the MBR type as fs_sub_type.

(martin)

2021-05-09 07:10:09 UTC netbsd-9 commitmail json YAML

2021-05-09 07:09:27 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by dolecek in ticket #1270):

sys/dev/pci/siisata_pci.c: revision 1.21

disable MSI for SiI3124 - interrupts don't seem to work on this old board
when MSI is enabled, maybe because it's behind a PCI bridge

PR kern/55115 by John D. Baker

(martin)

2021-05-08 22:39:41 UTC thorpej-i2c-spi-conf commitmail json YAML

Adapt the pmu driver to the new i2c device enumeration mechanism.  This
follows the OpenFirmware bindings for the most part, but has the i2c
addresses of children shifted left one bit as it would appear on the
wire (for the r/w bit).

(thorpej)

2021-05-08 21:58:12 UTC thorpej-i2c-spi-conf commitmail json YAML

Adapt the Keywest i2c controller driver to the new i2c device enumeration
mechanism.  We need to provide our own enumeration callback because these
controllers do not use the standard OpenFirmware bindings.

The Keywest controller supports 2 physical i2c busses on a single controller,
so we logically split it up that way now, rather than encoding the channel in
in the i2c address as was done previously.

Different systems have different I2C device tree topologies.

Some systems use a scheme like this:

/u3@0,f8000000/i2c@f8001000/temp-monitor@98
/u3@0,f8000000/i2c@f8001000/fan@15e

Here, we see the channel encoded in bit #8 of the address.

Other systems use a scheme like this:

/ht@0,f2000000/pci@4000,0,0/mac-io@7/i2c@18000/i2c-bus@0
/ht@0,f2000000/pci@4000,0,0/mac-io@7/i2c@18000/i2c-bus@0/codec@8c

/u4@0,f8000000/i2c@f8001000/i2c-bus@1
/u4@0,f8000000/i2c@f8001000/i2c-bus@1/temp-monitor@94

Here, a separate device tree node represents the channel.
Note that in BOTH cases, the I2C address of the devices are
shifted left by 1 (as it would be on the wire to leave room
for the read/write bit).

(thorpej)

2021-05-08 19:36:28 UTC MAIN commitmail json YAML

Disable again initfini; breaks some archs and not worth dealing with when
we have both gcc's active in the tree.

(christos)

2021-05-08 16:56:10 UTC thorpej-i2c-spi-conf commitmail json YAML

ia->ia_cookie -> devhandle_to_of(device_handle(self))

(thorpej)

2021-05-08 16:46:43 UTC thorpej-i2c-spi-conf commitmail json YAML

2021-05-08 15:51:31 UTC thorpej-i2c-spi-conf commitmail json YAML

2021-05-08 15:44:12 UTC thorpej-i2c-spi-conf commitmail json YAML

Rather than using the "cookie" from the i2c_attach_args, use the
device handle that's already associated with our device_t.

(thorpej)

2021-05-08 15:10:44 UTC thorpej-i2c-spi-conf commitmail json YAML

Use device_enumerate_children() to eliminate all of the ACPI-specific
code and most of the FDT-specific code from the iicmux driver.

(thorpej)

2021-05-08 14:49:14 UTC MAIN commitmail json YAML

aiomixer: bound the drawn area to the screen size, rather than replacing it

(nia)

2021-05-08 14:38:26 UTC MAIN commitmail json YAML

aiomixer: do not adjust class widget pad height, draw to end of screen

ncurses refuses to paint pads if the height argument extends beyond
the bounds of the screen. it's probably not good for our curses either.

libcurses wresize() refuses to resize a pad beyond the bounds of the
screen even if it was created with a larger size. this is probably
a bug.

found by uwe

(nia)

2021-05-08 14:23:15 UTC thorpej-i2c-spi-conf commitmail json YAML

- Add an optional bus number to i2cbus_attach_args, and a corresponding
  optional "bus" locator to the i2cbus interface attribute.
- Add a iicbus_print_multi() routine, which is like iicbus_print(),
  but also prints the bus number.
- Use these new features in the iicmux driver rather than winging it.

(thorpej)

2021-05-08 14:11:37 UTC MAIN commitmail json YAML

Also include terminfo for platforms with static libraries (e.g. sun2). From uwe/nia.

(cjep)

2021-05-08 13:28:45 UTC MAIN commitmail json YAML

aiomixer: fix background banding with slightly older libcurses

reported by uwe

(nia)

2021-05-08 13:10:29 UTC MAIN commitmail json YAML

2021-05-08 13:09:58 UTC MAIN commitmail json YAML

2021-05-08 13:03:41 UTC MAIN commitmail json YAML

aiomixer: try to make sure the first pane is always "outputs"

In QEMU with an ac97 audio device, "inputs" is the first pane,
which is significantly less important especially when you don't
have input in QEMU most of the time.

(nia)

2021-05-08 12:53:15 UTC MAIN commitmail json YAML

aiomixer: Fix sorting of ac97 controls

(nia)

2021-05-08 12:45:04 UTC MAIN commitmail json YAML

doc: imported aiomixer

(nia)

2021-05-08 12:27:21 UTC MAIN commitmail json YAML

mention gdb hack discovered by rin.

(christos)

2021-05-08 12:23:47 UTC MAIN commitmail json YAML

PR/56153: Rin Okuyama: alpha miscompiles malloca() macro.

(christos)

2021-05-08 11:40:02 UTC thorpej-i2c-spi-conf commitmail json YAML

Children of the "cuda" i2c controller don't appear in the OF device tree,
so we need to supply our own "i2c-enumerate-devices" method.

(thorpej)

2021-05-08 11:34:38 UTC thorpej-i2c-spi-conf commitmail json YAML

iic_print_direct(): In the "not configured" case, parenthetically print
the first element of the compat list, if we got a compat list.

(thorpej)

2021-05-08 10:29:10 UTC netbsd-9 commitmail json YAML

2021-05-08 10:27:47 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1269):

etc/etc.mac68k/ttys: revision 1.21

Turn on constty instead of ttyE0 as done for majority of other ports
in order to make both framebuffer and serial consoles happy.

Also, change TERM from vt220 to vt100 for console and constty
in accordance with other ports.

(martin)

2021-05-08 10:08:33 UTC MAIN commitmail json YAML

Turn on constty instead of ttyE0 as done for majority of other ports
in order to make both framebuffer and serial consoles happy.

Also, change TERM from vt220 to vt100 for console and constty
in accordance with other ports.

(rin)

2021-05-08 09:23:37 UTC MAIN commitmail json YAML

Add missing aiomixer.debug to fix debug build.

XXX
I *really* hope someone(TM) invent better replacement of
distrib/sets/lists...

(rin)

2021-05-08 09:03:30 UTC MAIN commitmail json YAML

Catch up with this commit:

http://www.nerv.org/netbsd/?q=id:20210507T165558Z.d4aba9e0e053181f2a98ee4ee43012b50949921b

by which per slot tcs_used flag was obsoleted.

No need to initialize __BIT(0) of sc_slots_used here; it is zero anyway
before calling tcattach().

(rin)

2021-05-08 04:29:07 UTC MAIN commitmail json YAML

avoid accessing stack garbage.

on arm64eb resuming vi(1) would often crash.  in makech(), the 'csp'
variable is either set to current window data, or a local stack
variable's address '&blank'.  the window data has many lines of info
stored, and 'csp++' is used per line here.  unfortunately, a case
existed where 'csp++' operated on csp initialised from '&blank' which
eventually crashes when, on my display with 160 columns and 'csp + 155'
exceeds the mapped stack and crashes.

match the '!_cursesi_screen->curwin' conditional that initialises csp,
and avoid csp++ here.  assert() that csp != &blank in both places that
modify csp.

thanks to jdc@ and mlelstv@.

XXX: possibly also should avoid the putch() here as well.

(mrg)

2021-05-08 02:44:22 UTC thorpej-i2c-spi-conf commitmail json YAML

2021-05-08 00:27:02 UTC MAIN commitmail json YAML

2021-05-08 00:08:43 UTC MAIN commitmail json YAML

2021-05-07 23:00:04 UTC MAIN commitmail json YAML

enable initfini-array since all platforms support it.

(christos)

2021-05-07 22:46:11 UTC MAIN commitmail json YAML

2021-05-07 21:51:21 UTC MAIN commitmail json YAML

2021-05-07 19:37:03 UTC MAIN commitmail json YAML

aiomixer: display the unit type for value controls

(nia)

2021-05-07 17:48:48 UTC netbsd-8 commitmail json YAML

2021-05-07 17:47:30 UTC MAIN commitmail json YAML

aiomixer: use standout for headings, avoid banding in header

fixed a minor rendering problem when compiled against ncurses.

based mostly on feedback from uwe.

(nia)

2021-05-07 17:40:31 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #1678):

bin/pax/options.c: revision 1.119
usr.bin/config/scan.l: revision 1.32
usr.bin/make/main.c: revision 1.274
bin/pax/extern.h: revision 1.60
usr.bin/config/defs.h: revision 1.106
usr.bin/make/make.h: revision 1.105
sbin/newfs_udf/udf_create.c: revision 1.27 (patch)
sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch)
usr.bin/config/main.c: revision 1.100
usr.sbin/installboot/Makefile: revisions 1.53,1.54 (patch)
usr.sbin/installboot/installboot.h: revision 1.41 (patch)
usr.sbin/installboot/machines.c: revisisons 1.41,1.42 (patch)

Avoid depending on common symbols.

(martin)

2021-05-07 16:58:34 UTC MAIN commitmail json YAML

2021-05-07 16:55:58 UTC MAIN commitmail json YAML

2021-05-07 16:29:24 UTC MAIN commitmail json YAML

2021-05-07 14:52:59 UTC MAIN commitmail json YAML

More test notes from using build.sh against non NetBSD platforms.

(cjep)

2021-05-07 12:19:48 UTC MAIN commitmail json YAML

For GCC10, add -Wno-unused-result for alloca(0) here and there.

(rin)

2021-05-07 11:11:11 UTC MAIN commitmail json YAML

Don't free things twice (Kengo Nakahara)

(christos)

2021-05-07 09:54:43 UTC MAIN commitmail json YAML

Track the number of cdev and bdev opens and fail dm_detach()
on open devices unless detach is forced.

PR kern/54969 (Disk cache is no longer flushed on shutdown)

(hannken)

2021-05-07 09:53:39 UTC MAIN commitmail json YAML

Make sure the unit number of device-mapper devices matches their minor number.

(hannken)

2021-05-07 09:15:52 UTC MAIN commitmail json YAML

Print the error value of ixgbe_reset_hw() for debugging.

(msaitoh)

2021-05-06 16:15:33 UTC MAIN commitmail json YAML

PR/56148: Andreas Gustafsson: lib/libc/stdio/t_printf:snprintf_float test
randomly fails.
Add checks to all places where lshift is called because it can return NULL

(christos)

2021-05-06 13:23:36 UTC MAIN commitmail json YAML

2021-05-06 13:07:00 UTC MAIN commitmail json YAML

Unhook elf2bb and txlt as they are built as tools.

(rin)

2021-05-06 07:32:16 UTC MAIN commitmail json YAML

Update with information from recent testing of different Linux variants
on AWS. Also FreeBSD 13.

(cjep)

2021-05-06 06:52:19 UTC MAIN commitmail json YAML

2021-05-06 06:18:16 UTC MAIN commitmail json YAML

do not clear destination address if there is no saved address
and add initialization of saved_hisaddr for safety

0.0.0.0 was sometimes configured to destination address when
ipcp close was occurred before ipcp tlu.
Following messages will be appeared when the issue is encountered and
debug for pppoe(4) is enabled.

tc-so:[    1.890005] pppoe0: ipcp close(starting)
(snip)
tc-so:[    1.890005] pppoe0: ipcp_open(): no IP interface

(yamaguchi)

2021-05-06 02:05:09 UTC MAIN commitmail json YAML

Added m_freem for safety

pointed out by knakahara@, thanks.

(yamaguchi)

2021-05-06 01:09:43 UTC MAIN commitmail json YAML

Added missing waiting for DAD completion

(yamaguchi)

2021-05-05 20:58:03 UTC MAIN commitmail json YAML

2021-05-05 19:30:51 UTC MAIN commitmail json YAML

disable MSI for SiI3124 - interrupts don't seem to work on this old board
when MSI is enabled, maybe because it's behind a PCI bridge

PR kern/55115 by John D. Baker

(jdolecek)

2021-05-05 17:03:08 UTC netbsd-9 commitmail json YAML

2021-05-05 17:01:41 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nia in ticket #1268):

sys/dev/audio/audio.c: revision 1.95

audio: Only score hardware formats by channel count at count<=2

Scoring by channel count makes sense when you are using hardware that
supports mono and stereo formats. However, if your hardware also supports
surround formats, defaulting to those might be confusing. So, don't
prefer them.

Problem reported and fix tested by tcmart14 with a 2015 model Macbook Pro.

(martin)

2021-05-05 15:39:39 UTC MAIN commitmail json YAML

Remove unneeded Makefile dependency for things which have long since
used opt_*.h headers.

(thorpej)

2021-05-05 15:36:17 UTC MAIN commitmail json YAML

2021-05-05 15:34:54 UTC MAIN commitmail json YAML

Disable preemption around the main work of badaddr_read() and delay();
they both use "current CPU" resources.

(thorpej)

2021-05-05 14:58:57 UTC MAIN commitmail json YAML

2021-05-05 14:49:59 UTC MAIN commitmail json YAML

PR/56147: Miroslav Lichvar: Avoid memory leak if strdup fails.

(christos)

2021-05-05 12:47:02 UTC MAIN commitmail json YAML

Add loadfile_machdep.h for riscv

(jmcneill)

2021-05-05 10:25:37 UTC MAIN commitmail json YAML

evbarm: Add support for Allwinner V3s SoCs.

(jmcneill)

2021-05-05 10:24:04 UTC MAIN commitmail json YAML

2021-05-05 07:41:48 UTC MAIN commitmail json YAML

don't assume host BUFSIZ is sufficent.  small BUFSIZ leads to
always happens errors in the testsuite.  switch all these buffers
to be 4KiB sized.  reported by embr <git@liclac.eu>

(mrg)

2021-05-05 07:09:19 UTC MAIN commitmail json YAML

include <stdint.h>.  bozo_unconst() uses uintptr_t defined here.
from embr <git@liclac.eu>.

(mrg)

2021-05-05 06:47:29 UTC MAIN commitmail json YAML

2021-05-05 06:46:37 UTC MAIN commitmail json YAML

The watchdog setup code isn't used (yet), so don't compile in the
octeon_nmi_stack that it uses either.

(simonb)

2021-05-05 03:54:16 UTC MAIN commitmail json YAML

Decorate cpu_info_list with __read_mostly; it's never modified once
all the CPUs are attached.

(thorpej)

2021-05-05 02:15:18 UTC MAIN commitmail json YAML

2021-05-05 01:35:35 UTC MAIN commitmail json YAML

Add a linker script for the kernel.  The main difference vs the
standard built-in for "ld -N" is to actually process the
.data.cacheline_aligned and .data.read_mostly sections correctly.

(thorpej)

2021-05-04 21:13:38 UTC MAIN commitmail json YAML

prekern: add warnings upon problems collecting entropy

As submitted on port-amd64@ (part 3/3)

Tested on NetBSD/amd64.

(khorben)

2021-05-04 21:10:25 UTC MAIN commitmail json YAML

prekern: do not choke on bad entropy files

As submitted on port-amd64@ (part 2/3)

Tested on NetBSD/amd64.

(khorben)

2021-05-04 21:09:16 UTC MAIN commitmail json YAML

2021-05-04 19:57:57 UTC MAIN commitmail json YAML

tests/lint: make test for message 118 platform-independent

(rillig)

2021-05-04 19:07:19 UTC MAIN commitmail json YAML

Set VERSIONMACHINE to ${MACHINE} instead of evbarm (oops)

(jmcneill)

2021-05-04 17:51:55 UTC MAIN commitmail json YAML

Fix code example (from RVP)

(christos)

2021-05-04 17:47:51 UTC MAIN commitmail json YAML

Fix incorrect structure name (Rocky Hotas)

(christos)

2021-05-04 17:47:05 UTC MAIN commitmail json YAML

libXaw: fix Clang build

--- Pixmap.pico ---
error: unknown warning option '-Wno-discarded-qualifiers'; did you mean
'-Wno-ignored-qualifiers'? [-Werror,-Wunknown-warning-option]

(rillig)

2021-05-04 17:23:54 UTC MAIN commitmail json YAML

2021-05-04 13:40:35 UTC MAIN commitmail json YAML

bind: remove unnecessary CONSTCOND

Lint does not need this anymore, since 2021-01-31.

(rillig)

2021-05-04 13:16:06 UTC MAIN commitmail json YAML

bind: fix Clang build

I had already fixed this on 2021-03-27, but the fix was accidentally
reverted on 2021-04-29 when updating to bind 9.16.15.

(rillig)

2021-05-04 09:05:34 UTC MAIN commitmail json YAML

Always expose pmap_tlb_update_addr now that all current PMAP_HWPAGEWALKERs
(arm) users provide the required functions.

(skrll)

2021-05-04 09:02:21 UTC MAIN commitmail json YAML

Provide pte_{value,valid_p}

(skrll)

2021-05-04 05:40:10 UTC MAIN commitmail json YAML

lint: fix assertion failure when promoting a bit-field larger than int

(rillig)

2021-05-04 05:32:52 UTC MAIN commitmail json YAML

tests/lint: demonstrate assertion failure "len == size_in_bits(INT)"

Seen on sparc64 in hdtoa.c:341 since sparc64 is one of the platforms
that has 128-bit long double and defines struct ieee_ext.ext_frach:48
based on uint64_t, which is a GCC extension.  Plain C99 only allows
_Bool, signed int and unsigned int as base type for bit-fields.

(rillig)

2021-05-03 20:07:57 UTC MAIN commitmail json YAML

Sort __HAVE_ #defines.  NFCI.

(skrll)

2021-05-03 19:33:09 UTC MAIN commitmail json YAML

Remove unnecssary brackets.  Same binary before and after.

(skrll)

2021-05-03 18:56:38 UTC MAIN commitmail json YAML

bcm2838_pcie: match brcm,bcm2711-pcie

(tnn)

2021-05-03 11:07:55 UTC MAIN commitmail json YAML

Add links for the other functions documented in arc4random(3).

(simonb)

2021-05-03 10:28:26 UTC MAIN commitmail json YAML

2021-05-03 10:25:14 UTC MAIN commitmail json YAML

Remove duplicate #ifdef block.

(fcambus)

2021-05-03 09:16:00 UTC netbsd-8 commitmail json YAML

2021-05-03 09:15:31 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1677):
sys/kern/kern_exec.c: revision 1.505 via patch
Fix copy&pasto in handling of POSIX_SPAWN_RESETIDS in posix_spawn(3)

(bouyer)

2021-05-03 09:13:22 UTC netbsd-9 commitmail json YAML

2021-05-03 09:12:50 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1265):
sys/kern/kern_exec.c: revision 1.505 via patch
Fix copy&pasto in handling of POSIX_SPAWN_RESETIDS in posix_spawn(3)

(bouyer)

2021-05-03 09:04:21 UTC netbsd-9 commitmail json YAML

2021-05-03 09:03:22 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by hannken in ticket #1267):

sys/miscfs/fdesc/fdesc_vnops.c: revision 1.135

Make sure fdesc_lookup() never returns VNON vnodes.
Should fix PR kern/56130 (fdescfs create nodes with wrong major number)

(martin)

2021-05-03 09:01:44 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by rin in ticket #1266):

external/gpl3/binutils/dist/bfd/elf32-ppc.c: revision 1.16
external/gpl3/binutils/dist/bfd/elf64-ppc.c: revision 1.16

Fix regression where ld(1) is trapped into infinite loop when
linking binary whose text does not fit within R_PPC_REL24.

Reported upstream as Bug 27755:
https://sourceware.org/bugzilla/show_bug.cgi?id=27755

This problem was introduced to binutils-2-31-1 for our tree.
netbsd-9 is affected, while netbsd-8 is not.

(martin)

2021-05-03 08:44:05 UTC MAIN commitmail json YAML

2021-05-03 08:30:30 UTC MAIN commitmail json YAML

2021-05-03 08:03:45 UTC MAIN commitmail json YAML

lint: undefine macros for defining keywords after use

No functional change.

(rillig)

2021-05-03 07:43:31 UTC MAIN commitmail json YAML

if_wm: do not return a void value from a void function

This is a GCC extension.

(rillig)

2021-05-03 07:30:19 UTC MAIN commitmail json YAML

lint: remove redundancy when defining classic keywords

No functional change.

(rillig)

2021-05-03 07:25:08 UTC MAIN commitmail json YAML

lint: reduce redundancy when defining GCC attributes

This macro would have prevented the unintended inconsistency in the
attribute 'pcs' (for ARM).

No functional change.  The generated code is the same, except for the
line numbers in lint_assert.

(rillig)

2021-05-03 07:08:54 UTC MAIN commitmail json YAML

2021-05-03 06:24:18 UTC MAIN commitmail json YAML

2021-05-03 05:24:45 UTC MAIN commitmail json YAML

lint: fix parsing of __typeof__ after statement in ({ ... })

Since C99, declarations and statements can be freely mixed, and GCC
supported this even before 1999.

(rillig)

2021-05-03 03:50:43 UTC MAIN commitmail json YAML

tests/lint: remove outdated comment

The test d_gcc_extension is already activated in line 121.

(rillig)

2021-05-03 03:46:55 UTC MAIN commitmail json YAML

lint: fix compiler warning about signedness mismatch

No functional change.

(rillig)

2021-05-02 22:07:49 UTC MAIN commitmail json YAML

lint: allow large integer types for bit-fields in GCC mode

These types are explicitly allowed by GCC.

I'm not sure which of the flags -g and -p should be stronger.  That is,
if both -g and -p are given, should 'unsigned char' be allowed as a
bit-field type since -g would allow it, or should it be warned about
since -p warns about it?  For now, continue to warn about these.

(rillig)

2021-05-02 21:48:53 UTC MAIN commitmail json YAML

lint: extract check_bit_field_type from declare_bit_field

No functional change.

(rillig)

2021-05-02 21:47:28 UTC MAIN commitmail json YAML

tests/lint: fix test for GCC bit-field types

The whole purpose of this test is to try the message about invalid
bit-field types in GCC mode.  Therefore, use the default lint1-flags
that include -g.

(rillig)

2021-05-02 21:37:32 UTC MAIN commitmail json YAML

audio: Only score hardware formats by channel count at count<=2

Scoring by channel count makes sense when you are using hardware that
supports mono and stereo formats. However, if your hardware also supports
surround formats, defaulting to those might be confusing. So, don't
prefer them.

Problem reported and fix tested by tcmart14 with a 2015 model Macbook Pro.

(nia)

2021-05-02 21:22:09 UTC MAIN commitmail json YAML

2021-05-02 21:05:42 UTC MAIN commitmail json YAML

lint: on request, keep the preprocessor output

Previously, the simplest way of getting the preprocessed translation
unit was to run lint with the additional flag -V, which outputs the
command line of the C preprocessor, among other things.  That command
line does not include the proper quoting though, so it cannot be used
verbatim as a shell command if the command line contains spaces such as
in -Du64="unsigned long long".

In the common situation where lint is run via a Makefile, the option -V
had to be added in the Makefile itself since there is no make variable
for additional user-settable lint flags.  This is not straight-forward
enough.

Adding another command line option for this purpose would reduce the
remaining namespace for options.  Most of the 52 letters are already
used up.

To make this situation as simple as possible, preserve the output of the
C preprocessor depending on an environment variable.

(rillig)

2021-05-02 20:53:14 UTC MAIN commitmail json YAML

lint: sort GCC attributes alphabetically in the grammar

No functional change.

(rillig)

2021-05-02 20:44:47 UTC MAIN commitmail json YAML

2021-05-02 20:11:43 UTC MAIN commitmail json YAML

sys/conf/lint.mk: fix order of command line options

The option -o must come before the first filename.

Now it is possible to lint kern_exec.c at least.  The next failure is in
netbsd32_machdep.c:

netbsd32_machdep.c(395): error: illegal bit-field size: 255 [36]

That line in netbsd32_process_read_fpregs reads:

__CTASSERT(sizeof(*regs) == sizeof(struct save87));

This is probably a bug in lint.  The struct save87 contains 3 uint16_t,
followed by a union containing a uint64_t, followed by a packed struct
with size 10.  The combination of packed and padding is suspicious.

(rillig)

2021-05-02 19:51:57 UTC MAIN commitmail json YAML

sys/conf/lint.mk: allow GCC extensions in the kernel

The syntax errors due to the __asm statements are now gone.  The file
kern_exec.c only produces a few warnings now.  But after running that
file through lint1, the main lint complains about wrong usage.  This is
due to this call:

${LINT} ... -i $< -o $@

The main lint has never supported -o after the first filename, so it
complains.  It would have been helpful if lint had given any hint as to
which option was invalid.  Anyway, the next step is to reorder the
arguments.  As it is now, the code can never have worked.

(rillig)

2021-05-02 19:29:30 UTC MAIN commitmail json YAML

sys/conf/lint.mk: a small step for linting the kernel

Due to the missing path, the following commands had failed:

$ cd src/sys/arch/amd64/compile/GENERIC
$ nbmake-amd64-lint kern_exec.ln
nbmake: don't know how to make kern/kern_exec.c. Stop

After fixing the path, "make kern_exec.ln" fails with:

sys/kern/kern_exec.c(65): error: syntax error '"' [249]

The affected line contains:

__KERNEL_RCSID(0, "...");

The macro __KERNEL_RCSID expands to __asm("some strings").  Since
KERNLINTFLAGS is missing the -g, lint does not recognize __asm as
keyword and tries to parse it as an identifier instead, expecting a
variable or function declaration.

(rillig)

2021-05-02 19:13:43 UTC MAIN commitmail json YAML

implement fo_restart hook for kqueue descriptors, so that close(2)
on the descriptor won't block indefinitely if other thread is currently
blocked on the same kqueue in kevent(2)

done similarily to pipes and sockets, i.e. using flag on the potentially
shared kqueue structure hooked off file_t - this is somewhat suboptimal
if the application dup(2)ped the descriptor, but this should be rare
enough to not really matter

usually this causes the kevent(2) to end up returning EBADF since
on the syscall restart the descriptor is not there anymore; if
dup(2)ped the kevent(2) call can continue successfully if the closed
kqueue descriptor was other than the one used for the kevent(2)
call

PR kern/46248 by Julian Fagir

(jdolecek)

2021-05-02 15:22:27 UTC MAIN commitmail json YAML

2021-05-02 13:10:36 UTC MAIN commitmail json YAML

countmail: remove outdated comments

Using the shell builtin 'read' command was necessarily slow because it
is specified to read a single byte at a time.

(rillig)

2021-05-02 12:50:47 UTC MAIN commitmail json YAML

2021-05-02 12:25:56 UTC MAIN commitmail json YAML

fish: remove trailing whitespace

(rillig)

2021-05-02 12:24:59 UTC MAIN commitmail json YAML

fish: use arc4random_uniform for drawing random numbers

Thanks nia@ for the hint.

(rillig)

2021-05-02 11:18:11 UTC MAIN commitmail json YAML

2021-05-02 10:44:31 UTC netbsd-9 commitmail json YAML

2021-05-02 10:43:37 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nia in ticket #1264):

external/cddl/osnet/dist/cmd/zfs/zfs.8: revision 1.2
external/cddl/osnet/dist/cmd/zpool/zpool.8: revision 1.2

zfs: Fix up references to FreeBSD

(martin)

2021-05-02 10:23:56 UTC MAIN commitmail json YAML

Fix copy&pasto in handling of POSIX_SPAWN_RESETIDS in posix_spawn(3)

(martin)

2021-05-02 08:18:38 UTC MAIN commitmail json YAML

gcc-11.1.0 is out.

(wiz)

2021-05-01 21:10:57 UTC MAIN commitmail json YAML

fish: remove modulo bias from random number generation

It probably doesn't matter in practice, but omitting this piece of code
always looks like an oversight.

(rillig)

2021-05-01 20:29:23 UTC MAIN commitmail json YAML

cgram: rename local functions

The word 'cleanup' should have been named clean_up all along, but 'done'
is even shorter.

No functional change.

(rillig)

2021-05-01 20:21:25 UTC MAIN commitmail json YAML

caesar: WARNS=6, strict bool mode

The rotation is validated to be nonnegative, therefore use unsigned int
for it.

(rillig)

2021-05-01 18:07:52 UTC MAIN commitmail json YAML

ktruss: fix typo in comment

(rillig)

2021-05-01 16:14:35 UTC MAIN commitmail json YAML

fix syntax of latest CHANGES entry

(jakllsch)

2021-05-01 15:12:26 UTC MAIN commitmail json YAML

Remove unnecessary interface attributes from "smu".

(thorpej)

2021-05-01 15:08:14 UTC MAIN commitmail json YAML

Make sure fdesc_lookup() never returns VNON vnodes.

Should fix PR kern/56130 (fdescfs create nodes with wrong major number)

(hannken)

2021-05-01 14:00:57 UTC MAIN commitmail json YAML

2021-05-01 13:23:07 UTC MAIN commitmail json YAML

Make sure preemption is disabled around PMAP_USERRET(); it uses
per-cpu information.

XXX mi_userret() also internally disables preemption.  Should restructure
these to remove redundancies.

(thorpej)

2021-05-01 07:56:20 UTC MAIN commitmail json YAML

2021-05-01 07:41:24 UTC MAIN commitmail json YAML

2021-05-01 07:41:14 UTC MAIN commitmail json YAML

intro.7: add missing entries

(nia)

2021-05-01 07:25:07 UTC MAIN commitmail json YAML

2021-05-01 07:13:21 UTC MAIN commitmail json YAML

Fixup kernel linking and provide a linker script with standard sections
and symbols

(skrll)

2021-05-01 07:11:12 UTC MAIN commitmail json YAML

Enable interrupts at the end of cpu_configure

(skrll)

2021-05-01 07:10:34 UTC MAIN commitmail json YAML

Quick hack to make this link

(skrll)

2021-05-01 07:09:55 UTC MAIN commitmail json YAML

Provide riscvreg_satp_{read,write}

(skrll)

2021-05-01 07:09:04 UTC MAIN commitmail json YAML

Indent the FCSR_FRM value #defines

(skrll)

2021-05-01 07:06:54 UTC MAIN commitmail json YAML

Bump MSGBUFSIZE (if not defined)

Provide COHERENCY_UNIT and CACHE_LINE_SIZE

Also provide MAXCPUS

(skrll)

2021-05-01 07:05:07 UTC MAIN commitmail json YAML

Provide __CONCAT, __STRING and ___CONCAT

(skrll)

2021-05-01 06:56:41 UTC MAIN commitmail json YAML

Expose pmap_tlb_update_addr to the PMAP_HWPAGEWALKER platforms

(skrll)

2021-05-01 06:53:09 UTC MAIN commitmail json YAML

2021-05-01 06:48:51 UTC MAIN commitmail json YAML

2021-05-01 06:45:23 UTC MAIN commitmail json YAML

Make paddr_t/psize_t __uint64_t for both 32 and 64 bit ports

(skrll)

2021-05-01 00:08:44 UTC MAIN commitmail json YAML

put back nonnull. I meant to just sort it.

(christos)

2021-04-30 23:49:36 UTC MAIN commitmail json YAML

2021-04-30 22:48:38 UTC MAIN commitmail json YAML

compiler_rt: generate symbol table early

These libraries have the special feature that they install both the .a
library as well as the .a.syms that is generated from them.  To avoid
the transformation rule .a.a.syms to apply to the files in ${DESTDIR},
that rule has to be disabled during the installation phase.

If the transformation rule were active during installation, the .a.syms
file in ${DESTDIR} would have more than one possible source file, which
eventually leads to an error during installation since in the command
"install a b c", the last argument must be a directory, not a file.

The installation phase should be as minimal as possible anyway,
therefore move the generation of the .syms files to the build phase.

This hopefully fixes the build for HAVE_LLVM=yes, which has been broken
for several weeks now, at least for the official builds.

(rillig)

2021-04-30 22:22:49 UTC MAIN commitmail json YAML

Mention resolver change, and fix 2020 entries that should have been 2021

(christos)

2021-04-30 21:51:49 UTC MAIN commitmail json YAML

2021-04-30 21:07:34 UTC MAIN commitmail json YAML

cgdconfig.8: use gpt in examples, it's more versatile for this use case

(nia)

2021-04-30 20:07:23 UTC MAIN commitmail json YAML

2021-04-30 19:46:24 UTC MAIN commitmail json YAML

- add nonstring attribute
- allow attributes after labels (for unused)
XXX: split the attributes into function, variable, etc attributes
so that we don't accept all attributes in all places (only where they make
sense)

(christos)

2021-04-30 18:59:31 UTC MAIN commitmail json YAML

2021-04-30 16:12:19 UTC MAIN commitmail json YAML

Mention that check-names is now the default.

(christos)

2021-04-30 16:07:49 UTC MAIN commitmail json YAML

Default to check-names for safety.

(christos)

2021-04-30 15:37:06 UTC MAIN commitmail json YAML

merge the i386 and amd64 gdt.h files.

(christos)

2021-04-30 14:28:36 UTC netbsd-8 commitmail json YAML

2021-04-30 14:26:39 UTC netbsd-8 commitmail json YAML

src/doc/3RDPARTY@1.1444.2.26 / diff / nxr@1.1444.2.26
src/external/public-domain/tz/dist/Makefile@1.1.1.17.4.8 / diff / nxr@1.1.1.17.4.8
src/external/public-domain/tz/dist/NEWS@1.1.1.18.4.9 / diff / nxr@1.1.1.18.4.9
src/external/public-domain/tz/dist/TZDATA_VERSION@1.8.4.9 / diff / nxr@1.8.4.9
src/external/public-domain/tz/dist/africa@1.1.1.11.4.9 / diff / nxr@1.1.1.11.4.9
src/external/public-domain/tz/dist/asia@1.1.1.16.4.8 / diff / nxr@1.1.1.16.4.8
src/external/public-domain/tz/dist/australasia@1.1.1.11.4.8 / diff / nxr@1.1.1.11.4.8
src/external/public-domain/tz/dist/backward@1.1.1.7.4.4 / diff / nxr@1.1.1.7.4.4
src/external/public-domain/tz/dist/backzone@1.1.1.11.4.6 / diff / nxr@1.1.1.11.4.6
src/external/public-domain/tz/dist/etcetera@1.1.1.2.6.3 / diff / nxr@1.1.1.2.6.3
src/external/public-domain/tz/dist/europe@1.1.1.17.4.8 / diff / nxr@1.1.1.17.4.8
src/external/public-domain/tz/dist/leap-seconds.list@1.1.1.7.4.5 / diff / nxr@1.1.1.7.4.5
src/external/public-domain/tz/dist/leapseconds@1.1.1.8.4.6 / diff / nxr@1.1.1.8.4.6
src/external/public-domain/tz/dist/leapseconds.awk@1.1.1.5.8.5 / diff / nxr@1.1.1.5.8.5
src/external/public-domain/tz/dist/northamerica@1.1.1.16.4.8 / diff / nxr@1.1.1.16.4.8
src/external/public-domain/tz/dist/theory.html@1.1.1.1.2.10 / diff / nxr@1.1.1.1.2.10
src/external/public-domain/tz/dist/version@1.1.1.5.4.9 / diff / nxr@1.1.1.5.4.9
src/external/public-domain/tz/dist/ziguard.awk@1.1.1.1.2.7 / diff / nxr@1.1.1.1.2.7
src/external/public-domain/tz/dist/zone.tab@1.1.1.11.4.7 / diff / nxr@1.1.1.11.4.7
src/external/public-domain/tz/dist/zone1970.tab@1.1.1.13.4.7 / diff / nxr@1.1.1.13.4.7

Pull up the following, requested by kre in ticket #1676:

external/public-domain/tz/dist/Makefile        up to 1.1.1.30
external/public-domain/tz/dist/NEWS            up to 1.1.1.34
external/public-domain/tz/dist/TZDATA_VERSION  up to 1.24
external/public-domain/tz/dist/africa          up to 1.1.1.25
external/public-domain/tz/dist/asia            up to 1.1.1.28
external/public-domain/tz/dist/australasia      up to 1.1.1.21
external/public-domain/tz/dist/backward        up to 1.1.1.12
external/public-domain/tz/dist/backzone        up to 1.1.1.20
external/public-domain/tz/dist/etcetera        up to 1.1.1.5
external/public-domain/tz/dist/europe          up to 1.1.1.30
external/public-domain/tz/dist/leap-seconds.list up to 1.1.1.15
external/public-domain/tz/dist/leapseconds      up to 1.1.1.18
external/public-domain/tz/dist/leapseconds.awk  up to 1.1.1.12
external/public-domain/tz/dist/northamerica    up to 1.1.1.27
external/public-domain/tz/dist/theory.html      up to 1.1.1.12
external/public-domain/tz/dist/version          up to 1.1.1.21
external/public-domain/tz/dist/ziguard.awk      up to 1.1.1.6
external/public-domain/tz/dist/zone.tab        up to 1.1.1.19
external/public-domain/tz/dist/zone1970.tab    up to 1.1.1.21
doc/3RDPARTY (apply patch)

Update from tzdata2020d to tzdata2021a.

The significant changes are:

    Volgograd switched to Moscow time on 2020-12-27 at 02:00.  (2020e)
    South Sudan changes from +03 to +02 on 2021-02-01 at 00:00. (2021a)

(martin)

2021-04-30 14:22:24 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #1675):

sys/arch/xen/x86/xen_ipi.c: revision 1.24 (patch)

make compile without DDB
PR port-xen/50282

(martin)

2021-04-30 14:08:16 UTC netbsd-9 commitmail json YAML

2021-04-30 14:07:02 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by mrg in ticket #1263):

bin/pax/options.c: revision 1.119
usr.bin/config/scan.l: revision 1.32
usr.bin/make/main.c: revision 1.274
bin/pax/extern.h: revision 1.60
usr.bin/config/defs.h: revision 1.106
usr.bin/make/make.h: revision 1.105
sbin/newfs_udf/udf_create.c: revision 1.27 (patch)
sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch)
usr.bin/config/main.c: revision 1.100

Avoid depending on common symbols.

(martin)

2021-04-30 13:59:23 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1674):

distrib/notes/common/netboot: revision 1.39

For netboot via DHCP, "next-server" in dhcpd.conf(5) is mandatory.
Pointed out by Anders Gustafsson on port-hp300@.

https://mail-index.netbsd.org/port-hp300/2021/04/21/msg000201.html

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

XXX: kernel should use the dhcpd/bootp server address for nfsroot
    if the specified next-server (siaddr) is 0.0.0.0?

(martin)

2021-04-30 13:57:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1262):

distrib/notes/common/netboot: revision 1.39

For netboot via DHCP, "next-server" in dhcpd.conf(5) is mandatory.
Pointed out by Anders Gustafsson on port-hp300@.

https://mail-index.netbsd.org/port-hp300/2021/04/21/msg000201.html

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

XXX: kernel should use the dhcpd/bootp server address for nfsroot
    if the specified next-server (siaddr) is 0.0.0.0?

(martin)

2021-04-30 13:55:18 UTC MAIN commitmail json YAML

Add <x86/gdt.h> (we could gc now the <machine/gdt.h> files if we fix the
sources that use them.

(christos)

2021-04-30 13:54:26 UTC MAIN commitmail json YAML

2021-04-30 13:54:00 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by skrll in ticket #1261):

sys/arch/arm/include/lock.h: revision 1.38
common/lib/libc/arch/arm/atomic/membar_ops.S: revision 1.7
common/lib/libc/arch/arm/atomic/atomic_swap_16.S: revision 1.5
common/lib/libc/arch/arm/atomic/atomic_swap_64.S: revision 1.12
common/lib/libc/arch/arm/atomic/atomic_swap.S: revision 1.17

Add the appropriate memory barrier before the lock is cleared in
__sync_lock_release_{1,2,4,8}.  That is, all reads and write for the
inner shareability domain before the lock clear store.

Improve the membar_ops barriers - no need to use dsb and wait for
completion.  Also, we only to act on the inner shareability domain.

Fix the barrier confusion.  From Riastradh - thanks!.

(martin)

2021-04-30 13:53:30 UTC MAIN commitmail json YAML