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

2024-05-10 19:14:41 UTC Now

2021-07-14 08:32:13 UTC MAIN commitmail json YAML

libaltq, cbq: add two options to interface

- no-control: don't create a control class automatically
- no-tbr: don't install TBR

(ozaki-r)

2021-07-14 08:31:15 UTC MAIN commitmail json YAML

altq, cbq: allow the root class to be default

(ozaki-r)

2021-07-14 08:27:59 UTC MAIN commitmail json YAML

altq, cbq: allow no control class

(ozaki-r)

2021-07-14 07:47:23 UTC MAIN commitmail json YAML

Via Jess Thrysoee, from Adrian Bunk: Fix libedit build on Linux/Alpha
Alpha is the only Linux architecture that has SIGINFO:
    https://sources.debian.org/src/manpages/5.10-1/man7/signal.7/#L522

But even on Alpha Ctrl-T is not supported, and therefore no VSTATUS:
    https://sources.debian.org/src/manpages/5.10-1/man3/termios.3/#L603-L608

For consistency check both signal existence and character existence

(christos)

2021-07-14 07:34:16 UTC MAIN commitmail json YAML

The second REQ_RESET USB request by reset_chip() makes LCR, PRE and DIV
registers to have default values 8N1 and 19200 just as the first req does.
Nuke reset_chip() and rundandant set_dte_rate() to amend.
While here added some narrative about prescale/divisor calculation.

(nisimura)

2021-07-14 07:24:14 UTC MAIN commitmail json YAML

Hook up ffsext_strategy to fifos. Pointed out by dholland@

(christos)

2021-07-14 06:50:22 UTC MAIN commitmail json YAML

unset IFF_PROMISC at bpf_detach()

Doing "d->bd_promisc = 0" is that bpf_detach() does not call
ifpromisc(ifp, 0). Currently, there is no reason for
this behavior so that it is removed.
In addition to the change, the workaround for it in vlan(4)
is also removed.

(yamaguchi)

2021-07-14 06:36:00 UTC MAIN commitmail json YAML

Added a test about clearing IFF_PROMISC at vlan_unconfig

This test is related to PR/49196

(yamaguchi)

2021-07-14 06:34:33 UTC MAIN commitmail json YAML

2021-07-14 06:23:06 UTC MAIN commitmail json YAML

Make an mbuf writable before un-tagging

(yamaguchi)

2021-07-14 03:22:33 UTC MAIN commitmail json YAML

2021-07-14 03:19:24 UTC MAIN commitmail json YAML

2021-07-14 03:16:06 UTC MAIN commitmail json YAML

2021-07-14 02:18:10 UTC MAIN commitmail json YAML

Disable the mutex_spin_{enter,exit}() fast-path stubs while I investigate
some an odd IPL-related panic that seems to be related (that I can fairly
reliabily reproduce on an LCA45).

(thorpej)

2021-07-13 22:01:34 UTC MAIN commitmail json YAML

lint: fix wording of message for incomplete struct (2021-07-04)

A struct member is not an argument.  In err.c 1.124 from 2021-07-04, the
wording had been changed, without noticing that the message was used
twice: once for an argument, once for a struct member.

(rillig)

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

2021-07-13 19:38:11 UTC MAIN commitmail json YAML

2021-07-13 19:11:35 UTC MAIN commitmail json YAML

tests/lint: skip test for floating point overflow on alpha

On alpha and a few other platforms (see t_integration.sh), 'long double'
has 128 bit, which under IEEE 754 rules means a decimal exponent of up
to 4932.

(rillig)

2021-07-13 18:50:16 UTC MAIN commitmail json YAML

tests/lint: take archsubdir from usr.bin/xlint/Makefile.inc

This fixes the tests on the various ARM platforms where the platform
name does not correspond to MACHINE_ARCH, such as earmv7hf.

(rillig)

2021-07-13 16:56:43 UTC MAIN commitmail json YAML

Swap encryption no longer experimental or default-off.

(nia)

2021-07-13 13:58:30 UTC MAIN commitmail json YAML

Fix non-MULTIPROCESSOR build (e.g. INSTALL kernel).

(thorpej)

2021-07-13 09:13:00 UTC MAIN commitmail json YAML

PR install/56303: when using xz files enable swap during set extraction
if the machine does not have more than 256MB of RAM.

(martin)

2021-07-13 09:00:27 UTC MAIN commitmail json YAML

lagg: fix typo for ALTQ

(ozaki-r)

2021-07-13 08:23:39 UTC MAIN commitmail json YAML

altq, cbq: calculate a delay period based on a borrowed class

A delay period was calculated based on a suspended class even if the
class can borrow bandwidth from another class.  In that case a delay
period should be calculated based on a borrowed class.  Otherwise
a borrowing class can't borrow bandwidth correctly.

(ozaki-r)

2021-07-13 08:04:31 UTC MAIN commitmail json YAML

altq, cbq: apply the do-while idiom to TV_* macros

(ozaki-r)

2021-07-13 07:59:48 UTC MAIN commitmail json YAML

altq, cbq: don't increment the xmit counter of the root class twice wrongly

(ozaki-r)

2021-07-13 06:56:24 UTC MAIN commitmail json YAML

2021-07-13 06:56:09 UTC MAIN commitmail json YAML

2021-07-13 05:53:13 UTC MAIN commitmail json YAML

2021-07-13 05:22:27 UTC MAIN commitmail json YAML

also look for libgbm in ${OLD_SUFFIX}.

