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 (1h)  netbsd-8 (5d)  netbsd-10 (6d)  netbsd-9 (12d)  thorpej-ifq (176d)  thorpej-altq-separation (178d) 

2024-05-10 15:58:10 UTC Now

2021-04-25 05:52:22 UTC MAIN commitmail json YAML

these sysctl variables were removed

(nia)

2021-04-25 05:33:20 UTC MAIN commitmail json YAML

config_found_ia() -> config_found().

(thorpej)

2021-04-25 05:16:27 UTC MAIN commitmail json YAML

Sample # of RX packets as entropy source.

(rin)

2021-04-25 05:15:20 UTC MAIN commitmail json YAML

Sample # of TX packets as entropy source.

For RX packets, individual drivers need to be modified.

(rin)

2021-04-25 01:44:55 UTC MAIN commitmail json YAML

postinstall: sort the items. keep obsolete* last

Consistency and quality of life improvements to postinstall:

Order all of the items (including disabled) alphabetically.
Consistent comment style before each item block.
Move other functions used by do_*() before rather than after do_*().

(lukem)

2021-04-25 01:15:40 UTC MAIN commitmail json YAML

postinstall: comment and usage style

Use NOTE: for comments to be aware of.
Remove double space before "fix|check" in some items.

(lukem)

2021-04-25 01:01:09 UTC MAIN commitmail json YAML

thorpej-cfargs has been merged.

(thorpej)

2021-04-25 00:36:47 UTC MAIN commitmail json YAML

postinstall: ensure SRC_DIR and DEST_DIR are quoted

(lukem)

2021-04-25 00:29:52 UTC MAIN commitmail json YAML

postinstall: use correct DEST_DIR in obsolete_stand

(lukem)

2021-04-24 23:40:16 UTC MAIN commitmail json YAML

Bienvenido a NetBSD 9.99.82 (thorpej-cfargs merge).

(thorpej)

2021-04-24 23:37:01 UTC MAIN commitmail json YAML

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

(thorpej)

2021-04-24 21:17:40 UTC MAIN commitmail json YAML

move the NetBSD version of:

  __convert_from_v(const __c_locale& __cloc, char* __out,
    const int __size __attribute__ ((__unused__)),
    const char* __fmt, ...)

from the .h file into the .cc file.

NetBSD version relies upon vasprintf_l() being defined and compile
contexts such as _XOPEN_SOURCE=600 or _POSIX_C_SOURCE < 200809 may
not provide the definition of it, cause compile time issues for
3rdparty applications in c++locale.h.  This ensure that all the
required definitions are present when this code is compiled.

(mrg)

2021-04-24 20:34:34 UTC MAIN commitmail json YAML

2021-04-24 20:29:04 UTC MAIN commitmail json YAML

Fix __sync_lock_release_4 to actually zeroise the whole 4bytes/32bits.

(skrll)

2021-04-24 18:23:09 UTC thorpej-cfargs commitmail json YAML

Make sure to explcitly specify the "wsemuldisplaydev" interface attribute
when attaching the wscons display instance, because these devices can
also attach children using the "drm" interface attribute.

(thorpej)

2021-04-24 18:07:08 UTC thorpej-cfargs commitmail json YAML

Use a value for CFARG_EOL that is not likely to be encountered randomly in
nature.  Suggested by dholland.

(thorpej)

2021-04-24 16:24:14 UTC MAIN commitmail json YAML

Tidy up callout(9) implementation to handle mouse packets.

- define and use proper macro to specify ticks
- use callout_schedule(9) rather than callout_reset(9) to restart timer

No functional changes.

(tsutsui)

2021-04-24 16:14:08 UTC MAIN commitmail json YAML

Restore comments for f_stackadj and reenter_syscall().

Taken from sys/compat/linux/arch/m68k/linux_machdep.c which was
originally implemented to use reenter_syscall() for sigreturn of
Linux binaries.

(tsutsui)

2021-04-24 15:38:10 UTC MAIN commitmail json YAML

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?

(tsutsui)

2021-04-24 13:01:35 UTC MAIN commitmail json YAML

arm/sunxi: Wire up sun8icrypto(4) on Allwinner H5.

Tested on NanoPi Neo PLUS2.

(riastradh)

2021-04-24 09:42:00 UTC MAIN commitmail json YAML

2021-04-24 09:18:44 UTC MAIN commitmail json YAML

wsfontload.8: clean up examples

add an example of loading a larger font since a lot of people ask.

(nia)

2021-04-24 09:03:05 UTC MAIN commitmail json YAML

wsfontload: clarify more

(nia)

2021-04-24 08:59:09 UTC MAIN commitmail json YAML

wsfontload: clarify documentation of -l

(nia)

2021-04-24 07:58:12 UTC MAIN commitmail json YAML

Fix ARMv8 instructions

(skrll)

2021-04-24 07:52:08 UTC MAIN commitmail json YAML

wsfontload: make -l mode a separate line in the usage

Document it in the manpage.

(wiz)

2021-04-24 07:12:17 UTC MAIN commitmail json YAML

2021-04-24 06:45:56 UTC MAIN commitmail json YAML

2021-04-24 06:44:24 UTC MAIN commitmail json YAML

2021-04-24 06:44:01 UTC MAIN commitmail json YAML

2021-04-24 06:38:39 UTC MAIN commitmail json YAML

