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 (175d)  thorpej-altq-separation (178d) 

2024-05-10 14:07:38 UTC Now

2021-01-24 11:13:22 UTC MAIN commitmail json YAML

lint: demonstrate wrong 124 due to bug in is_typeok_eq

(rillig)

2021-01-24 10:57:17 UTC MAIN commitmail json YAML

lint: fix local variable names in check_pointer_comparison

(rillig)

2021-01-24 10:55:11 UTC MAIN commitmail json YAML

lint: clean up typeok_eq and check_pointer_comparison

Since typeok_eq does not issue any diagnostics, prefix it with "is_".

By convention, the variable rt aliases rn->tn_type->t_tspec.  Make it
obvious that in check_pointer_comparison, rt corresponds to the subtype
of the pointer.

(rillig)

2021-01-24 10:50:42 UTC MAIN commitmail json YAML

lint: document bug in typeok_eq

Since rt is an alias for rn->tn_type->t_tspec, it cannot be PTR and VOID
at the same time.  This makes the condition unsatisfiable.  Removing
that part of the code didn't show any change in behavior, as expected.

It may even be that fixing this obvious bug doesn't show any change in
behavior since that function is only used in a single place and
check_pointer_comparison performs its own checks before issuing any
warning.

At least the test cases added to msg_124.c all run as expected.

(rillig)

2021-01-24 09:44:35 UTC MAIN commitmail json YAML

lint: fix build on Cygwin

Cygwin does not conform to C99, which says that MB_CUR_MAX has type
size_t.

Instead, Cygwin defines it as type int.  This leads to compile errors
because comparing signed with unsigned expressions is surprising in C.

(rillig)

2021-01-24 09:25:17 UTC MAIN commitmail json YAML

lint: expand abbreviations in lexer function names

No functional change.

(rillig)

2021-01-24 09:18:42 UTC MAIN commitmail json YAML

2021-01-24 07:58:48 UTC MAIN commitmail json YAML

2021-01-24 07:36:54 UTC MAIN commitmail json YAML

2021-01-24 05:30:05 UTC MAIN commitmail json YAML

Use temperature sensors as rnd(9) sources.

(rin)

2021-01-24 05:22:22 UTC MAIN commitmail json YAML

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

2021-01-24 05:16:57 UTC MAIN commitmail json YAML

2021-01-24 05:14:55 UTC MAIN commitmail json YAML

Switch to if_percpuq_enqueue() from if_input().

(rin)

2021-01-24 01:44:12 UTC MAIN commitmail json YAML

Add a comment explaining why bus_space_write_8 is limited to virtio.

(christos)

2021-01-24 00:15:20 UTC MAIN commitmail json YAML

2021-01-24 00:11:07 UTC MAIN commitmail json YAML

2021-01-24 00:02:38 UTC MAIN commitmail json YAML

2021-01-23 23:11:40 UTC MAIN commitmail json YAML

lint: apply strict bool mode to lex.c

There are 2 remaining expressions:

In line 244, !(kw->kw_deco & deco) is a bitwise and.  This is already
allowed for enums, it needs to be allowed for arbitrary integer
expressions as well.  This covers the many places where plain integers
are used for bit fields, together with #define.  This pattern is not as
typesafe as using enums, still it is common practice.

In line 769, the expression !finite(f) is a legitimate use of a function
that has return type int for traditional reasons.  It's the same as for
ferror.

There are several other functions like unlink, open or strcmp that have
return type int as well, but with a different meaning.  It is not yet
clear what the best way is to handle these different meanings.  Having
to write finite(f) == 0 in strict bool mode doesn't look idiomatic, on
the other hand, !strcmp(s1, s2) is exactly the pattern that strict bool
mode wants to avoid.

(rillig)

2021-01-23 22:34:01 UTC MAIN commitmail json YAML

lint: fix error message for relaxed bool operations in system headers

In strict mode, allowing 1 as bool constant expression is probably not
needed in practice since most comparisons are != 0 instead of == 0.

Furthermore, in the expression (flags & 0x0002) == true, comparing with
true is misleading since the '==' operator can never evaluate to true in
this case.

(rillig)

2021-01-23 22:24:49 UTC MAIN commitmail json YAML

2021-01-23 22:20:18 UTC MAIN commitmail json YAML

lint: fix two wrong error messages in strict bool mode

The strict bool mode gets complicated because for system headers the
rules need to be relaxed since they cannot be changed easily, often not at all.