(mrg)

2021-07-13 01:59:10 UTC MAIN commitmail json YAML

As with membar_producer() and membar_sync(), initialize the fast-path
lock stubs with "unop" isns where memory barriers need to be, and if
we detect a multiprocessor system, patch those locations with "mb" insns.

(thorpej)

2021-07-12 22:02:44 UTC MAIN commitmail json YAML

lint: order type declarations in grammar, group by C99 section

No functional change.

(rillig)

2021-07-12 21:43:44 UTC MAIN commitmail json YAML

lint: reorder grammar rules in the same way as in C99

The code coverage before and after this change is exactly the same,
except of course for cgram.y and cgram.c.

No functional change.

(rillig)

2021-07-12 19:03:20 UTC MAIN commitmail json YAML

Revert 1.4, that just trades one problem for a different one
(splitting the message on % instead of white space, which affects
less messages, but makes a bigger mess of them when it happens).

The real problem is that the expansion of the message was unquoted,
which allowed the field splitting to happen at all (which was mitigated
by the way printf rescans its format string for each arg when there are
more args than conversions in the format) otherwise it would have been
a much bigger mess (both times).

Just add quotes where quotes are needed, no more splitting, all good.

(kre)

2021-07-12 18:42:40 UTC MAIN commitmail json YAML

2021-07-12 18:42:23 UTC MAIN commitmail json YAML

add mipsn64 support, so native-gmp works, and likely, build.sh tools
on a mipsn64 host.

(mrg)

2021-07-12 18:00:36 UTC MAIN commitmail json YAML

tests/lint: test trying to define a ()-less function

(rillig)

2021-07-12 16:44:52 UTC MAIN commitmail json YAML

Printing out our model name is not considered an error message.

(thorpej)

2021-07-12 15:21:51 UTC MAIN commitmail json YAML

2021-07-12 12:59:54 UTC MAIN commitmail json YAML

Add Jasper Lake support.

(msaitoh)

2021-07-12 12:59:26 UTC MAIN commitmail json YAML

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

Add Intel Jasper Lake devices and Reealtek RTL8821CE.

(msaitoh)

2021-07-12 12:56:52 UTC MAIN commitmail json YAML

Add 0x96(Elkhart Lake) and 0x9c(Jasper Lake).
Not listed in SDM but listed in those spec update documents.

(msaitoh)

2021-07-12 09:40:31 UTC MAIN commitmail json YAML

look for libglapi in ${OLD_SUFFIX}.  noted by gson.

(mrg)

2021-07-12 09:34:57 UTC MAIN commitmail json YAML

src/external/lgpl3/gmp/lib/libgmp/arch/aarch64/config.h@1.4 / diff / nxr@1.4
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/config.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/alpha/gmp.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.h@1.7 / diff / nxr@1.7
src/external/lgpl3/gmp/lib/libgmp/arch/arm/config.m4@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/arm/gmp.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.h@1.8 / diff / nxr@1.8
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/config.m4@1.7 / diff / nxr@1.7
src/external/lgpl3/gmp/lib/libgmp/arch/armeb/gmp.h@1.7 / diff / nxr@1.7
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/config.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/hppa/gmp.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/ia64/config.h@1.5 / diff / nxr@1.5
src/external/lgpl3/gmp/lib/libgmp/arch/ia64/gmp.h@1.5 / diff / nxr@1.5
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/config.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/m68000/gmp.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/config.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/m68k/gmp.h@1.6 / diff / nxr@1.6
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/config.h@1.8 / diff / nxr@1.8
src/external/lgpl3/gmp/lib/libgmp/arch/mips64eb/gmp.h@1.8 / diff / nxr@1.8
src/external/lgpl3/gmp/lib/libgmp/arch/mips64el/config.h@1.8 / diff / nxr@1.8
      :
(more 23 files)
mknative-gmp for GMP 6.2.1 and most platforms.

(mrg)

2021-07-12 07:59:52 UTC MAIN commitmail json YAML

2021-07-12 07:04:37 UTC MAIN commitmail json YAML

2021-07-12 04:41:14 UTC MAIN commitmail json YAML

s/Precision Time Management/Precision Time Measurement/

(msaitoh)

2021-07-11 22:41:39 UTC MAIN commitmail json YAML

2021-07-11 22:41:36 UTC MAIN commitmail json YAML

tests/lint: rework ATF test driver

To skip tests that work only on particular platforms, a simple 'eval'
from the shell does not work since it does not exit on failure.  Fix
this by storing the commands in a local variable first.

Remove configuration knobs 'lint1-only-if-arch' and 'lint1-skip-if-arch'
since they are unused.

When skipping a test, actually mark it as skipped in the ATF statistics.

(rillig)

2021-07-11 22:07:35 UTC MAIN commitmail json YAML

switch Mesa 19 to use MesaLib.old subdir.

(mrg)

2021-07-11 21:58:52 UTC MAIN commitmail json YAML

note that new GMP may require some cleaning.

(mrg)

2021-07-11 21:28:17 UTC MAIN commitmail json YAML

GMP is updated to 6.2.1 now.

(mrg)

2021-07-11 21:24:14 UTC MAIN commitmail json YAML

fix a couple of issues found while testing new drm.

- actually check the return value of radeon_bo_open() in a three places
- for create_pixmap_for_fbcon(), release the bo when jumping to
  'out_free_fb'.  fixes memory leak.

(mrg)

2021-07-11 21:15:48 UTC MAIN commitmail json YAML