2021-04-24 06:34:53 UTC MAIN commitmail json YAML

Fix build with MKDEBUG=yes for aarch64.

(rin)

2021-04-24 06:32:09 UTC MAIN commitmail json YAML

2021-04-24 04:50:47 UTC MAIN commitmail json YAML

use GCC_NO_IMPLICIT_FALLTHRU

(mrg)

2021-04-24 00:49:26 UTC MAIN commitmail json YAML

add -l option to dump a list of available fonts

(macallan)

2021-04-24 00:15:37 UTC MAIN commitmail json YAML

add an ioctl() to get a list of fonts currently available via wsfont

(macallan)

2021-04-23 22:53:03 UTC MAIN commitmail json YAML

cc1objplus and lto-dump are now enabled.

(mrg)

2021-04-23 22:50:06 UTC MAIN commitmail json YAML

2021-04-23 20:26:43 UTC MAIN commitmail json YAML

lint: merge duplicate code in grammar for GCC compound expressions

This increases the number of shift/reduce conflicts, once again.  I
don't know why since the previous two grammar rules only differed in a
single detail.  One of them had a declaration_list while the other
didn't.  This difference is exactly what declaration_list_opt is for.

Anyway, the tests for both cases (with and without declarations) work
exactly as before.

Merging this duplicate code will probably make it easier to fix the
current limitation in lint regarding GCC compound expressions that a
statement followed by a declaration generates a syntax error.

Fixing this is not trivial, my first attempt failed either with
segmentation faults or with sym->s_type becoming NOSPEC during the
expression.

(rillig)

2021-04-23 20:13:29 UTC MAIN commitmail json YAML

tests/lint: test GCC compound expression without declaration

(rillig)

2021-04-23 15:21:49 UTC MAIN commitmail json YAML

2021-04-23 15:05:27 UTC thorpej-cfargs commitmail json YAML

No need to be explicit about interface attributes here.

(thorpej)

2021-04-23 08:42:26 UTC MAIN commitmail json YAML

Merge the .text.* sections into the .text section on MIPS, SPARC and
SPARC64 as is done on all other ports.  Mostly costmetic, but does mean
that main() now appears before the _etext symbol instead of after it.

(simonb)

2021-04-23 06:15:16 UTC MAIN commitmail json YAML

Use sys/cdefs.h __CONCAT3

(skrll)

2021-04-23 06:13:06 UTC MAIN commitmail json YAML

Use sys/cdefs.h __CONCAT3

(skrll)

2021-04-23 06:02:48 UTC MAIN commitmail json YAML

2021-04-23 05:56:43 UTC MAIN commitmail json YAML

Provide __CONCATn macros that take from 3 to 8 arguments and concatenate
them.

I didn't provide the non-STDC versions

(skrll)

2021-04-23 03:44:05 UTC MAIN commitmail json YAML

enabled PPPOE_DEBUG for librumpnet_pppoe* when RUMP_DEBUG is defined

(yamaguchi)

2021-04-23 03:41:55 UTC MAIN commitmail json YAML

Added a test case for MTU of pppoe(4)

(yamaguchi)

2021-04-23 03:40:05 UTC MAIN commitmail json YAML

Make IFF_DEBUG enabled if $DEBUG is true

(yamaguchi)

2021-04-23 03:38:19 UTC MAIN commitmail json YAML

functionalize rump.ifconfig and pppoectl for clearer test code

(yamaguchi)

2021-04-23 03:36:13 UTC MAIN commitmail json YAML

Adjust mtu at LCP instead at IPCP

The adjustment must be done at LCP when a PPPoE connection
does not use IPCP.

(yamaguchi)

2021-04-23 03:31:33 UTC MAIN commitmail json YAML

Fix to set mtu even if it is bigger than mru notified at LCP

(yamaguchi)

2021-04-23 03:07:19 UTC MAIN commitmail json YAML

Added test cases for "pppoectl passiveauthproto"

(yamaguchi)

2021-04-23 02:28:40 UTC MAIN commitmail json YAML

Add a new option to enable SPPP_AUTHFLAG_PASSIVEAUTHPROTO flag

(yamaguchi)

2021-04-23 01:56:14 UTC MAIN commitmail json YAML

2021-04-23 01:53:55 UTC MAIN commitmail json YAML

2021-04-23 01:13:26 UTC MAIN commitmail json YAML

Introduct a new flag to accept different authentication protocol
in myauthproto and hisauthproto

When the flag is enabled, a authentication protocol notified
at LCP negotiation is used as my authentication protocol.
When the flags is NOT enabled, my authentication protoco is
not changed at LCP negotiation.

(yamaguchi)

2021-04-22 22:43:26 UTC MAIN commitmail json YAML

2021-04-22 20:45:00 UTC MAIN commitmail json YAML

2021-04-22 19:20:25 UTC MAIN commitmail json YAML

PR/56120: Chris Pinnock: build.sh (-m alpha) release fails on current on
Darwin in libc compilation
We build the regex code in tools without nls. We don't include any nls headers
for that, but on Darwin wint_t gets defined, so we end up with a compilation
error. The cleaner fix would have been to always use regex_foo_t types, but
the minimal fix is to only do this for the tools build, using cpp.

(christos)

2021-04-22 14:57:36 UTC MAIN commitmail json YAML

cgram: allow providing an input file instead of the random fortune