Still, if lint validates a program in strict bool mode, that program
must run with equal behavior regarding boolean expressions even on a
pre-C99 platform.

(rillig)

2021-01-23 20:00:19 UTC MAIN commitmail json YAML

Provide a generic bus_space_write_8 function that is bi-endian.

(christos)

2021-01-23 19:41:16 UTC MAIN commitmail json YAML

Fix building in the _STANDALONE case.

(thorpej)

2021-01-23 19:38:53 UTC MAIN commitmail json YAML

2021-01-23 19:38:08 UTC MAIN commitmail json YAML

2021-01-23 19:03:55 UTC MAIN commitmail json YAML

2021-01-23 18:30:29 UTC MAIN commitmail json YAML

lint: clean up comments and variable names in lex.c

(rillig)

2021-01-23 17:58:03 UTC MAIN commitmail json YAML

lint: move lexer code from scan.l to lex.c

Previously, the generated scan.c was not included when running "make
lint".  Similarly, cgram.c is still not included.

(rillig)

2021-01-23 16:33:49 UTC MAIN commitmail json YAML

threadpool(9): Fix synchronization between cancel and dispatch.

- threadpool_cancel_job_async tried to prevent
  threadpool_dispatcher_thread from taking the job by setting
  job->job_thread = NULL and then removing the job from the queue.

- But threadpool_cancel_job_async didn't notice job->job_thread is
  null until after it also removes the job from the queue =>
  double-remove, *boom*.

The solution is to teach threadpool_dispatcher_thread to wait until
it has acquired the job lock to test whether job->job_thread is still
valid before it decides to remove the job from the queue.

Fixes PR kern/55948.

XXX pullup-9

(riastradh)

2021-01-23 15:00:33 UTC MAIN commitmail json YAML

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

Fix "no output of xdpyinfo(1) on redirect or pipe" problem.

XF86cleanup() in libXxf86dga invoked via atexit(3)
(or __attribute__((__destructor__)) in NetBSD xsrc)
calls _exit(2) directly so fflush(3) via normal exit(3)
is not called.  Analyzed by rin@, ryo@, and soda@:
https://mail-index.netbsd.org/tech-x11/2021/01/20/msg002192.html

Should be pulled up to netbsd-9.

XXX1: The original XF86cleanup() is not async-signale-safe.
XXX2: XF86DGAGetVideo() implicitly overrides signal handlers.

(tsutsui)

2021-01-23 13:02:00 UTC netbsd-9 commitmail json YAML

2021-01-23 13:01:10 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by jmcneill in ticket #1186):

sys/dev/pci/if_ena.c: revision 1.27

PR kern/55942: destroyed ena(4) evcnts cause panic

Fix event counter teardown code. From KUSABA Takeshi

(martin)

2021-01-23 12:53:46 UTC MAIN commitmail json YAML

vcaudio: don't advertise CAPTURE when all functions return EINVAL

(nia)

2021-01-23 12:36:02 UTC MAIN commitmail json YAML

make(1): split Dir_FindFile into separate functions

(rillig)

2021-01-23 12:35:22 UTC MAIN commitmail json YAML

make(1): rename local variable in FindCmds

(rillig)

2021-01-23 12:34:19 UTC MAIN commitmail json YAML

2021-01-23 12:25:35 UTC MAIN commitmail json YAML

make(1): remove the remaining beasts from the comments

(rillig)

2021-01-23 12:03:25 UTC MAIN commitmail json YAML

make(1): improve variable names when parsing directives

(rillig)

2021-01-23 11:50:30 UTC MAIN commitmail json YAML

kern/55942: destroyed ena(4) evcnts cause panic

Fix event counter teardown code. From KUSABA Takeshi <t-kusaba@iij.ad.jp>

(jmcneill)

2021-01-23 11:44:10 UTC MAIN commitmail json YAML

make(1): extend comments in dir.c

(rillig)

2021-01-23 11:34:42 UTC MAIN commitmail json YAML

2021-01-23 11:14:59 UTC MAIN commitmail json YAML

make(1): extract SearchPath_ExpandMiddle from SearchPath_Expand

(rillig)

2021-01-23 11:06:04 UTC MAIN commitmail json YAML

make(1): split local variable in SearchPath_Expand

(rillig)

2021-01-23 10:52:03 UTC MAIN commitmail json YAML

make(1): rename parameter of SearchPath_Expand

(rillig)

2021-01-23 10:48:49 UTC MAIN commitmail json YAML