2021-07-11 21:07:44 UTC MAIN commitmail json YAML

lint: reorder grammar rules for expressions according to C18

No functional change.

(rillig)

2021-07-11 20:53:35 UTC MAIN commitmail json YAML

2021-07-11 20:52:07 UTC MAIN commitmail json YAML

2021-07-11 20:48:48 UTC MAIN commitmail json YAML

2021-07-11 20:40:59 UTC MAIN commitmail json YAML

2021-07-11 20:37:21 UTC MAIN commitmail json YAML

lint: make _Generic a primary-expression

C11 says so, and unless the _Generic expression was wrapped in
parentheses, it was not possible before to use it as a function call
expression.

(rillig)

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

2021-07-11 20:25:54 UTC MAIN commitmail json YAML

lint: rename grammar rule 'term' to 'cast_expression'

No functional change.

(rillig)

2021-07-11 20:15:38 UTC MAIN commitmail json YAML

note that MPC is now at 1.2.1, and that GMP has 6.2.1 available.

(mrg)

2021-07-11 20:07:42 UTC MAIN commitmail json YAML

lint: reorganize grammar rules for unary expressions

According to GCC, __builtin_offsetof is a primary-expression.

According to GCC, __real__, __imag__ and __extension__ are
unary-operator, just like '!' and '~'.

According to C11, _Alignof is a unary-operator.

(rillig)

2021-07-11 19:46:09 UTC MAIN commitmail json YAML

lint: remove grammar conflict for __real__ and __imag__

The rules were redundant since a term can be parenthesized by itself,
there is no need for an extra rule.  The rules for '__real__(term)' and
'__imag__(term)' were never reduced since these cases were handled by
the rules '__real__ term' and '__imag__ term' a few lines above.

No functional change.

(rillig)

2021-07-11 19:39:00 UTC MAIN commitmail json YAML

tests/lint: test precedence of __real__ and cast_expression

(rillig)

2021-07-11 19:30:56 UTC MAIN commitmail json YAML

2021-07-11 19:24:42 UTC MAIN commitmail json YAML

2021-07-11 19:01:37 UTC MAIN commitmail json YAML

lint: fix shift/reduce conflict for dangling else

The following line no longer occurs in the yacc output:
257: shift/reduce conflict (shift 427, reduce 270) on T_ELSE

No functional change.

(rillig)

2021-07-11 18:58:13 UTC MAIN commitmail json YAML

2021-07-11 18:22:03 UTC MAIN commitmail json YAML

lint: resolve shift/reduce conflict in notype_direct_decl

When a notype_direct_decl was followed by a type_attribute_list, and the
next token was another type_attribute, the parser could either continue
the current type_attribute_list or start a new one.  Either way has the
same effect since type_attribute_list has no associated action.

This reduces the conflicts by 4, one for each of T_ALIGNAS, T_ATTRIBUTE,
T_NORETURN, T_PACKED.  There are several other conflicts involving these
4 tokens, but they are harder to fix.

No functional change.

(rillig)

2021-07-11 18:03:47 UTC MAIN commitmail json YAML

lint: use separate tokens for logical not and bitwise complement

The token T_UNARY was misleading since it only captured 2 of the 6
operators that C99 calls unary-operator.  Make the grammar easier to
understand by explicitly listing these 2 operators.

No functional change.

(rillig)

2021-07-11 17:52:20 UTC MAIN commitmail json YAML

lint: remove redundant %prec from the grammar

Now that the precedence of the unary operators has been modeled via
separate rules, the precedence is no longer needed.

No change to the generated parser, with both yacc or Bison.

(rillig)

2021-07-11 17:38:55 UTC MAIN commitmail json YAML

lint: remove shift/reduce conflict for sizeof

According to the grammar, the expression 'sizeof(int)x' was ambiguous.
Since 'sizeof(int)' is a valid term, that could have been reduced,
which would have resulted in a parse error when trying to parse 'x'.

Now 'sizeof' takes a unary_expression instead of a term.

No functional change.

(rillig)

2021-07-11 16:57:21 UTC MAIN commitmail json YAML

lint: resolve shift/reduce conflicts for unary expressions

The grammar rule 'term' was ambiguous since both the prefix and postfix
increment operators were listed with the same precedence.  The
expression '++x++' was parsed as '++ (x++)', as expected, since
conflicts resolve towards shift.

Resolve these conflicts by structuring the grammar as in C99, with the
GCC extension of statement-expressions.  The resolved conflicts are:

134: shift/reduce conflict (shift 161, reduce 347) on T_LBRACK
134: shift/reduce conflict (shift 162, reduce 347) on T_LPAREN
134: shift/reduce conflict (shift 163, reduce 347) on T_POINT
134: shift/reduce conflict (shift 164, reduce 347) on T_ARROW
134: shift/reduce conflict (shift 165, reduce 347) on T_INCDEC
state 134
term : term . T_INCDEC  (335)
term : term . T_LBRACK expr T_RBRACK  (341)
term : term . T_LPAREN T_RPAREN  (342)
term : term . T_LPAREN argument_expression_list T_RPAREN  (343)
term : term . point_or_arrow T_NAME  (344)
term : T_EXTENSION term .  (347)

No functional change.

(rillig)

2021-07-11 16:30:41 UTC MAIN commitmail json YAML

Make sure dd_size is init'd, even when nothing has been read (so it
will be 0).  Reported on tech-userlevel by Mouse 20210711T044753+0000

(kre)