(wiz)

2021-04-22 10:26:24 UTC MAIN commitmail json YAML

Added missing free of sc_hunique to prevent memory leak
when using PPPoE server

(yamaguchi)

2021-04-22 10:08:47 UTC netbsd-9 commitmail json YAML

2021-04-22 10:07:58 UTC netbsd-9 commitmail json YAML

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

external/cddl/osnet/dist/uts/common/fs/zfs/arc.c: revision 1.20

Prevent blocking l2arc_feed_thread() forever, skip the
cv_timedwait() for negative or zero ticks.

(martin)

2021-04-22 05:00:36 UTC MAIN commitmail json YAML

arm64* now works.  (thanks skrll.)
evbarmv5 and evbarmv7hfeb works.  (thanks martin.)

(mrg)

2021-04-22 01:36:25 UTC MAIN commitmail json YAML

Capitalize /EFI and /EFI/NetBSD as usual. Both are case-insensitive although.
Maybe not worth bumping dates...

(rin)

2021-04-22 01:33:18 UTC MAIN commitmail json YAML

Fix rnd(9) support; events were not sampled actually in the previous.

Remove #if-0'ed and wrap long line for clarity.

(rin)

2021-04-22 01:14:18 UTC MAIN commitmail json YAML

Apply this fix also for binutils.old.

http://www.nerv.org/netbsd/?q=id:20210422T010948Z.f87d2246188cfedb66a0d5a012c107b6a2b9f395

> 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.

(rin)

2021-04-22 01:09:48 UTC MAIN commitmail json YAML

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.

(rin)

2021-04-21 18:13:02 UTC netbsd-9 commitmail json YAML

2021-04-21 18:11:06 UTC netbsd-9 commitmail json YAML

Apply patch, requested by tsutsui in ticket #1249:

sys/arch/sparc/conf/GENERIC (apply patch)

PR 56077: remove DIAGNOSTIC from sparc kernel.

(martin)

2021-04-21 17:59:48 UTC netbsd-9 commitmail json YAML

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

sys/arch/hp300/dev/topcat.c: revision 1.5
sys/arch/hp300/dev/diofb.c: revision 1.5

Fix two problems on old topcat(4) framebuffers found on HP332/340.

- Fix panic on monochrome framebuffers. They don't have palette registers.
  The problem was reported from Anders Gustafsson and also Andrew Gillham
  back in 2013:
  https://mail-index.netbsd.org/port-hp300/2013/09/27/msg000086.html
  https://mail-index.netbsd.org/port-hp300/2013/09/28/msg000087.html

- Fix incorrect framebuffer width of 98542/98544 framebuffers on HP332.
  Reported from Andrew Gillham (98542) as above and Chris Hanson (98543):
  https://mail-index.netbsd.org/port-hp300/2013/09/27/msg000083.html
  https://mail-index.netbsd.org/port-hp300/2020/05/01/msg000164.html

Worth to pullup to netbsd-9.

(martin)

2021-04-21 17:51:34 UTC netbsd-9 commitmail json YAML

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

sys/arch/zaurus/dev/w100lcd.c: revision 1.3

Make LCD BrightnessUp/BrightnessDown work on C7x0/860.

Patch from steleto:
https://gist.github.com/steleto/10f62a074bff0c188fcc10c14ef40b5a

and also confirmed by me on SL-C700.

Worth to pullup to netbsd-9.

(martin)

2021-04-21 17:50:03 UTC netbsd-8 commitmail json YAML

2021-04-21 17:47:40 UTC netbsd-8 commitmail json YAML

Apply patch, requested by mrg in ticket #1671:

external/bsd/file/dist/magic/magdir/python
external/bsd/file/dist/magic/magdir/windows

Enhance regex portability (by copying over the versions from file 5.40).

(martin)

2021-04-21 16:23:47 UTC MAIN commitmail json YAML

src/common/lib/libc/arch/aarch64/atomic/Makefile.inc@1.3 / diff / nxr@1.3
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp1_acq.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp1_acq_rel.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp1_rel.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp1_relax.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp2_acq.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp2_acq_rel.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp2_rel.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp2_relax.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp4_acq.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp4_acq_rel.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp4_rel.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp4_relax.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp8_acq.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp8_acq_rel.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp8_rel.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/__aarch64_swp8_relax.S@1.1 / diff / nxr@1.1
src/common/lib/libc/arch/aarch64/atomic/atomic_swap_16.S@1.4 / diff / nxr@1.4
src/common/lib/libc/arch/aarch64/atomic/atomic_swap_32.S@1.4 / diff / nxr@1.4
src/common/lib/libc/arch/aarch64/atomic/atomic_swap_64.S@1.4 / diff / nxr@1.4
      :
(more 13 files)
Do previous differently as the API is different.

(skrll)

2021-04-21 14:04:26 UTC MAIN commitmail json YAML

2021-04-21 13:41:42 UTC MAIN commitmail json YAML

remove emit.ln; looks like an accident and breaks the build.

(christos)

2021-04-21 13:26:16 UTC MAIN commitmail json YAML

tests/lint: fix the hack for emit.ln to also work if MKUPDATE != "no"

(rillig)

2021-04-21 13:12:43 UTC MAIN commitmail json YAML

2021-04-21 13:09:33 UTC MAIN commitmail json YAML

Fix Realtek RTL8125 description