make(1): rename Dir_Expand to SearchPath_Expand

The main subject of this function is the search path.  In this search
path the pattern is expanded.

(rillig)

2021-01-23 07:34:00 UTC MAIN commitmail json YAML

make(1): fix unit tests for dash and bash 5.1

(rillig)

2021-01-22 22:54:53 UTC MAIN commitmail json YAML

make(1): remove outdated comment from test

It was fixed in var.c 1.472 from 2020-08-25.

(rillig)

2021-01-22 22:03:01 UTC MAIN commitmail json YAML

for the busypage test, replace atf_tc_expect_fail() with atf_tc_skip()
because atf apparently has no way to expect a test program to crash.
fixes PR 55945.

(chs)

2021-01-22 00:44:55 UTC MAIN commitmail json YAML

make(1): fix test for .INCLUDEDFROMFILE

The test did not test the intended variable before.

If the implementation of the .INCLUDEDFROMFILE had been wrong before,
the test would have succeeded nevertheless since it tested whether the
variable named "include-main.mk" was defined, which was obviously never
the case since that's the value of the variable, not the name.

(rillig)

2021-01-22 00:12:01 UTC MAIN commitmail json YAML

make(1): remove "warning" from missing closing parenthesis

This only affects the diagnostics for parse errors that involve a
missing closing parenthesis.  Whether or not this is a parse error is
still the same.

It may look redundant to pass both the CondParser and the parsing
position pp to the functions, but that's necessary since during parsing,
not every code path updates the main parsing position immediately.

(rillig)

2021-01-21 23:32:28 UTC MAIN commitmail json YAML

make(1): replace warning + error with just an error in conditionals

Before, there was a "warning" for comparing strings using '<', which was
wrong.  That warning was then followed by an error, after parsing the
whole conditional.  This was only because it was easier to implement.

Replace the warning with an actual error.  This only affects
conditionals in .if lines, the conditionals in the :? modifier such as
${"A" < "B":?smaller:greater} still print 2 errors.

(rillig)

2021-01-21 23:25:08 UTC MAIN commitmail json YAML

make(1): fix debug output for comparison operators in conditionals

This produces fewer warnings than before, but these were edge cases that
probably didn't matter in practice.  The "Malformaed conditional" is
still generated, the set of accepted conditionals is still the same.

(rillig)

2021-01-21 23:06:06 UTC MAIN commitmail json YAML

make(1): document wrong debug output in evaluation of conditionals

(rillig)

2021-01-21 23:03:41 UTC MAIN commitmail json YAML

2021-01-21 22:54:13 UTC MAIN commitmail json YAML

make(1): reformat CondParser_StringExpr

(rillig)

2021-01-21 21:45:42 UTC MAIN commitmail json YAML

introduce a putchar() based implementation of cursor() in order to avoid
framebuffer reads
quite a speedup on arm64 / genfb

(macallan)

2021-01-21 20:48:33 UTC MAIN commitmail json YAML

Remove dependency on bus_space_write_8() for i386 and instead implement it as
two bus_space_write_4()'s as allowed in the spec.

(reinoud)

2021-01-21 19:37:23 UTC MAIN commitmail json YAML

remove stray debug #define DEBUG

(jdolecek)

2021-01-21 18:09:23 UTC MAIN commitmail json YAML

adjust kq_check() (enabled with DEBUG) to new reality - it's now perfectly
normal to have kq_count bigger than number of the linked entries
on the kqueue

PR kern/50094, problem pointed out by Chuck Silvers

(jdolecek)

2021-01-21 18:09:10 UTC MAIN commitmail json YAML

Add SRTP (Secure Real-time Transport Protocol)

(kamil)

2021-01-21 17:58:56 UTC MAIN commitmail json YAML

Add RTP (Real-time Transport Protocol)

(kamil)

2021-01-21 17:53:05 UTC MAIN commitmail json YAML

Add PBX (private branch exchange)

(kamil)

2021-01-21 17:46:28 UTC MAIN commitmail json YAML

add vcaudio (intentionally this time)

gives working audio output on rpi3 without needing to run a 32-bit image.

(nia)

2021-01-21 17:33:55 UTC MAIN commitmail json YAML