2021-07-11 15:07:39 UTC MAIN commitmail json YAML

lint: fix bug when parsing unused variable (since 2021-07-10)

Partially revert to cgram.y 1.248 from 2021-06-29.

This fixes the parse error for variables whose declaration starts with
__attribute__((unused)).  In the many refactorings of the last days this
bug has slipped in, and since there were several refactorings in that
area, there may be have been further bugs that are not caught by the
current test suite.  Revert for now and maybe apply them later again
when there are more tests.

Things kept from the current version are:

The names of most of the rules, as they correspond more closely to C99
and do not affect the behavior in any way.

In type_direct_decl, the replacement of type_attribute_list with
type_attribute since that nonterminal is already part of a repetition
(saves 4 conflicts).

In block_item, the order of the rules corresponds to C99.  This has no
influence on the generated parser, except for the rule numbers, which
are informative.

The merge of the duplicate code for struct_tag, enum_tag and
enum_constant, as they all contained exactly the same code.

(rillig)

2021-07-11 14:43:57 UTC MAIN commitmail json YAML

tests/lint: when accepting test results, skip crashes

(rillig)

2021-07-11 14:17:48 UTC MAIN commitmail json YAML

Mention that emulated disks by HPDisk and HPDrive work.

Also add more HP-IB disk models per recent changes.

(tsutsui)

2021-07-11 13:53:49 UTC MAIN commitmail json YAML

HP9000/360 can have up to 16 MB RAM, not 48 MB.

Per Service Information Manual HP 9000 Series 300 Computers Models 360/370.

(tsutsui)

2021-07-11 13:36:02 UTC MAIN commitmail json YAML

Fix silent freeze on probing sti(4) framebuffer on 712/60.  PR/52162

Ok'ed by skrll@.
Should be pulled up to netbsd-9 and netbsd-8.

(tsutsui)

2021-07-11 13:32:06 UTC MAIN commitmail json YAML

2021-07-11 13:00:53 UTC MAIN commitmail json YAML

Add Device and drive info of 2202A, 7908A, 7911A, and 7941A.

Geometries and description info are taken from hpdrive.ini.sample
in HPDrive.  Briefly tested on HPDisk.

(tsutsui)

2021-07-11 12:12:30 UTC MAIN commitmail json YAML

tests/lint: parse error for unused variable (since 2021-07-10)

Since cgram.y 1.294 from 2021-07-10.

(rillig)

2021-07-11 12:07:15 UTC MAIN commitmail json YAML

tests/lint: suppress ShellCheck warnings for intentional violations

The undeclared variables are generated by the AWK program.
The variable 'flags' must be split into words at exactly this point.

(rillig)

2021-07-11 10:51:46 UTC MAIN commitmail json YAML

We need IFS to be set to % for the rest of the script so be explicit
about it. Fixes message truncation for non-English in sysinst.

(cjep)

2021-07-11 06:15:42 UTC MAIN commitmail json YAML

Final note on OpenBSD cross-buildling. Remaining issues were due to
default limits on the build host.

(cjep)

2021-07-11 01:58:41 UTC MAIN commitmail json YAML

2021-07-11 01:55:51 UTC MAIN commitmail json YAML

Pull in pmap_subr.s (missed in prior commit).

(thorpej)

2021-07-11 01:54:42 UTC MAIN commitmail json YAML

Define ALPHA_PGBYTES (missed in prior commit).

(thorpej)

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

2021-07-11 01:13:27 UTC MAIN commitmail json YAML

2021-07-11 00:43:40 UTC MAIN commitmail json YAML

also look in dist/../include.

(mrg)

2021-07-11 00:41:13 UTC MAIN commitmail json YAML

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

2021-07-11 00:31:55 UTC MAIN commitmail json YAML

2021-07-11 00:13:49 UTC MAIN commitmail json YAML

xorg-server is now 1.20.12.

(mrg)

2021-07-11 00:13:27 UTC MAIN commitmail json YAML

xsrc/external/mit/xkeyboard-config/dist/configure@1.21 / diff / nxr@1.21
xsrc/external/mit/xkeyboard-config/dist/symbols/Makefile.in@1.21 / diff / nxr@1.21
xsrc/external/mit/xkeyboard-config/dist/symbols/in@1.16 / diff / nxr@1.16
xsrc/external/mit/xkeyboard-config/dist/symbols/pl@1.4 / diff / nxr@1.4
xsrc/external/mit/xorg-server/dist/configure@1.10 / diff / nxr@1.10
xsrc/external/mit/xorg-server/dist/configure.ac@1.12 / diff / nxr@1.12
xsrc/external/mit/xorg-server/dist/dix/devices.c@1.12 / diff / nxr@1.12
xsrc/external/mit/xorg-server/dist/glx/glxcmds.c@1.14 / diff / nxr@1.14
xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Bus.c@1.8 / diff / nxr@1.8
xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Config.c@1.16 / diff / nxr@1.16
xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Helper.c@1.5 / diff / nxr@1.5
xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86str.h@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/driver.c@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/driver.h@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/drmmode_display.c@1.7 / diff / nxr@1.7
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/present.c@1.6 / diff / nxr@1.6
xsrc/external/mit/xorg-server/dist/hw/xfree86/drivers/modesetting/vblank.c@1.7 / diff / nxr@1.7
xsrc/external/mit/xorg-server/dist/randr/randrstr.h@1.7 / diff / nxr@1.7
xsrc/external/mit/xorg-server/include/dix-config.h@1.42 / diff / nxr@1.42
xsrc/external/mit/xorg-server/include/version-config.h@1.13 / diff / nxr@1.13
      :