(jakllsch)

2021-04-21 10:02:34 UTC MAIN commitmail json YAML

Prevent blocking l2arc_feed_thread() forever, skip the
cv_timedwait() for negative or zero ticks.

(hannken)

2021-04-21 09:52:21 UTC MAIN commitmail json YAML

added more attributes of PTE displayed by "ddb>machine pte"

(ryo)

2021-04-21 07:31:38 UTC MAIN commitmail json YAML

Provide some more operations that are part of compiler lse.S.  This is
incomplete, but at least covers all the atomic_swap ops and allows the
aa64 kernel to link with gcc 10.

(skrll)

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

tests/lint: fix inconsistent operator for emit.ln

The build failed with:

nbmake[8]: "/.../src/share/mk/bsd.files.mk" line 47:
    Inconsistent operator for /.../emit.ln

(rillig)

2021-04-20 23:19:53 UTC MAIN commitmail json YAML

clang: fix build for installing libclang_rt.ubsan_minimal-x86_64.a

The build failed with:

--- install-ubsan_minimal-m64 ---
x86_64--netbsd-install: the last argument
    (/.../libclang_rt.ubsan_minimal-x86_64.a.syms)
    must name an existing directory

The cause of this is that the suffix transformation rule for .a.a.sym
was active even during 'make install'.

At that point, the make variable .ALLSRC for the target
${DESTDIR}/.../libclang_rt.ubsan_minimal-x86_64.a.sym included not only
the corresponding file from the source directory, but also the potential
source file from the transformation rule, in this case
libclang_rt.ubsan_minimal-x86_64.a.

This led to several file parameters for the command 'install', which is
only allowed if the last parameter names an existing directory.

(rillig)

2021-04-20 21:48:39 UTC MAIN commitmail json YAML

2021-04-20 21:42:32 UTC MAIN commitmail json YAML

Instead of compiling files with -fcommon, create an include file and declare
the 3 symbols that need to be common using an attribute. Put all the 3 symbol
definitions in libc in one place (initfini.c). Reviewed by joerg@

(christos)

2021-04-20 21:20:24 UTC MAIN commitmail json YAML

tests/lint1: fix build error "must name an existing directory"

The build failed with this error message:

x86_64--netbsd-install: the last argument (/.../emit.ln) must
name an existing directory

The cause for this message was that ${DESTDIR}/.../emit.ln has
${DESTDIR}/.../emit.c as implicit target, which is kind of correct but
unintended in this case.  Because of this, the command 'install' was run
like this:

install ${NETBSDSRCDIR}/.../emit.ln ${DESTDIR}/.../emit.c \
    ${DESTDIR}/.../emit.ln

(rillig)

2021-04-20 17:42:31 UTC MAIN commitmail json YAML

tmux: move __printflike to the declaration in the header

Noted by Akihiko HAYASHI.

(rillig)

2021-04-20 10:39:59 UTC MAIN commitmail json YAML

give a structure a name.

it makes GCC 10 less unhappy about building arm64 GCC 10.

(mrg)

2021-04-20 10:15:34 UTC MAIN commitmail json YAML

2021-04-20 10:01:37 UTC MAIN commitmail json YAML

2021-04-20 01:29:40 UTC MAIN commitmail json YAML

Don't use atomics to manipulate cpu_info::ci_intrdepth: it's modified
only in the interrupt service path by the owning CPU, at entry and exit.
Even if the r/m/w cycle of incrementing the value were interrupted, the
result would still be the same because the interrupting frame will have
completed its own symmetrical increment/decrement cycle upon return.

(thorpej)

2021-04-20 00:09:45 UTC MAIN commitmail json YAML

Slight tweak to previous changes:

Rather than simply increment the interrupt depth for the clock interrupt,
we add 0x10.  Why?  Because while we only use a single Alpha IPL (4) for
IPL_{BIO,NET,TTY,VM}, technically the architecture specification suports
two in the OSF/1 PALcode (3 [low-pri] and 4 [high-pri]), meaning we could
conceiveably have intrdepth > 1 just for device interrupts.

Adding 0x10 here means that cpu_intr_p() can check for "intrdepth != 0" for
"in interrupt context" and CLKF_INTR() can check "(intrdepth & 0xf) != 0" for
"was processing interrupts when the clock interrupt happened".

(thorpej)

2021-04-19 23:51:42 UTC MAIN commitmail json YAML

make: do not complain when skipping the condition 'no >= 10'

Seen in external/bsd/tmux when building with Clang.  See
varmod-ifelse.mk for the detailed story.

(rillig)

2021-04-19 23:43:15 UTC MAIN commitmail json YAML

tests/make: add another example for parsing of the modifier ':?'

(rillig)

2021-04-19 23:27:17 UTC MAIN commitmail json YAML

tests/make: add detailed explanation for error message in conditional

(rillig)

2021-04-19 22:22:27 UTC MAIN commitmail json YAML

make: use straight quotes for error 'Bad conditional expression'

This diagnostic was supposed to be an error, see ApplyModifier_IfElse.

When such an error occurs while the makefiles are read, make stops with
an error, as can be expected.  But when such an error occurs later,
after all makefiles have been read, the message is printed but make does
not stop.

In lint mode (-dL), make stops in such a case.  I didn't dare to make
this the default behavior, out of fear of breaking existing build
infrastructure, not only in NetBSD or pkgsrc, but also FreeBSD and other
operating systems that use the bmake distribution, generated from the
same source code.