entropy: Reduce `no seed from bootloader' message to debug level.

This does not necessarily indicate a problem -- only x86 and arm pass
a seed from the bootloader anyway -- so it makes for an always-on
warning on some platforms, including all rump kernels, which is not
helpful.

(riastradh)

2021-01-21 17:05:51 UTC MAIN commitmail json YAML

2021-01-21 16:57:53 UTC MAIN commitmail json YAML

Use Nm instead of xref to itself. Fix typo.

(wiz)

2021-01-21 15:53:16 UTC MAIN commitmail json YAML

2021-01-21 15:44:14 UTC MAIN commitmail json YAML

Allow this to be built for the strlist.c unit tests.

(thorpej)

2021-01-21 15:43:37 UTC MAIN commitmail json YAML

Add a generic set of routines for interacting with OpenFirmware-style
string lists.

(thorpej)

2021-01-21 14:30:01 UTC MAIN commitmail json YAML

make(1): merge duplicate code in Parse_MainName

(rillig)

2021-01-21 14:24:25 UTC MAIN commitmail json YAML

make(1): extract CondParser_StringExpr from CondParser_String

(rillig)

2021-01-21 14:08:09 UTC MAIN commitmail json YAML

2021-01-21 13:52:32 UTC MAIN commitmail json YAML

2021-01-21 13:51:25 UTC MAIN commitmail json YAML

make(1): make CondParser_String simpler

No functional change.

(rillig)

2021-01-21 13:32:17 UTC MAIN commitmail json YAML

2021-01-21 13:31:38 UTC MAIN commitmail json YAML

make(1): fix Coverity annotation

FStr is not an allocated data type.

(rillig)

2021-01-21 09:50:37 UTC MAIN commitmail json YAML

PRIxXXXX (etc) definitions should not include the %

Will fix anything this ends up breaking later.

(kre)

2021-01-21 08:17:13 UTC MAIN commitmail json YAML

Use PRIxBUSSIZE to print a bus_size_t value.

(martin)

2021-01-21 06:57:26 UTC MAIN commitmail json YAML

remove accidental additions

(nia)

2021-01-21 06:51:56 UTC MAIN commitmail json YAML

2021-01-21 06:18:22 UTC MAIN commitmail json YAML

remove "no options" for compat_ossaudio now it's disabled by default

(nia)

2021-01-21 00:56:41 UTC MAIN commitmail json YAML

Use .set noreorder and use reg names.

atf- lib/libc/sys/t_mprotect mprotect_mremap_exec is a bit happier now.

(simonb)

2021-01-21 00:38:28 UTC MAIN commitmail json YAML

2021-01-20 22:46:33 UTC MAIN commitmail json YAML

fix free_all_endpoints() to not try calling free_pipe() when no endpoints
are allocated; this can happen during config_detach() after attach fails

Reported-by: syzbot+6e8a4c978358ecead03e@syzkaller.appspotmail.com
Reported-by: syzbot+b25ba25b57561144ac6e@syzkaller.appspotmail.com

(jdolecek)

2021-01-20 21:59:49 UTC MAIN commitmail json YAML

Remove the virtio child driver finalisation check KASSERT that, while it
should never trigger, a possible bug in a child driver shouldn't have to panic
the kernel. Instead report the internal error.

(reinoud)

2021-01-20 21:39:09 UTC MAIN commitmail json YAML

fix a race in kqueue_scan() - when multiple threads check the same
kqueue, it could happen other thread seen empty kqueue while kevent
was being checked for re-firing and re-queued

make sure to keep retrying if there are outstanding kevents even
if no kevent is found on first pass through the queue, and only
drop the KN_QUEUED flag and kq_count when actually completely done
with the kevent

change is inspired by the FreeBSD in-flux handling, but without
introducing the reference counting

PR kern/50094 by Christof Meerwald

(jdolecek)

2021-01-20 21:38:44 UTC MAIN commitmail json YAML

COMPAT_OSSAUDIO no longer exists; remove dangling reference

(pgoyette)

2021-01-20 19:46:48 UTC MAIN commitmail json YAML

Add VirtIO PCI v1.0 attachments and fix the drivers affected.

The vioif, ld, scsi, viornd and viomb devices were adjusted when needed and
tested both in legacy 0.9 and v1.0 attachments trough PCI on amd64, sparc64,
aarch64 and aarch64-eb. ACPI/FDT attachments also tested on
aarch64/aarch64-eb.

Known issues

* viomb on aarch64 works only with ACPI/FDT attachment but not with PCI
  attachment. PCI and ACPI/FDT attachment works on aarch64-eb.

* virtio on sparc64 attaches but is it not functioning though not a
  regression.

(reinoud)

2021-01-20 18:26:11 UTC MAIN commitmail json YAML

Sync with OpenBSD if_rge.c r1.4

"""
Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.
"""

(jakllsch)

2021-01-20 15:27:51 UTC MAIN commitmail json YAML

Consistently use ACPI_SIG_SSDT

(skrll)

2021-01-20 13:22:08 UTC MAIN commitmail json YAML

2021-01-20 10:26:43 UTC MAIN commitmail json YAML

if_tap was made mpsafe in revision 1.102

(nia)

2021-01-20 06:53:17 UTC MAIN commitmail json YAML

The max number of queue(pair) is not 7 but 8. Inspired by DPDK.

(msaitoh)

2021-01-20 01:20:26 UTC MAIN commitmail json YAML

2021-01-20 00:48:49 UTC MAIN commitmail json YAML

Fix previous; of_search_compatible returns the sentinel when there is no
match, so we need to test ->data for NULL, not the return value.

(jmcneill)

2021-01-20 00:41:15 UTC MAIN commitmail json YAML

update comment to match new reality

(jmcneill)

2021-01-19 22:12:44 UTC MAIN commitmail json YAML

make(1): extract DetermineKindOfConditional from Cond_EvalLine

(rillig)

2021-01-19 21:55:20 UTC MAIN commitmail json YAML

make(1): remove struct If from evaluation of conditionals

The variant of the .if directive can be stored in the CondParser
directly, instead of pointing to a struct If.

The type CondParser may have to be renamed since the condition is not
only parsed, it is evaluated as well.

No functional change.

(rillig)

2021-01-19 20:51:46 UTC MAIN commitmail json YAML

2021-01-19 19:54:57 UTC MAIN commitmail json YAML

make(1): add test for unsupported relational string comparisons

(rillig)

2021-01-19 19:29:35 UTC MAIN commitmail json YAML

make(1): distinguish between tokens and results in conditionals

No functional change.

(rillig)

2021-01-19 18:20:30 UTC MAIN commitmail json YAML

make(1): update references to the renamed CondParser functions

(rillig)

2021-01-19 18:18:43 UTC MAIN commitmail json YAML

make(1): condense code for parsing and evaluating conditionals

(rillig)

2021-01-19 18:13:37 UTC MAIN commitmail json YAML

2021-01-19 18:09:12 UTC MAIN commitmail json YAML

make(1): demonstrate missing error handling for malformed conditions

(rillig)

2021-01-19 17:57:07 UTC MAIN commitmail json YAML

make(1): fix possible return values for CondParser_Term

The invalid return values didn't do any harm since CondParser_Factor and
CondParser_Expr passed them through, and CondParser_Eval carefully
checks for TOK_TRUE or TOK_FALSE and treats everything else as an error.

No change in observable behavior since there is no debug logging in that
part of the code.

(rillig)

2021-01-19 17:49:13 UTC MAIN commitmail json YAML

2021-01-19 14:39:20 UTC MAIN commitmail json YAML

2021-01-19 14:35:30 UTC MAIN commitmail json YAML

Use device_compatible_entry / of_search_compatible() for the child
nodes rather than using of_compatible() to match against different
sets of compatible strings.

(thorpej)

2021-01-19 08:10:17 UTC MAIN commitmail json YAML

2021-01-19 05:49:33 UTC MAIN commitmail json YAML

make(1): normalize shell error messages in tests

Newly supported is bash, which outputs "bash: line 123".

(rillig)

2021-01-19 05:26:34 UTC MAIN commitmail json YAML

make(1): fix tests for :gmtime and :localtime for 32-bit time_t

The comparison operator had accidentally been '!=' instead of '=='.

While here, proofread the documentation and add references for where the
32-bit time_t is defined on Linux and FreeBSD.

(rillig)

2021-01-19 05:05:39 UTC MAIN commitmail json YAML

Add note about enabling TPM and rnd(4) source.

(riastradh)

2021-01-19 03:41:22 UTC MAIN commitmail json YAML

The read/write/send/recv system calls return ssize_t because -1 is
returned on error.  Therefore we must restrict the lengths of any
buffers to NETBSD32_SSIZE_MAX with compat32 to avoid garbage return
values.

Fixes ATF lib/libc/sys/t_write:write_err.

(simonb)

2021-01-19 03:25:50 UTC MAIN commitmail json YAML

Use device_compatible_entry / of_search_compatible() to match the clock
type rather than calling of_compatible() on different sets of compatible
strings.

(thorpej)

2021-01-19 03:20:13 UTC MAIN commitmail json YAML

2021-01-19 02:40:07 UTC MAIN commitmail json YAML

2021-01-19 01:47:58 UTC MAIN commitmail json YAML

Also print mmap return value and error code #ifdef DEBUG_MMAP.

(simonb)

2021-01-19 00:40:17 UTC MAIN commitmail json YAML

Use device_compatible_entry / of_search_compatible() for the GICv3
quirk table.

(thorpej)

2021-01-19 00:38:52 UTC MAIN commitmail json YAML

Use device_compatible_entry / of_search_compatible() rather than
matching against multiple sets of compatibility strings.

(thorpej)

2021-01-19 00:36:09 UTC MAIN commitmail json YAML

Use device_compatible_entry / of_search_compatible() rather than
matching against multiple sets of compatinbility strings.

(thorpej)

2021-01-19 00:35:10 UTC MAIN commitmail json YAML

Use device_compatible_entry / of_search_compatible() rather than matching
against multiple sets of compatibility strings.

(thorpej)

2021-01-18 23:43:35 UTC MAIN commitmail json YAML

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

2021-01-18 20:02:34 UTC MAIN commitmail json YAML

2021-01-18 19:24:09 UTC MAIN commitmail json YAML

2021-01-18 19:21:53 UTC MAIN commitmail json YAML

lint: flatten check_global_variable_size

(rillig)

2021-01-18 18:53:28 UTC MAIN commitmail json YAML

lint: rename grammar rule lorange

It looked too much like an orange.

(rillig)

2021-01-18 18:18:20 UTC MAIN commitmail json YAML

lint: rename grammar rules to align with C99 6.7.6

(rillig)

2021-01-18 18:14:57 UTC MAIN commitmail json YAML

lint: fix precedence of __builtin_offsetof

A previous version of the C grammar contained TBUILTIN_SIZEOF in this
place, which had two typos.  Therefore it was handled as a separate
token that was otherwise ignored.  Curiously, bison didn't warn about
this obvious inconsistency.

(rillig)

2021-01-18 17:59:51 UTC MAIN commitmail json YAML

lint: sort tokens in grammar

(rillig)

2021-01-18 17:54:50 UTC MAIN commitmail json YAML

lint: rename T_SOU to T_STRUCT_OR_UNION

This abbreviation occurred too seldom to be used.

(rillig)

2021-01-18 17:47:44 UTC MAIN commitmail json YAML

lint: don't treat restrict and _Thread_local as volatile anymore

(rillig)

2021-01-18 17:43:44 UTC MAIN commitmail json YAML

lint: fix assertion failure for restrict and _Thread_local

(rillig)

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

lint: add more test cases for duplicate type qualifiers

(rillig)

2021-01-18 17:20:15 UTC MAIN commitmail json YAML

lint: align token names with the wording from C99

(rillig)

2021-01-18 17:11:14 UTC MAIN commitmail json YAML

lint: remove redundant operators from lexer

Several tokens correspond to exactly one operator.  For these tokens,
the operator is never accessed, therefore it is confusing to associate
it with the token.

(rillig)

2021-01-18 16:47:46 UTC MAIN commitmail json YAML

2021-01-18 16:41:57 UTC MAIN commitmail json YAML

2021-01-18 16:34:09 UTC MAIN commitmail json YAML

lint: rename T_ELLIPSE to T_ELLIPSIS

The 3 dots have nothing to do with geometry.

(rillig)

2021-01-18 16:29:59 UTC MAIN commitmail json YAML

lint: rename T_STROP to T_MEMBACC

The 'STR' was misleading since it is the abbreviation for 'string' in
many other programs.  Member access not only happens in structs, it also
happens in unions.

(rillig)

2021-01-18 15:29:31 UTC MAIN commitmail json YAML

NetBSD 9.99.78 -- signature of device_compatible_match() changed.

(thorpej)

2021-01-18 15:28:21 UTC MAIN commitmail json YAML

Change the device_compatible_match() function to only perform the match.
Introduce a device_compatible_lookup() function to return an entry based
on the same matching criteria (a'la of_search_compatible()).

Update iic_compatible_match() to reflect the above change, and introduce
iic_compatible_lookup().  This pattern is less awkward to use.

(thorpej)

2021-01-18 13:29:37 UTC MAIN commitmail json YAML

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

Fix ixg(4) Rx interrupt stall when Rx buffers are exhausted.

Current ixgbe_rxeof() implementation calls ixgbe_refresh_mbufs()(and
ixgbe_getjcl()) after ixgbe_rx_input()(and if_percpuq_enqueue()).
And ixg(4) uses its own m_ext structure.  That causes Rx interrupt
stall when Rx buffers are exhausted.  e.g. TCP iperf3 with large
windows size.  Furthermore, Rx descriptor problem has occurred
after stoppping the load.

To fix that problem, ixgbe_rxeof() must call ixgbe_getjcl() before
ixgbe_rx_input(), and must discard the new packet when ixgbe_getjcl()
fails.

By the way, ixg(4) should use MCLGET() instead of own m_ext structure.

ok'ed by msaitoh@n.o, thanks.

(knakahara)

2021-01-18 08:29:33 UTC MAIN commitmail json YAML

Trailing whitespace

(skrll)

2021-01-18 05:44:21 UTC MAIN commitmail json YAML

Check for MAP_FAILED instead of NULL when looking for an error from mmap(2).

(simonb)

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

Invoke hardclock() and statclock() in the interrupt context.

Otherwise, entropy_enter() is used instead of entropy_enter_intr() in
statclock(), which results in KASSERT() failure.

(rin)

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

Simplify and correct stale comment; nticks-th hardclock() had no longer
been special since rev 1.24:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/ibm4xx/clock.c#rev1.24

No functional changes intended.

(rin)

2021-01-18 03:35:11 UTC MAIN commitmail json YAML

Oooppss we need another size bump

(pgoyette)

2021-01-18 02:43:27 UTC MAIN commitmail json YAML

2021-01-18 02:35:50 UTC MAIN commitmail json YAML

2021-01-18 01:38:44 UTC MAIN commitmail json YAML

Fix build as crash(8); Protect db_md_meminfo_cmd() by defined(_KERNEL).

(rin)

2021-01-18 00:32:38 UTC MAIN commitmail json YAML

disable compat_ossaudio, it's not useful without compat_linux

when running netbsd binaries we use userspace libossaudio instead.

"oh. plz undo then. badly named option" - jmcneill

(nia)

2021-01-17 23:04:09 UTC MAIN commitmail json YAML

2021-01-17 23:00:41 UTC MAIN commitmail json YAML

2021-01-17 22:32:25 UTC MAIN commitmail json YAML

rump_component_init() is called recursively, so LIST_FOREACH_SAFE is not
actually safe, since the recursive calls can result in elements other than
the current element being removed from the list.  instead use an explicit
marker element to do safe list traversal.

(chs)

2021-01-17 21:56:20 UTC MAIN commitmail json YAML

Change the device_compatible_entry struct to have a union of
a scalar value (uintptr_t value) and a pointer value (const void *data),
rather than just "uintptr_t data".  This eliminates the need for drivers
to cast this value, and doesn't lose const'ness of pointers assigned
to the field.

Update all of the users of this field to use the correct set of
designated initialisers for each specific case.

(thorpej)

2021-01-17 21:47:50 UTC MAIN commitmail json YAML

Use designated initializers and a consistent termination style in
compat_data[].

(thorpej)

2021-01-17 21:42:35 UTC MAIN commitmail json YAML

2021-01-17 21:19:06 UTC MAIN commitmail json YAML

lint: add test for macro from system header in strict bool mode

Seen in usr.bin/make/meta.c:1670: FD_ZERO(&readfds).  These macros
cannot be fixed since system headers must not include <stdbool.h>.
Therefore INT constants should be accepted as controlling expressions as
well.

(rillig)

2021-01-17 21:03:27 UTC MAIN commitmail json YAML

Use designated initializers and a consistent termination style in
compat_data[].

(thorpej)

2021-01-17 21:02:33 UTC MAIN commitmail json YAML

2021-01-17 19:54:23 UTC MAIN commitmail json YAML

2021-01-17 19:53:05 UTC MAIN commitmail json YAML

2021-01-17 19:51:43 UTC MAIN commitmail json YAML

2021-01-17 19:32:53 UTC MAIN commitmail json YAML

2021-01-17 19:03:50 UTC MAIN commitmail json YAML

2021-01-17 19:03:32 UTC MAIN commitmail json YAML

Revert previous and introduce vcons_earlyinit, which is like vcons_init
except it does not setup a vcons_intr thread.

(jmcneill)

2021-01-17 17:16:47 UTC MAIN commitmail json YAML

lint: rename typeok_amper to typeok_address

This is about the address-of operator, not about the '&' sign that is
also used for bitwise and.

(rillig)

2021-01-17 17:14:34 UTC MAIN commitmail json YAML

2021-01-17 16:51:12 UTC MAIN commitmail json YAML

The change from config_interrupts to a kthread for VCONS_DRAW_INTR init
unfortunately makes it easier to trigger a race that results in characters
not being erased properly at boot. Work around the original issue a
different way by creating a fake device_t and defer initialization until
we are sure that config_interrupt threads are done. This is not ideal and
the race is still present but fixing this properly would require a rewrite
to make this code MP-safe.

(jmcneill)

2021-01-17 16:32:36 UTC MAIN commitmail json YAML

lint: flatten typeok_ordered_comparison

(rillig)

2021-01-17 16:25:30 UTC MAIN commitmail json YAML

2021-01-17 16:19:54 UTC MAIN commitmail json YAML

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

2021-01-17 16:01:19 UTC MAIN commitmail json YAML

lint: clean up typeok_ordered_comparison

(rillig)

2021-01-17 16:00:16 UTC MAIN commitmail json YAML

lint: add test for ordered comparison between incompatible types

(rillig)

2021-01-17 15:40:28 UTC MAIN commitmail json YAML

2021-01-17 15:31:11 UTC MAIN commitmail json YAML

lint: reduce scope of local variables in check_expr_misc

(rillig)

2021-01-17 15:24:03 UTC MAIN commitmail json YAML

lint: replace integer constants with bool constants

(rillig)

2021-01-17 15:13:15 UTC MAIN commitmail json YAML

Add appropriate memory barriers around sc_busy accesses. Fixes an issue
where character cells are sometimes not erased properly on aarch64 at
boot.

(jmcneill)

2021-01-17 15:09:56 UTC MAIN commitmail json YAML

lint: rename T_AND to T_AMPER

When parsing a text into a C program, the character '&' does not yet
mean 'bitwise and', it could also be the address operator.

(rillig)

2021-01-17 15:06:54 UTC MAIN commitmail json YAML

lint: rename bitwise operators

When there are several variants of the AND operator, both of them should
get a distinguishing prefix, otherwise it's not clear which of the two
possible operators is meant by the plain AND.

(rillig)

2021-01-17 14:55:22 UTC MAIN commitmail json YAML

lint: rename operator STAR to INDIR

C99 calls this operator the "indirection operator".  The word "star"
does not occur in the index of that standard.

(rillig)

2021-01-17 14:50:11 UTC MAIN commitmail json YAML

lint: rename operator AMPER to ADDR

There is no operator called 'ampersand'.  The ampersand sign is merely
the textual representation of both the operator ADDR and the operator
BITAND.

(rillig)

2021-01-17 14:45:21 UTC MAIN commitmail json YAML

lint: rename build_ampersand to build_address

At that stage of analysis, the ampersand is no longer ambiguous, it has
already been resolved as the address-of operator, instead of the
bitwise-and operator.

(rillig)

2021-01-17 14:37:49 UTC MAIN commitmail json YAML

lint: extract fallback_symbol from new_name_node

The code was too close to the right margin, causing unnatural line
breaks.  Furthermore it was getting too long and detailed.

(rillig)

2021-01-17 14:28:25 UTC MAIN commitmail json YAML

fix build without VCONS_DRAW_INTR

(jmcneill)

2021-01-17 14:26:31 UTC MAIN commitmail json YAML

lint: flatten check_pointer_integer_conversion

(rillig)

2021-01-17 13:50:33 UTC MAIN commitmail json YAML

2021-01-17 13:15:03 UTC MAIN commitmail json YAML

2021-01-17 12:23:01 UTC MAIN commitmail json YAML

2021-01-17 11:55:55 UTC MAIN commitmail json YAML

lint: rename local variables in lbasename

(rillig)

2021-01-17 11:32:06 UTC MAIN commitmail json YAML

2021-01-17 11:28:02 UTC MAIN commitmail json YAML

lint: fix type mismatch for strict bool mode

No functional change.

(rillig)

2021-01-17 10:50:01 UTC MAIN commitmail json YAML

Handle the SIOCGNBRINFO_IN6 ioctl for compat32.  ndp -a works with
compat32 now.

(simonb)

2021-01-17 01:54:37 UTC MAIN commitmail json YAML

convert most uses of pmapdebug to use the new DPRINTF() macro.

add PMAP_INITLOUD debug option, that shows how pmap_bootstrap()
eats up the space provided by /boot as spare space.

(mrg)