(more 3 files)
merge xorg-server 1.20.12 and xkeyboard-config 2.33.

(mrg)

2021-07-11 00:08:06 UTC MAIN commitmail json YAML

2021-07-10 23:28:58 UTC MAIN commitmail json YAML

2021-07-10 22:46:02 UTC MAIN commitmail json YAML

lint: fix parsing of __attribute__ for member (since 2021-07-10)

Since cgram.y 1.280 from 2021-07-10, lint could not parse struct members
that have multiple __attribute__ in front of their type.

(rillig)

2021-07-10 22:39:56 UTC MAIN commitmail json YAML

2021-07-10 22:34:02 UTC MAIN commitmail json YAML

2021-07-10 21:44:51 UTC MAIN commitmail json YAML

lint: inline grammar rules declmod and qualifier_or_storage_class

The rule declmod had a confusing name since declmods was not exactly a
list of declmod.

Inlining the rules reduces the abstraction level.  There are still some
shift/reduce conflicts in that area, so make the rules as simple as
possible, in order to resolve these conflicts.

No functional change.

(rillig)

2021-07-10 21:08:16 UTC MAIN commitmail json YAML

lint: merge duplicate code for struct and enum declarations

No functional change.

(rillig)

2021-07-10 20:58:35 UTC MAIN commitmail json YAML

lint: move type_attribute back into the main section

Type attributes are a standard feature since C11 and thus do not belong
in the GCC-specific section.  Only the GCC __attribute__ belongs there.

No functional change.

(rillig)

2021-07-10 20:44:24 UTC MAIN commitmail json YAML

lint: merge duplicate code for struct and enum tags

This is a tricky area.  Inlining identifier_sym did not work because of
the side-effects of getsym.  In situations where two identifiers of
different kinds follow each other, such as 'enum id1 id2', the timing is
crucial, and inlining identifier_sym would have led to an internal error
in getsym.  The symbol type has to be reset from FTAG to FVFT before
reading the next token.

No functional change.

(rillig)

2021-07-10 20:22:38 UTC MAIN commitmail json YAML

Move the optimized pmap_zero_page() from pmap.c to a new pmap_subr.s,
and optimize it a teeny bit little more.  Provide an optimized (for 21164,
anyway) pmap_copy_page() as well.

(thorpej)

2021-07-10 19:30:19 UTC MAIN commitmail json YAML

tests/lint: test error handling in enum-specifier

(rillig)

2021-07-10 19:29:28 UTC MAIN commitmail json YAML

lint: rename grammar rules to align with C99

No functional change.

(rillig)

2021-07-10 18:56:55 UTC MAIN commitmail json YAML

lint: merge duplicate code for typespec and notype_typespec

No functional change.

(rillig)

2021-07-10 18:42:28 UTC MAIN commitmail json YAML

tests/lint: test lexing of integer suffixes

(rillig)

2021-07-10 18:34:03 UTC MAIN commitmail json YAML

tests/lint: add another example for storage class in declaration

(rillig)

2021-07-10 18:25:57 UTC MAIN commitmail json YAML

2021-07-10 18:13:06 UTC MAIN commitmail json YAML

lint: rename func_arg_list to align with C99

No functional change.

(rillig)

2021-07-10 17:46:55 UTC MAIN commitmail json YAML

lint: rename y_sb to y_name

That buffer is only used for names of identifiers, so be more specific.

No functional change.

(rillig)

2021-07-10 17:35:54 UTC MAIN commitmail json YAML

2021-07-10 17:33:28 UTC MAIN commitmail json YAML

Add v_spec_ctrl, avx512_fp16, sme, sev and sev_es. Tested by nonaka@.

(msaitoh)

2021-07-10 17:18:05 UTC MAIN commitmail json YAML

0x6a and 0x6c are 3rd gen Xeon Scalable (Ice Lake).

(msaitoh)

2021-07-10 17:17:06 UTC MAIN commitmail json YAML

lint: extract clrtyp from noclass_declspecs

Finally each clrtyp pairs up with its corresponding deftyp, which makes
the grammar much easier to understand.  The many grammar rules that
contain these actions now all look the same.

No functional change.

(rillig)

2021-07-10 17:08:37 UTC MAIN commitmail json YAML

Add some definitions from Intel SDM:

- CPUID leaf 7:0 %ecx bit 13 TME_EN (Total Memory Encryption)
- CPUID leaf 7:0 %edx bit 18 PCONFIG (Platform CONFIGuration)

(msaitoh)

2021-07-10 17:06:56 UTC MAIN commitmail json YAML

lint: extract clrtyp from declaration_specifiers

This makes the grammar more uniform and thereby easier to understand.
The actions clrtyp and deftyp now come in pairs almost everywhere.

No functional change.

(rillig)

2021-07-10 16:54:40 UTC MAIN commitmail json YAML

lint: split grammar rule clrtyp_declmods

By extracting clrtyp from that rule, clrtyp and deftyp pair up nicely in
most of the grammar rules.  These two actions delimit the common part of
a declaration that declares multiple identifiers.

No functional change.

(rillig)

2021-07-10 16:41:51 UTC MAIN commitmail json YAML

lint: inline grammar rule clrtyp_typespec

No functional change.

(rillig)

2021-07-10 16:39:43 UTC MAIN commitmail json YAML

lint: merge duplicate code from grammar rule clrtyp_typespec