(rillig)

2021-04-19 22:05:29 UTC MAIN commitmail json YAML

tests/make: demonstrate unexpected behavior of the modifier ':?'

(rillig)

2021-04-19 21:52:17 UTC MAIN commitmail json YAML

tmux: fix -Wformat-nonliteral for Clang

dist/control.c:394:17: error: format string is not a string literal
    [-Werror,-Wformat-nonliteral]
        xvasprintf(&s, fmt, ap);
                      ^~~

dist/status.c:436:33: error: format string is not a string literal
    [-Werror,-Wformat-nonliteral]
        xvasprintf(&c->message_string, fmt, ap);
                                      ^~~

(rillig)

2021-04-19 17:49:28 UTC MAIN commitmail json YAML

Fix weekday parsing; only reset the string when parsing fail and only set
the weekday when parsing succeeds (Steffen Nurpmeso)

(christos)

2021-04-19 16:35:11 UTC MAIN commitmail json YAML

make: avoid double slash in name of temporary directory

If the environment variable TMPDIR is not set, make uses a default path
that includes a trailing '/'.

For extra correctness it always appended an extra '/', leading to paths
of the form '/tmp//makeXXXXXX'.  This looked suspicious, as if there had
been a forgotten empty part between the two '/'.  Avoid this ambiguity
by replacing '//' with '/'.

(rillig)

2021-04-19 14:42:18 UTC MAIN commitmail json YAML

2021-04-19 14:41:18 UTC MAIN commitmail json YAML

2021-04-19 14:40:16 UTC MAIN commitmail json YAML

2021-04-19 14:07:36 UTC MAIN commitmail json YAML

Force user to specify source dir. Too dangerous to run in random places.

(christos)

2021-04-19 13:18:43 UTC MAIN commitmail json YAML

lint: add debug logging for reachability

(rillig)

2021-04-19 08:40:15 UTC MAIN commitmail json YAML

hppa switched.  sh3el seems ready.  m68k atf wasn't fail..

(mrg)

2021-04-19 07:55:59 UTC MAIN commitmail json YAML

Make the riscv disassembler work, as best as I can test from amd64 userspace.

(dholland)

2021-04-19 06:29:13 UTC MAIN commitmail json YAML

openssh-8.6 out

(wiz)

2021-04-19 01:12:10 UTC MAIN commitmail json YAML

2021-04-18 23:05:26 UTC MAIN commitmail json YAML

tests/lint: record all files from FILES in distrib/sets/lists/tests/mi

(rillig)

2021-04-18 23:02:16 UTC MAIN commitmail json YAML

2021-04-18 22:51:25 UTC MAIN commitmail json YAML

lint: remove WARNS=3, falling back to the default WARNS=5

It's strange that GCC does not warn about the nonliteral format strings
in lint1/err.c, lint2/msg.c and lint2/read.c, despite -Wformat=2, but
Clang does.

(rillig)

2021-04-18 21:53:37 UTC MAIN commitmail json YAML

lint: fix strict bool mode errors in cgram.y

The code generated by yacc already adheres to strict bool mode, in
default mode as well as in debug mode.

Running lint on the generated cgram.c as well avoids most of the
"declared but not used" warnings from lint2.

The code generated by lex does not adhere to strict bool mode though.
Suppressing the errors from strict bool mode works, but then lint1 runs
into an assertion failure:

assertion "tn != NULL || nerr != 0" failed
    in expr at tree.c:3610 near scan.c:822

This leaves several warnings about "declared but not used" for the
functions from lex.c.

(rillig)

2021-04-18 21:12:51 UTC MAIN commitmail json YAML

lint: reduce duplicate code for parsing .ln files

(rillig)

2021-04-18 20:40:51 UTC MAIN commitmail json YAML

lint: fix error message in lint2 for missing record type in .ln file

(rillig)

2021-04-18 20:32:49 UTC MAIN commitmail json YAML

Switch hppa to gcc 10

(skrll)

2021-04-18 20:15:18 UTC MAIN commitmail json YAML

2021-04-18 20:02:56 UTC MAIN commitmail json YAML

lint: test emitting of symbol information in the .ln files

Even though the new test is quite large, it didn't find any bugs in the
code.  The only thing I'm unsure about is why static functions are
exported as well, since they are supposed to be local to the translation
unit.

(rillig)

2021-04-18 19:56:10 UTC MAIN commitmail json YAML

The -n flag is useless with -g, don't mention it.

From rudolf in PR misc/36243

(maya)

2021-04-18 17:54:33 UTC MAIN commitmail json YAML

lint: rename parameter to expr

That parameter used to be used for a single purpose, later it got used
for checking the reachability as well, which made the name misleading.

(rillig)

2021-04-18 17:47:33 UTC MAIN commitmail json YAML

lint: remove redundant CONSTCOND

In do-while-0 loops, these are no longer needed since tree.c 1.202 from
2021-01-31.

(rillig)

2021-04-18 17:36:18 UTC MAIN commitmail json YAML

2021-04-18 17:12:01 UTC thorpej-cfargs commitmail json YAML

Need to be explicit about the interface attribute when attaching the
PCI bus instance because "becc" carries 2 interface attributes.

(thorpej)