No functional change.

(rillig)

2021-07-10 15:04:07 UTC MAIN commitmail json YAML

lint: swap order in grammar rule clrtyp_typespec

It should not make a difference whether the rule says 'T_TYPENAME
clrtyp' or 'clrtyp T_TYPENAME'.  The latter order is more consistent
with the name of the rule, though.

According to the code, these two tokens take completely distinct
actions.  The code coverage outside of cgram.y and cgram.c stays exactly
the same, at least for lint's test suite.

No functional change intended.

(rillig)

2021-07-10 14:45:15 UTC MAIN commitmail json YAML

lint: rename grammar rule declmods to clrtyp_declmods

It wasn't obvious from the name 'declmods' that this rule starts a new
type declaration.

No functional change.

(rillig)

2021-07-10 13:22:01 UTC MAIN commitmail json YAML

Use intmax_t to printf an off_t

(martin)

2021-07-10 12:17:31 UTC MAIN commitmail json YAML

lint: flush stdout before an internal error

Previously, the internal error may have appeared too early in the
output.  Provoking internal errors and assertion failures is still easy,
just run afl-fuzz for a few seconds.

(rillig)

2021-07-10 12:10:40 UTC MAIN commitmail json YAML

2021-07-10 11:22:19 UTC MAIN commitmail json YAML

lint: do not allow struct{const;}

In traditional C, a struct member was defined syntactically as
'type-specifier struct-declarator-list', the concept of a type-qualifier
was not known back then.

C90 invented the type-qualifier 'const' and relaxed the syntactic
requirement for struct member declarations by allowing 'const x'. Having
only a type-qualifier without an actual type may be regarded as an
"incomplete type", which would be forbidden by C90 and later.

Anyway, this doesn't occur in practice anyway, so there is no need for
lint to try to parse it.  This removes a bit of dead code, since a
type-qualifier-list can never have type struct or union.

(rillig)

2021-07-10 10:56:31 UTC MAIN commitmail json YAML

lint: remove noclass_declmods from grammar

That rule was hard to understand since it contained clrtyp but not the
corresponding deftyp.  It's easier to read when a grammar rule contains
both clrtyp and deftyp in the same line.

C99 does not mention the term 'decl-modifier' anywhere, and in fact the
only thing that this grammar rule allowed was a type-qualifier-list.
The new name better reflect this.

No functional change.

(rillig)

2021-07-10 10:30:26 UTC MAIN commitmail json YAML

2021-07-10 09:53:00 UTC MAIN commitmail json YAML

lint: merge duplicate code in grammar for 'for' loops

No functional change.

(rillig)

2021-07-10 09:48:41 UTC MAIN commitmail json YAML

lint: clean up grammar for do-while statements

No functional change.

(rillig)

2021-07-10 09:40:12 UTC MAIN commitmail json YAML

lint: merge duplicate code in grammar for 'while' statements

No functional change.

(rillig)

2021-07-10 09:24:27 UTC MAIN commitmail json YAML

2021-07-10 09:14:38 UTC MAIN commitmail json YAML

tests/lint: when adding a new test, set an invalid option

This forces the test author to think about whether any custom options
are really needed.  While here, mention the other possible
customizations as well.

(rillig)

2021-07-10 08:40:36 UTC MAIN commitmail json YAML

tests/lint: add code coverage for grammar rule parameter_declaration

(rillig)

2021-07-10 08:01:11 UTC MAIN commitmail json YAML

lint: add code coverage for grammar rule direct_notype_param_decl

(rillig)

2021-07-10 07:50:33 UTC MAIN commitmail json YAML

add more info to ease future debugging.

(christos)

2021-07-10 07:50:20 UTC MAIN commitmail json YAML

2021-07-10 06:53:40 UTC MAIN commitmail json YAML

s/ifdef _ARM_ARCH_6/if defined(_ARM_ARCH_6)/ for consistency.  NFCI.

(skrll)

2021-07-10 06:01:41 UTC MAIN commitmail json YAML

tests/lint: move test for __attribute__ out of msg_124.c

That test case didn't belong there since there was no chance of getting
an 'illegal pointer combination' by applying an operator.

(rillig)

2021-07-10 05:42:30 UTC MAIN commitmail json YAML

lint: do not allow __packed or _Alignas in statement

When the rule 'statement: type_attribute T_SEMI' was added in cgram.y
1.214 from 2021-04-14, type_attribute was the closest match since there
was no definition for gcc_attribute yet.

(rillig)

2021-07-10 05:03:03 UTC MAIN commitmail json YAML

lint: reduce shift/reduce conflicts in direct_abstract_declarator

No functional change.

(rillig)

2021-07-10 04:57:41 UTC MAIN commitmail json YAML

lint: remove 8 of the grammar conflicts, 142 remaining

No functional change.

(rillig)

2021-07-10 04:47:25 UTC MAIN commitmail json YAML

lint: merge duplicate code in declmods and declmod

No functional change.

(rillig)

2021-07-10 04:25:47 UTC MAIN commitmail json YAML

lint: remove duplicate code for parsing declarations

No functional change.

(rillig)

2021-07-10 03:19:12 UTC MAIN commitmail json YAML

Use more shrinked binaries from distrib/utils/x_foo versions.

(tsutsui)

2021-07-09 20:51:27 UTC MAIN commitmail json YAML

lint: remove 6 conflicts from the grammar, in type_direct_decl

No functional change.

(rillig)