2021-04-18 16:46:06 UTC thorpej-cfargs commitmail json YAML

config_found() takes a device_t, not a softc.  This is a bug left-over
from decoupling of device_t / softcs long ago.

(thorpej)

2021-04-18 14:01:29 UTC MAIN commitmail json YAML

2021-04-18 12:05:29 UTC MAIN commitmail json YAML

Delete the NOFPU option.  These CPUs do have an FPU.  Allows o32
binaries to work now.

(simonb)

2021-04-18 10:45:22 UTC MAIN commitmail json YAML

enable a few more "generic" items in this configuration, mostly
from what pmax GENERIC enables, but not nearly all of it:

- enable OVERLAY, UMAPFS, FDESC, LFS, UNION, PUFFS (and putter),
  and add some more commented out entries
- enable DISKLABEL_EI and FFS_EI
- turn on GATEWAY and ppp(4) options
- add commented ALTQ section

(mrg)

2021-04-18 10:40:34 UTC MAIN commitmail json YAML

move softint_cleanup, which is a part of softint_fast_dispatch(),
into the section of code known as softint_fast_dispatch().

previous:

db> x/i softint_cleanup
netbsd:cpu_switchto+0xd4:      ld      t0,0(t8)

except that cpu_switchto() ends at cpu_switchto+0xd0.

now:

db> x/i softint_cleanup
netbsd:softint_fast_dispatch+0xa4:      ld      t0,0(t8)

tested on OCTEON.

(mrg)

2021-04-18 10:09:49 UTC MAIN commitmail json YAML

lint: rename parameter to diagnostic functions and macros

The first parameter is not just an arbitrary number, it's a message ID.

(rillig)

2021-04-18 10:04:23 UTC MAIN commitmail json YAML

lint: align the member access macros for tnode_t

(rillig)

2021-04-18 10:02:16 UTC MAIN commitmail json YAML

lint: flip parameters in verror_at, vwarning_at, vmessage_at

The parameters are in the same order now as in the corresponding macros.

(rillig)

2021-04-18 09:53:03 UTC MAIN commitmail json YAML

lint: extend documentation about handling initializations

(rillig)

2021-04-18 09:50:00 UTC MAIN commitmail json YAML

lint: remove redundant test for tflag in initialization handling

(rillig)

2021-04-18 09:39:53 UTC MAIN commitmail json YAML

lint: migrate global_clean_up_decl to warning_at

(rillig)

2021-04-18 09:37:18 UTC MAIN commitmail json YAML

lint: preserve curr_pos when checking whether a symbol is used

At the end of a function definition (funcend), curr_pos was not
restored, probably because the very next action is to read the next
token, which will then set curr_pos.

Again, this may affect the location reported in assertion failures,
everything else is unchanged.

(rillig)

2021-04-18 09:20:43 UTC MAIN commitmail json YAML

lint: do not modify curr_pos in check_global_symbols

No functional change.

(rillig)

2021-04-18 09:15:16 UTC MAIN commitmail json YAML

lint: in check_global_variable_size, restore curr_pos

This affects only calls to lint_assert, all other code stays
functionally the same.

(rillig)

2021-04-18 09:07:36 UTC MAIN commitmail json YAML

lint: migrate check_tag_usage to warning_at

This one is already a little trickier since it does not restore the
original curr_pos.  This function is only called in a few places, and
these either restore curr_pos themselves or only call functions
afterwards that immediately overwrite curr_pos.

Except for lint_assert, which may now report a different location.

The call to check_global_variable that is related to check_tag_usage was
the function that started this whole refactoring since its lint_assert
reported a completely wrong location when using a compound literal in an
initializer expression at block level 0.

(rillig)

2021-04-18 08:57:57 UTC MAIN commitmail json YAML

lint: migrate print_previous_declaration to message_at

(rillig)

2021-04-18 08:53:35 UTC MAIN commitmail json YAML

lint: migrate the getopt check to warning_at

(rillig)

2021-04-18 08:52:04 UTC MAIN commitmail json YAML

lint: add error_at, warning_at, message_at

Right now there are several places in the code that use the global
variable curr_pos for passing a parameter to the diagnostic functions.
That's not what global variables are for.

Make it easy for the code to migrate to the parameter-passing style.

No functional change.

(rillig)

2021-04-18 08:07:04 UTC MAIN commitmail json YAML

lint: do not allow the diagnostics to be modified

(rillig)

2021-04-18 08:03:57 UTC MAIN commitmail json YAML

tests/lint: remove work-in-progress code

The only purpose of the additional initializers was to generate an error
message, to make the .exp file non-empty.  This is no longer needed.

(rillig)

2021-04-18 08:00:13 UTC MAIN commitmail json YAML

lint: fix storage class of compound literal in initializer

A compound literal that occurs at block_level 0 does not have storage
class AUTO.  Instead, its storage class is either EXTERN or STATIC.

While removing the temporary objects from the symbol table had prevented
the assertion, it did not properly fix the underlying problem, which was
that since C99 the initializers can contain references to unnamed
objects that are created on-the-fly.  For C90 it was correct to always
use AUTO as the storage class of a temporary symbol.

(rillig)

2021-04-18 07:31:47 UTC MAIN commitmail json YAML

2021-04-18 01:28:50 UTC MAIN commitmail json YAML

don't provide db_lstacktrace() for crash (yet?).

(mrg)

2021-04-18 01:05:23 UTC MAIN commitmail json YAML

db_lstacktrace() can't use db_stacktrace_print and log() directly.

log() takes a 'int level' first argument, that must be supplied.
add an inline wrapper that calls vlog() with LOG_INFO, and the
supplied va_list.

(not noticed because this macro is not used anywhere in src but
i have a use in some uncommited code, that now failed to compile.)

(mrg)

2021-04-17 22:03:58 UTC MAIN commitmail json YAML

arm64-gcc10 can run atf fine (with a GCC 9 kernel.)

(mrg)

2021-04-17 22:01:02 UTC MAIN commitmail json YAML

it's spelled aarch64eb.  now aarch64eb userland builds, too.
update arm64 status (kernels still need new libkern help.)

(mrg)

2021-04-17 21:43:47 UTC MAIN commitmail json YAML

avoid redefinition warning for __OPTIMIZE_SIZE__.

(mrg)

2021-04-17 21:37:21 UTC MAIN commitmail json YAML

fix error in previous: UVMHIST_PDHIST_SIZE needs to stay next to pdhistbuf[].

(mrg)

2021-04-17 21:20:08 UTC MAIN commitmail json YAML

2021-04-17 20:57:18 UTC MAIN commitmail json YAML

tests/lint: fix analysis from previous commit, add another example

This is not a GCC feature, it's required by C99 already.

(rillig)

2021-04-17 20:42:57 UTC MAIN commitmail json YAML

2021-04-17 20:42:10 UTC MAIN commitmail json YAML

2021-04-17 20:36:17 UTC MAIN commitmail json YAML

2021-04-17 20:12:55 UTC MAIN commitmail json YAML

2021-04-17 18:03:32 UTC thorpej-cfargs commitmail json YAML

acpi_md_gtdt_probe(): Fix paste-o in interface attribute name.

(thorpej)

2021-04-17 18:03:21 UTC MAIN commitmail json YAML

Make pat_init() a NOOP on XENPV; it causes a trap with Xen 4.15

(bouyer)

2021-04-17 17:26:23 UTC thorpej-cfargs commitmail json YAML

2021-04-17 16:58:05 UTC MAIN commitmail json YAML

lint: do not warn about alignment when casting from incomplete struct

This removes a bunch of technically correct but practically useless
warnings from the regular NetBSD build.

(rillig)

2021-04-17 16:52:09 UTC MAIN commitmail json YAML

tests/lint: add test for pointer cast from incomplete struct

(rillig)

2021-04-17 13:25:57 UTC MAIN commitmail json YAML

Sync MAXfoo params with oea:

  MAXTSIZ: 512MB -> 128MB
  MAXDSIZ: 3.25GB -> 1GB

There should be no particular reasons for having different values.

(rin)

2021-04-17 13:23:24 UTC MAIN commitmail json YAML

PR port-powerpc/56107

Decrease MAXSSIZ from ~256MB to 32MB (same as oea).

This fixes tests in /usr/tests/usr.bin/make, that run with "ulimit -v 200000",
fail with "Cannot map anonymous memory".

Although I'm not fully convinced whether this limit is reasonable or not,
old MAXSSIZ of ~256MB is too much anyway.

(rin)

2021-04-17 11:36:34 UTC MAIN commitmail json YAML

tests/make: remove ATF descr

The description of the tests is not going to be added anytime soon, as
that would either create redundancy or additional run-time cost.
Parsing and evaluating unit-tests/Makefile is already O(n^2) with regard
to the number of tests, and there are quite a few tests.  Therefore don't
add any overhead for now.

(rillig)

2021-04-17 11:31:26 UTC MAIN commitmail json YAML

tests/make: indent consistently

(rillig)

2021-04-17 11:21:17 UTC MAIN commitmail json YAML

tests/make: simplify selection of the files to be copied

No functional change.

(rillig)

2021-04-17 11:01:34 UTC MAIN commitmail json YAML

lint1: remove redundant dependency

This is already handled by "make depend".

(rillig)

2021-04-17 10:54:47 UTC MAIN commitmail json YAML

add support for arm64 lse.S.

arm64 userland much happier now.  /usr/bin/gcc as gcc 10 on arm64
is fine, build is complete, though i did not test xsrc yet.

(mrg)

2021-04-17 10:53:18 UTC MAIN commitmail json YAML

remove double arm64 netbsd target.  add t-lse, though we don't
pull this out with mknative currently.

(mrg)

2021-04-17 10:19:09 UTC MAIN commitmail json YAML

port the -mnative support in GCC 10 to netbsd.  (much simpler than 8->9!)

(mrg)

2021-04-17 10:13:09 UTC MAIN commitmail json YAML

tmux 3.2 out.

(wiz)

2021-04-17 09:39:33 UTC MAIN commitmail json YAML

Use GCC10 for all amd64 including XEN kernels.

(mlelstv)

2021-04-17 09:22:29 UTC MAIN commitmail json YAML

Adjust TABs. No functional changes.

(rin)

2021-04-17 08:35:33 UTC MAIN commitmail json YAML

Remove SCCS workaround. No binary change.

(maya)

2021-04-17 08:34:28 UTC MAIN commitmail json YAML

Remove SCCS workarounds. No binary change.

(maya)

2021-04-17 08:06:58 UTC MAIN commitmail json YAML