2021-07-09 20:36:34 UTC MAIN commitmail json YAML

lint: remove 6 of the remaining 162 conflicts from the grammar

No functional change.

(rillig)

2021-07-09 20:20:03 UTC MAIN commitmail json YAML

tests/lint: add test for unrealistic edge cases in declarations

The example code for triggering these grammar rules looks completely
contrived.  Even if lint had not implemented these cases, hopefully
nobody would have ever noticed.

(rillig)

2021-07-09 20:00:26 UTC MAIN commitmail json YAML

Make opts.cmd const char * rather than char * -- nothing ever modifies
the string it points to, it is never passed to a function not taking a
const char * arg, and this allows "" (or other literal strings if ever
needed) to be assigned to it - which should fix the build.

(kre)

2021-07-09 19:11:06 UTC MAIN commitmail json YAML

Use more shrinked binaries from distrib/utils/x_foo versions.

(tsutsui)

2021-07-09 19:01:29 UTC MAIN commitmail json YAML

Create rd3 device nodes, for HPDisk.

(tsutsui)

2021-07-09 18:55:28 UTC MAIN commitmail json YAML

tests/lint: ensure that GCC __attribute__ can be parsed

(rillig)

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

2021-07-09 17:51:17 UTC netbsd-9 commitmail json YAML

Apply patch, requested by chs in ticket #1321:

sys/rump/librump/rumpvfs/vm_vfs.c (apply patch)

Adapt the changes from ticket #1317 (the uvm_pageqlock does not exist any
more in HEAD)

(martin)

2021-07-09 17:44:28 UTC MAIN commitmail json YAML

Specify -fno-unwind-tables to shrink binaries.

Before:
  text    data    bss    dec    hex filename
  77902    4328  137120  219350  358d6 uboot
After:
  text    data    bss    dec    hex filename
  64186    4328  137120  205634  32342 uboot

(tsutsui)

2021-07-09 17:07:29 UTC MAIN commitmail json YAML

Mention about hp300 rd(4) improvements for HPDisk.

(tsutsui)

2021-07-09 17:05:33 UTC MAIN commitmail json YAML

Add support of multiple rd(4) disks on all punits for HPDisk.

Special thanks to Anders Gustafsson, the author of "HPDisk"
(GPIB disk emulator) http://www.dalton.ax/hpdisk/
for providing bare boards and improving firmwares for NetBSD/hp300.

(tsutsui)

2021-07-09 15:26:59 UTC MAIN commitmail json YAML

2021-07-09 09:24:16 UTC MAIN commitmail json YAML

Don't adjust the buffers when write returns 0. This happens with fmemopen
and other synthetic write functions. This fixes the unit-tests for fmemopen,
but adjusting should be the right behavior for all cases?

(christos)

2021-07-09 06:37:11 UTC MAIN commitmail json YAML

lint: indent grammar actions properly

No functional change.

(rillig)

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

2021-07-09 01:29:21 UTC MAIN commitmail json YAML

If we're netbooting on a system with, for example, an ISA DE204 Ethernet
interface, we don't have sufficient information to find the device using
the bus/slot scheme that we do with a PCI network interface.  However, in
these cases, some versions of the SRM console supply the MAC address of
the interface in the booted_dev environment variable, like so:

BOOTP 1 1 0 0 0 5 0 08-00-2B-xx-xx-xx 1

So, if we weren't able to find the booted device by the usual means,
check for this and, if we find a MAC address, try to find the network
interface by the MAC address.

(thorpej)

2021-07-08 20:11:15 UTC MAIN commitmail json YAML

tests/lint: test error recovery of the parser

(rillig)

2021-07-08 19:08:03 UTC MAIN commitmail json YAML

lint: fix assignment to midrule in grammar (since today)

When compiling the grammar with Bison, it complains:

error: $$ for the midrule at $2 of 'struct' has no declared type

Yacc does not complain, instead it assumes that a midrule has the same
type as the rule itself.

The assignment '$$ = $1' in the midrule action does not influence the $$
of the whole rule, it only assigns to $2.  The assignment to $$ was done
via the default action, therefore everything worked as expected.  Any
missing assignment in this rule would have been caught quickly by the
strict assertion in mktag.

No functional change.

(rillig)

2021-07-08 18:53:58 UTC MAIN commitmail json YAML

2021-07-08 18:50:57 UTC MAIN commitmail json YAML

lint: demonstrate bug in handling enum declarations (since today)

Since cgram.y 1.270 from today (a "cleanup" commit), the enum constants
were only registered in the symbol table, but they were not added to the
enum type (en_first_enumerator).  That information is used for
validating switch statements on enum types.

The actual bug is an off-by-one error in the grammar, in the grammar
rule 'enum_declaration'.  Yacc does not notice this obvious error.
Bison does, but it is not involved in building lint.

In the grammar rule 'enum_declaration', the intended $3 contains the
first enumeration constant of the type, while $2, which yacc interprets
as a symbol, contains a null pointer, at least on x86_64.

The existing tests did not cover this scenario, so the bug went
unnoticed.

(rillig)

2021-07-08 18:10:52 UTC MAIN commitmail json YAML

When running an individual test case under isolation, make the test
case count on the tp-start line of the output match the number of test
cases actually executed (one) so that the atf-run output is valid
input to atf-report.

(gson)

2021-07-08 18:02:22 UTC MAIN commitmail json YAML

2021-07-08 15:44:44 UTC MAIN commitmail json YAML