Use __register_t instead of uregister_t - this is available to all ports
and both userland and kernel.

(simonb)

2021-04-17 06:14:15 UTC MAIN commitmail json YAML

Remove SCCS workarounds. No binary change.

(maya)

2021-04-17 06:02:35 UTC MAIN commitmail json YAML

Cast the fill value to unsigned char so that the "fill" value used for
full-word fills isn't garbage.

(simonb)

2021-04-17 05:57:11 UTC MAIN commitmail json YAML

Disable the larger/faster code path.  While the optimised code path was
indeed quicker, it nonetheless failed to actually fill all the requested
memory with the specified value much of the time if a non-aligned start
address was used.

(simonb)

2021-04-17 04:11:52 UTC MAIN commitmail json YAML

note GCC 10 and the ports that switched.

(mrg)

2021-04-17 04:08:32 UTC MAIN commitmail json YAML

add a note about potential GCC 9->10 build failures

(mrg)

2021-04-17 04:07:16 UTC MAIN commitmail json YAML

switch alpha, ia64, sparc*, riscv*, amd64 and vax to GCC 10 default.

(mrg)

2021-04-17 03:57:42 UTC MAIN commitmail json YAML

Compile in compat32 syscall names all the time, as we do for native
syscall names.  Needed for dtrace.

(simonb)

2021-04-17 01:59:41 UTC MAIN commitmail json YAML

various updates, thanks to those who provided feedback.

- powerpc ports work
- m68k ports work, x68k has a new caveat
- hppa works
- mips64eb vs UVMHIST has been fix
- i386 reboot problem fixed (cardbus issue, not GCC related)

(mrg)

2021-04-17 01:53:58 UTC MAIN commitmail json YAML

remove KERNHIST_INIT_STATIC().  it stradles the line between usable
early in boot and broken early in boot by requiring a partly static
structure with another structure that must be present by the time
any uses are performed.  theoretically platform code could allocate
a chunk while seting up memory and assign it here, giving a dynamic
sizing for the entry list, but the reality is that all users have
a statically allocated entry list as well.

the existing KERNHIST_LINK_STATIC() is used in conjunction with
KERNHIST_INITIALIZER() instead.

this stops a NULL pointer deref when the _LOG() macro is called
before the storage is linked in, which happens with GCC 10 on OCTEON
with UVMHIST enabled, crashing in very early kernel init.

(mrg)

2021-04-17 01:19:48 UTC MAIN commitmail json YAML

convert cardslot event thread from wakeup/tsleep to mutex/condvar.
this avoids a strange hang at reboot i am seeing on an old pentium4-m
laptop, that was introduced with kern_mutex.c 1.91/92, though i can
not really explain why that matters (in the waiting thread, a pointer
that should be NULL remains non NULL.)  thanks to jmcneill@ for some
helpful review commentary here.

don't panic() if either "cardbus" or "pcmcia" didn't attach and a
card is inserted.  this can happen for various reasons, including
some regression in netbsd (-current, and -9, at least) that suggests
using PCI_BUS_FIXUP (though it still fails to attach the card i have.)

both found with GCC 10 testing, though both also occur with GCC 7 in
the netbsd-9 tree as well.

(mrg)

2021-04-17 00:05:31 UTC MAIN commitmail json YAML

avoid an error in the recent sys/evcnt.h change to drop the 0
array size from evcnt_sysctl:ev_strings that clang does not like.

the previous "struct xevcnt_sysctl" was well defined as the
evcnt_sysctl with array length of 0 could be placed as the
anywhere in other structures, but with [] it must remain last
and xevcnt_sysctl then places a char array afterwards.

avoid this entirely by removing struct xevcnt_sysctl, combining
the string array + struct evcnt_sysctl size manually for the
allocation, and moving all "ev_string" accesses to be via the
new [] array.

(mrg)

2021-04-17 00:02:19 UTC MAIN commitmail json YAML

2021-04-16 22:41:12 UTC MAIN commitmail json YAML

PR/56112: Justin Parrott: Don't unlink a lock file without locking it, because
you can have races when multiple processes try to unlink it. Check the link
count to see if we have won the race.

While here:
- use snprintf
- use warn
- use size_t/ssize_t
- use loops instead of goto
- KNF

(christos)

2021-04-16 18:31:28 UTC MAIN commitmail json YAML

make value an int to avoid all the casts and conversion warnings.

(christos)

2021-04-16 17:04:59 UTC netbsd-9 commitmail json YAML

2021-04-16 17:03:59 UTC netbsd-9 commitmail json YAML

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

crypto/external/bsd/openssl/lib/libcrypto/arch/sparc/modes.inc: revision 1.6

Restore r1.3 of modes.inc: we are using this directory for the
-m32 compat builds on sparc64, where the sparcv9 instructions
and the GHASH asm code are usefull.

(martin)

2021-04-16 16:49:28 UTC MAIN commitmail json YAML

make: use distinct wording for writing to the shell commands file

The word 'write' now means to write to the file that holds the shell
commands to be run later.

The word 'print' is now used exclusively for handling the output of the
child commands and printing them to make's stdout.

No functional change.

(rillig)

2021-04-16 16:10:01 UTC MAIN commitmail json YAML

make: align name of jobs_table_dump to the other functions

(rillig)

2021-04-16 15:53:56 UTC MAIN commitmail json YAML