Include the 0 return from write. Although the real write system call does
not return 0, the synthetic writes from funopen/fmemopen could. This avoids
infinite loops in >= test19 in fmemopen, but the tests still fail, perhaps
because they assume the previous behavior, where flush does not adjust the
stdio pointers on error.

(christos)

2021-07-08 15:21:40 UTC MAIN commitmail json YAML

fix printf format strings

(christos)

2021-07-08 12:30:20 UTC MAIN commitmail json YAML

2021-07-08 11:24:41 UTC netbsd-9 commitmail json YAML

2021-07-08 11:23:29 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1320):

sys/external/bsd/drm2/linux/linux_reservation.c: revision 1.12

drm: Release fence after use.

May plug the dreaded radeon kmem memory leak.
XXX pullup-9

(martin)

2021-07-08 11:22:01 UTC netbsd-9 commitmail json YAML

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

common/lib/libc/arch/aarch64/atomic/atomic_nand_16.S: revision 1.4

One more s/pte/ptr/

(martin)

2021-07-08 09:16:25 UTC MAIN commitmail json YAML

2021-07-08 09:07:46 UTC MAIN commitmail json YAML

2021-07-08 09:06:51 UTC MAIN commitmail json YAML

Obey EINTR and return immediately adjusting for unwritten. From RVP

(christos)

2021-07-08 05:18:49 UTC MAIN commitmail json YAML

2021-07-08 04:09:10 UTC MAIN commitmail json YAML

lint: add grammar rule type_attribute_list_opt

Since type attributes (and GCC attributes as well) often modify the
preceding identifier, without referring to $$, the easiest way to
integrate them into the grammar is to define a separate grammar rule
that can be placed wherever these attributes are allowed.  This avoids
duplicate actions like in direct_param_decl.

No functional change.

(rillig)

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

lint: clean up grammar

enum_decl_lbrace was only used once and was small enough to be inlined.

Renamed expr_statement and added block_item_list_opt to match the
wording from C99.

Added references to C99.

No functional change.

(rillig)

2021-07-08 03:35:07 UTC MAIN commitmail json YAML

lint: clean up grammar for member declarations

No functional change.

(rillig)

2021-07-08 03:22:47 UTC MAIN commitmail json YAML

lint: move optional grammar rules above their corresponding rules

No functional change.

(rillig)

2021-07-08 03:19:17 UTC MAIN commitmail json YAML

lint: move grammar rules for generic_selection around

They were misplaced between the statements, as they belong to the
expressions, as indicated by the C99 section number.

No functional change.

(rillig)

2021-07-08 03:14:56 UTC MAIN commitmail json YAML

lint: remove irrelevant type information from __attribute__ tokens

The grammar once declared that an __attribute__ contained type
information, but that was not used anyway.

No functional change.

(rillig)

2021-07-08 03:10:39 UTC MAIN commitmail json YAML

lint: remove double negation in comment

No functional change.

(rillig)

2021-07-08 02:59:22 UTC MAIN commitmail json YAML

lint: constify keyword in lexer

No functional change.

(rillig)

2021-07-07 11:51:46 UTC MAIN commitmail json YAML

2021-07-07 11:06:37 UTC MAIN commitmail json YAML

PR/56270: Matthias Scheler: dump fails on ffsv1: Zero c_extsize since ffsv1
does not support extended attributes.

(christos)

2021-07-07 08:58:20 UTC MAIN commitmail json YAML

Add new sysctl "rx_copy_len".

ixgbe_rxeof() has an optimization "RX_COPY" to reduce costs of
bus_dmamap_load_mbuf() and bus_dmamap_unload() by copying a mbuf cluster's
memory to a newly allocated mbuf's MH_databuf[] and recycle the original map.
The optimization is used when a length of a packet is smaller than a specific
value. The value is calculated based on MHLEN. The size of MHLEN is
architecture specific. It's 256 or 512. Make the threshold controllable by
adding a new sysctl.

(msaitoh)

2021-07-07 08:32:51 UTC MAIN commitmail json YAML

Set rxr->next_to_refresh correctly in ixgbe_setup_receive_ring().

ixgbe_setup_receive_ring() fully allocates rx buffers. When a
descriptor ring is full, rxr->next_to_refresh should point to
rxr_next_to_check -1. Before this change, rxr->next_to_refresh
is set to 0 and ixgbe_refresh_mbufs() wastefully loops in
ixgbe_refresh_mbufs() because it means the ring is empty.

(msaitoh)

2021-07-07 03:30:35 UTC MAIN commitmail json YAML

Provide a BWX version of alpha_copystr() and patch it into place if
the system supports the BWX extension.  The inner loop of the BWX
version is 42% shorter than the non-BWX version (7 vs 12 insns).

(thorpej)

2021-07-07 03:24:26 UTC MAIN commitmail json YAML

After attaching CPUs, call alpha_patch() in case there are any function
patches we wish to do based on discovered architecture features.

(thorpej)

2021-07-07 02:44:04 UTC MAIN commitmail json YAML

Re-arrange alpha_copystr() so that the the error/unlikely cases are forward
branches (which will be predicted as not-taken), and that the likely cases
are fall-through, with the exception of the loop branch (which is a backward
branch, and thus will be predicted as taken).

(thorpej)

2021-07-06 21:41:36 UTC MAIN commitmail json YAML

lint: document further shift/reduce conflicts

These cannot be resolved as easily as those from the previous commit.
Anyway, the relevant code from the grammar is not yet covered by the
tests, this needs to be done first.

(rillig)