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 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 04:41:11 UTC Now

2021-08-30 05:57:51 UTC MAIN commitmail json YAML

Fix build without WSDISPLAY_COMPAT_RAWKBD.

(rin)

2021-08-30 01:29:41 UTC MAIN commitmail json YAML

PR port-arm/56380

Disable PAX_ASLR for now, until the problem is fixed.

(rin)

2021-08-30 01:25:10 UTC MAIN commitmail json YAML

Respect alignment requests of executable when PAX_ASLR is enabled on
kernel, but disabled for the process, as in the same manner as PAX_ASLR
is disabled; see pax_aslr_exec_offset() for !PAX_ASLR in sys/sys/pax.h.

This is a regression introduced in kern_pax.c rev 1.58:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/kern_pax.c#rev1.58

Part of PR port-arm/56380 but unfortunately this does not fix the
problem described in the PR...

(rin)

2021-08-30 00:26:11 UTC MAIN commitmail json YAML

Add nvme(4). (This machine has a PCIe x1 slot!)

It works just fine, instead of broken on-board mvsata(4).

(rin)

2021-08-30 00:21:30 UTC MAIN commitmail json YAML

CPU is arm926ej-s, not xscale.

(rin)

2021-08-30 00:18:18 UTC MAIN commitmail json YAML

Support for big-endian mode has been added to evbarm/marvell.
Only KUROBOX_PRO has been tested until now.

(rin)

2021-08-30 00:14:46 UTC MAIN commitmail json YAML

Build KUROBOX_PRO for evbarmv5eb.

Other marvell-based machines may also work, but not tested yet.

(rin)

2021-08-30 00:12:15 UTC MAIN commitmail json YAML

Enable FFS_EI and DISKLABEL_EI as this SoC supports both endians now.

(rin)

2021-08-30 00:08:28 UTC MAIN commitmail json YAML

Add ARMEB support to mvgbe(4).

For ARMEB, peripheral is configured to little-endian mode, even if
CPU itself is in big-endian mode. Therefore, we need to configure
the device to little-endian mode, and byte-swap descriptor fields
(unlike the case of powerpc).

(rin)

2021-08-30 00:06:27 UTC MAIN commitmail json YAML

2021-08-30 00:06:04 UTC MAIN commitmail json YAML

add radeon x1550.

(mrg)

2021-08-30 00:04:31 UTC MAIN commitmail json YAML

2021-08-30 00:00:02 UTC MAIN commitmail json YAML

Add ARMEB support to marvell_start.

Since u-boot is running in little-endian mode, first few instructions
(to switch byte-order) should be encoded in little-endian. After that,
nop's in little-endian should appear in order to flush prefetch buffer.
Then, CPWAIT() ensure entering in big-endian mode.

(rin)

2021-08-29 23:49:32 UTC MAIN commitmail json YAML

Output missing '\n' for capability list when DMA support is not compiled in.

(rin)

2021-08-29 17:01:27 UTC MAIN commitmail json YAML

lint: in C99 mode, make implicit function declarations an error

In tree.c 1.294 from 2021-06-28, I had already tried this, but at that
time, there were too many implicit function definitions in the NetBSD
tree.  Most of them were GCC builtins, which lint did not recognize.
Therefore I had to revert to a warning in tree.c 1.302 from 2021-06-30.

In the meantime, lint has learnt to recognize compiler builtins, see
is_compiler_builtin, so try again now.  The build logs from x86_64,
i386, sparc and sparc64 show no more implicit function declarations.

(rillig)

2021-08-29 16:44:16 UTC MAIN commitmail json YAML

libc: suppress lint warning for namespacing mismatch for _mcount

This is the last remaining instance of lint warning 215, which is about
implicitly defined functions.  Since C99, these implicit declarations
have not been allowed anymore.

(rillig)

2021-08-29 16:17:08 UTC MAIN commitmail json YAML

lint: treat _mm_ as builtin function name prefix for all compilers

This prefix is not specific to GCC, it is also known by the Intel C
Compiler and the Microsoft C compiler.

(rillig)

2021-08-29 15:49:04 UTC MAIN commitmail json YAML

lint: add __sync_ and _mm_ as prefixes for builtin functions

These two additions cover all cases that occur in the current NetBSD
build on x86_64.  This allows build_name to use the usual pattern 'if
Sflag then error else if sflag then warning'.  That function currently
issues a warning in C99 as well, even though C99 prohibits implicit
function declarations.

(rillig)

2021-08-29 11:43:48 UTC MAIN commitmail json YAML

remove -m32 accidentally committed

(christos)

2021-08-29 11:43:25 UTC MAIN commitmail json YAML

2021-08-29 10:18:17 UTC MAIN commitmail json YAML

lint: remove redundant call to strchr

(rillig)

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

2021-08-29 09:54:18 UTC MAIN commitmail json YAML

Inetd enhancements by James Browning, Gabe Coffland, Alex Gavin, Solomon Ritzow
Described in:
    https://www.mail-archive.com/tech-userlevel@netbsd.org/msg03114.html
And developed in:
    https://github.com/ritzow/src/pull/1

From their notes:

All new functionality should be explained by the updated manpage.

The manpage has been refactored a bit: A new section "Directives"
has been added and the information about default hostnames and
IPsec directives has been moved there, and the new file include
directive information is also there.

getconfigent has the most major changes. A newline is no longer
read immediately, but is called only by a "goto more" (inside an
if(false) block). This allows multiple definitions or directives
to exist on a single line for anything that doesn't terminate using
a newline. This means a key-values service definition can be followed
by another key-values service definition, a positional definition,
or an ipsec, hostname, or .include directive on the same line.

memset is no longer used explicitly to clear the servtab structure,
a function init_servtab() is used instead, which uses a C struct
initializer.

The servtab se_group field is its own allocation now, and not just
a pointer into the user:group string.

Refactored some stuff out of getconfigent to separate functions
for use by parse_v2.c. These functions in inetd.c are named with
the form parse_*()

parse_v2.c only has code for parsing a key-values service definition
into a provided servtab. It should not have anything that affects
global state other than line and line_number.

Some function prototypes, structures, and #defines have been moved
from inetd.c to inetd.h.

The function config_root replaces config as the function called on
a config file load/reload. The code removed from the end of
config(void) is now called in config_root, so it is not run on each
recursive config call.

setconfig(void) was removed and its code added into config_root
because that is the only place it is called, and redundant checks
for non-null globals were removed because they are always freed by
endconfig. The fseek code was also removed because the config files
are always closed by endconfig.

Rate limiting code was updated to add a per-service per-IP rate
limiting form. Some of that code was refactored out of other places
into functions with names in the form rl_*()

We have not added any of the license or version information to the
new files parse_v2.c, parse_v2.h, and inetd.h and we have not
updated the license or version info for inetd.c.

Security related:

The behavior when reading invalid IPsec strings has changed. Inetd
no longer exits, it quits reading the current config file instead.
Could this impact program security?

We have not checked for memory leaks. Solomon tried to use dmalloc
without success. getconfigent seemed to have a memory leak at each
"goto more". It seems like inetd has never free'd allocated strings
when throwing away erroneous service definitions during parsing
(i.e. when "goto more" is called when parsing fields). OpenBSD's
version calls freeconfig on "goto more"
(https://github.com/openbsd/src/blob/c5eae130d6c937080c3d30d124e8c8b86db7d625/usr.sbin/inetd/inetd.c#L1049)
but NetBSD only calls it when service definitions are no longer
needed. This has been fixed. freeconfig is called immediately before
any "goto more". There shouldn't be any time when a servtab is in
an invalid state where freeconfig would break.

(christos)

2021-08-29 09:48:02 UTC MAIN commitmail json YAML

lint: in debug mode, use proper type for sym_t.s_def

(rillig)

2021-08-29 09:41:59 UTC MAIN commitmail json YAML

^W is traditionally bound to ed-delete-prev-word and not kill-region
^R is traditionally bound to em-inc-search-next and not redisplay
This is what mksh, zsh bash, readline do (Baptiste Daroussin)

(christos)

2021-08-29 09:29:32 UTC MAIN commitmail json YAML

lint: allow 'fallthrough' as alternative spelling of FALLTHROUGH

Seen in unbound/lookup3.c.

No change to the documentation since the canonical spelling is still the
same.

(rillig)

2021-08-29 09:17:58 UTC MAIN commitmail json YAML

Fix reversed test (thanks phone@)

(christos)

2021-08-29 09:15:33 UTC MAIN commitmail json YAML

fix wrong size (thanks mlelstv@)

(christos)

2021-08-29 09:09:53 UTC MAIN commitmail json YAML

2021-08-29 09:05:35 UTC MAIN commitmail json YAML

lint: accept keyword variant FALL THROUGH as alias to FALLTHROUGH

Seen in archive_string.c, macro WRITE_UC.

No documentation change since the canonical spelling of this keyword
stays the same.

(rillig)

2021-08-29 09:02:01 UTC MAIN commitmail json YAML

Fix rumptest target && enable separate rump target. From Damien Zammit

(christos)

2021-08-29 08:57:50 UTC MAIN commitmail json YAML

tests/lint: test variants of the FALLTHROUGH comment

(rillig)

2021-08-29 08:43:12 UTC MAIN commitmail json YAML

Include <time.h> for all GNU systems (hurd). From Damien Zammit

(christos)

2021-08-29 08:41:57 UTC MAIN commitmail json YAML

Add missing parentheses around ternary operator (Etienne Brateau, via
Damien Zammit)

(christos)

2021-08-29 08:36:00 UTC MAIN commitmail json YAML

tools: in non-verbose mode, build the tools silently

(rillig)

2021-08-28 21:52:15 UTC MAIN commitmail json YAML

lint: clean up hash functions

No functional change.

(rillig)

2021-08-28 21:14:32 UTC MAIN commitmail json YAML

lint: remove unreachable code for parsing integer constants

The largest possible type of an integer constant is 'unsigned long
long'.  Any larger type can only be expressed using casts.

See also https://gcc.gnu.org/onlinedocs/gcc/_005f_005fint128.html.

(rillig)

2021-08-28 21:01:34 UTC MAIN commitmail json YAML

2021-08-28 20:51:10 UTC MAIN commitmail json YAML

tests/lint: test parsing of integer constants

The previous version of this test did not focus on the integer constants
but instead on conversions of function arguments.  The current test
covers several corner cases, such as non-decimal bases and all
combinations of suffixes.

This test does not cover lex_integer_constant completely since several
code paths are only reachable on 32-bit target platforms.

(rillig)

2021-08-28 19:49:29 UTC MAIN commitmail json YAML

2021-08-28 19:45:18 UTC MAIN commitmail json YAML

tests/lint: demonstrate hashcode sorting of the lint2 output

The hashcodes modulo 1009 are:

48 func7000
637 func0000
646 no_prototype
697 func1000
757 func2000
817 func3000
877 func4000
937 func5000
997 func6000

(rillig)

2021-08-28 19:27:44 UTC MAIN commitmail json YAML

lint: fold constants in hash functions

All platforms supported by lint have sizeof(unsigned int) == 4 and
CHAR_BIT == 8.  There is no need to encode these expressions in a hash
function, they only made the code harder to read.

No functional change.

(rillig)

2021-08-28 19:00:55 UTC MAIN commitmail json YAML

lint: fix memory leak in symtab_forall_sorted (since today)

(rillig)

2021-08-28 18:58:24 UTC MAIN commitmail json YAML

lint: replace obsolete strtouq with equivalent strtoull

(rillig)

2021-08-28 18:40:15 UTC MAIN commitmail json YAML

tests/lint: disable test for message 252 on ILP32 platforms

(rillig)

2021-08-28 17:18:42 UTC MAIN commitmail json YAML

lint: write the entries for the libraries in alphabetical order

This makes them easier to read by humans.

The checks are still performed in hashcode order since there are no
tests that would cover this change.

(rillig)

2021-08-28 17:17:48 UTC MAIN commitmail json YAML

Respect $EDITOR when execution one (Baptiste Daroussin)

(christos)

2021-08-28 17:11:19 UTC MAIN commitmail json YAML

2021-08-28 16:51:57 UTC MAIN commitmail json YAML

lint: remove double inversion from is_out_of_char_range

No functional change.

(rillig)

2021-08-28 16:43:50 UTC MAIN commitmail json YAML

lint: clean up check_integer_comparison

No functional change.

(rillig)

2021-08-28 16:36:54 UTC MAIN commitmail json YAML

lint: do not emit GCC builtin functions

Lint1 no longer emits declarations of GCC builtin functions and calls to
them.

Previously, lint generated 3421 useless warnings in a default NetBSD
build, like this:

__atomic_load_n, arg 1 used inconsistently
    acl.c(216)[pointer to unsigned int]
    rbtdb.c(921)[pointer to unsigned short]

This was because lint just doesn't understand that these functions are
type-generic, which is indeed unusual in C.

These useless warnings made the lint output more frightening than it
should actually be.  Together with the strange formatting of the
diagnostics (space-space-tab after the main message, two spaces and two
colons between the occurrences, symbols are listed in hashcode order),
this creates the impression that lint is not intended to be a
user-friendly tool.

For now, fix the excess warnings, leaving the other items for later.

(rillig)

2021-08-28 16:21:25 UTC MAIN commitmail json YAML

tests/lint: demonstrate that GCC builtins are emitted by default

They will be skipped in a follow-up commit, but to see the effects of
that, they first need to be emitted.

(rillig)

2021-08-28 16:00:52 UTC MAIN commitmail json YAML

If there is a FS_RAID partition on a disk, then we shouldn't look at
the raw partition.  In particular, we now need to account for the case
where an existing FS_RAID partition is now open because it is in use.
If that is the case, we don't look at the raw partition.

Addresses PR kern/56369.

(oster)

2021-08-28 15:36:54 UTC MAIN commitmail json YAML

lint: merge duplicate code in convert_constant_floating

(rillig)

2021-08-28 15:25:10 UTC MAIN commitmail json YAML

2021-08-28 15:01:43 UTC MAIN commitmail json YAML

lint: fix lexing of character constants

The final value of the character constant must be determined by the
target platform, not the host platform.

This allows to run the tests for a target platform with different
signedness of characters, by editing targparam.h and t_integration.

Lint is not completely cross-compileable though.  64-bit host platforms
can run lint for 32-bit platforms, but not vice versa, since 32-bit GCC
does not provide 128-bit integer types.

(rillig)

2021-08-28 14:45:19 UTC MAIN commitmail json YAML

2021-08-28 14:42:30 UTC MAIN commitmail json YAML

lint: explicitly ignore the return value of close

(rillig)

2021-08-28 13:30:25 UTC MAIN commitmail json YAML

2021-08-28 13:29:27 UTC MAIN commitmail json YAML

lint: explicitly ignore return value of some function calls

This fixes the warning from lint2 that these functions return values
which are sometimes ignored.

The remaining calls to fprintf that ignore the return value come from
scan.c.  Lint does not currently detect the auto-generated portions of
that file and the interesting ones since it assumes that scan.c is the
main filename, see expr_zalloc_tnode.

No functional change.

(rillig)

2021-08-28 13:11:10 UTC MAIN commitmail json YAML

lint: use 'unsigned int' for bit-size of types in convert_integer

There was no need to have two separate magic values (0 and -1) to mean
the same.

No functional change.

(rillig)

2021-08-28 13:02:26 UTC MAIN commitmail json YAML

lint: fix lint warning about initializing with negative number

No functional change.

(rillig)

2021-08-28 12:59:26 UTC MAIN commitmail json YAML

lint: use 'unsigned int' for bit-size of types

Lint does not need to support any types larger than 256 MB since they
don't occur in practice.  Practically, such large types have never been
supported at all since the function type_size_in_bits used int for the
internal calculations, resulting in overflows.

(rillig)

2021-08-28 12:41:03 UTC MAIN commitmail json YAML

lint: fix a few lint warnings about type conversions

A simple 'unsigned int' is more than enough for representing the size of
a bit-field, as well as the maximum alignment of any type.

No functional change.

(rillig)

2021-08-28 12:29:40 UTC MAIN commitmail json YAML

lint: remove redundant type casts from convert_constant_floating

Since tree.c 1.70 from 2012-03-27, lint has been using properly typed
constants for the min and max values, independent from the host
platform.

No functional change.

(rillig)

2021-08-28 12:21:53 UTC MAIN commitmail json YAML

2021-08-28 12:06:09 UTC MAIN commitmail json YAML

lint: clean up alignment_in_bits

The given type can never be NULL, and an array can never have NULL as
subtype.

(rillig)

2021-08-28 10:47:46 UTC MAIN commitmail json YAML

libzfs: Zero DIOCLWEDGES input before ioctl.

Otherwise we ask the kernel to write over whatever random pointer was
in the stack garbage here, when all we wanted was to learn whether
dkwl_nwedges is zero or nonzero.

XXX pullup-9

(riastradh)

2021-08-28 10:29:15 UTC MAIN commitmail json YAML

2021-08-28 08:56:10 UTC MAIN commitmail json YAML

Remove unused xf86-video-modesetting.

In newer xorg-server, it is integrated into the server
No users of old xorg-server use modesetting.

It requires drm drivers, but also, the sole possible user of old
xorg-server that could be handled by this Makefile is netwinder,
but it has a different ${MACHINE} and so seems like it never built the
driver.

(maya)

2021-08-27 20:49:26 UTC MAIN commitmail json YAML

2021-08-27 20:19:46 UTC MAIN commitmail json YAML

lint: remove unused message about nonportable character escape

It has not been used since at least 2001.

(rillig)

2021-08-27 20:16:50 UTC MAIN commitmail json YAML

2021-08-27 19:50:44 UTC MAIN commitmail json YAML

lint: remove unused message for struct without named members

Lint has not produced this message since the rewrite of the
initializations in March 2021.  Structures that consist of only unnamed
bit-fields probably don't occur in practice.

(rillig)

2021-08-27 18:40:28 UTC MAIN commitmail json YAML

libterminfo: remove redundant lint annotations

Since 2021-02-28, lint does not warn about constant conditions if they
involve sizeof.

The fallthrough annotations have never been necessary for case labels
that directly follow each other.

(rillig)

2021-08-27 18:28:41 UTC MAIN commitmail json YAML

tabs: fix lint warnings about ctype functions and conversions

lines 100, 157, 206: conversion from 'long' to 'int' may lose accuracy
[132]

line 125: warning: argument to 'function from <ctype.h>' must be cast to
'unsigned char', not to 'int' [342]

While here, fix a typo in an error message.

(rillig)

2021-08-27 18:11:07 UTC MAIN commitmail json YAML

stat: fix undefined behavior when calling ctype functions

lint says: warning: argument to 'function from <ctype.h>' must be cast
to 'unsigned char', not to 'unsigned int' [342]

(rillig)

2021-08-27 18:09:30 UTC MAIN commitmail json YAML

sockstat: fix undefined behavior when calling ctype functions

lint says: warning: argument to 'function from <ctype.h>' must be cast
to 'unsigned char', not to 'unsigned int' [342]

(rillig)

2021-08-27 17:59:46 UTC MAIN commitmail json YAML

tests/lint: document correct lint warnings for '>>'

The previous commit contained wrong assumptions.  Upon closer
inspection, the lint warning is correct.

(rillig)

2021-08-27 17:53:13 UTC MAIN commitmail json YAML

make ignore whitespace the default

(christos)

2021-08-27 17:49:32 UTC MAIN commitmail json YAML

tests/lint: test wrong warning for bitwise '>>'

Seen in /usr/include/netbt/hci.h, function hci_filter_set.

(rillig)

2021-08-27 17:41:39 UTC MAIN commitmail json YAML

sdpquery: fix undefined behavior when calling ctype functions

lint says: warning: argument to 'function from <ctype.h>' must be cast
to 'unsigned char', not to 'int' [342]

(rillig)

2021-08-27 17:38:57 UTC MAIN commitmail json YAML

sdiff: fix undefined behavior for ctype functions

lint says: warning: argument to 'function from <ctype.h>' must be cast
to 'unsigned char', not to 'int' [342]

(rillig)

2021-08-27 17:36:37 UTC MAIN commitmail json YAML

sdiff: fix undefined behavior when parsing edit commands

lint says: warning: argument to 'function from <ctype.h>' must be cast
to 'unsigned char', not to 'int' [342]

(rillig)

2021-08-27 17:35:03 UTC MAIN commitmail json YAML

ftp: fix undefined behavior when parsing FEAT

lint says: warning: argument to 'function from <ctype.h>' must be cast
to 'unsigned char', not to 'int' [342]

(rillig)

2021-08-27 17:31:48 UTC MAIN commitmail json YAML

2021-08-27 09:29:05 UTC MAIN commitmail json YAML

Do the VPRINTF thing and #include "opt_arm/debug.h" for VERBOSE_INIT_ARM

(skrll)

2021-08-27 09:23:28 UTC MAIN commitmail json YAML

initarm_common already calls db_machine_init, so don't do it for a second
time otherwise the handlers list just loops.

(skrll)

2021-08-27 09:14:55 UTC MAIN commitmail json YAML

lower case for hex values.

(skrll)

2021-08-27 09:11:52 UTC MAIN commitmail json YAML

2021-08-27 02:32:12 UTC MAIN commitmail json YAML

regen again - configure.ac rcsid updated

(lukem)

2021-08-27 02:29:39 UTC MAIN commitmail json YAML

tnftp 20210827 release

Changes since tnftp 20200705:
* Validate address in server's PASV and LPSV responses. Previously a
  hostile server could cause ftp to open a data connection elsewhere.
* Avoid intermittent crashes by fixing signal handler restoration.
* Fix intermittent failures in -q QUITTIME by not using restartable
  signals.
* Set SO_KEEPALIVE on control connection to attempt to avoid timeouts.
* Update to NetBSD-ftp 20210826.
* Improve configure tests.
* Improve manual page.
* Display usage to stdout with -?.

(lukem)

2021-08-27 01:48:30 UTC MAIN commitmail json YAML

2021-08-27 01:48:01 UTC MAIN commitmail json YAML

2021-08-27 01:38:49 UTC MAIN commitmail json YAML

2021-08-27 01:32:09 UTC MAIN commitmail json YAML

sync with generated config.h

turns on HAVE_FBGLYPHS and HAVE_GBM_BO_USE_LINEAR.

(mrg)

2021-08-27 01:02:54 UTC MAIN commitmail json YAML

ChangeLog: recent additions

(lukem)

2021-08-27 01:01:19 UTC MAIN commitmail json YAML

restore the set version call in amdgpu_open_drm_master().

now this works again with reredrum branch.

(mrg)

2021-08-26 21:33:36 UTC MAIN commitmail json YAML

2021-08-26 19:23:26 UTC MAIN commitmail json YAML

2021-08-26 17:08:34 UTC MAIN commitmail json YAML

2021-08-26 09:03:47 UTC MAIN commitmail json YAML

2021-08-26 08:56:21 UTC MAIN commitmail json YAML

2021-08-26 07:03:00 UTC MAIN commitmail json YAML

indent: extract lex_number, lex_word, lex_char_or_string

No functional change.

(rillig)

2021-08-26 06:25:59 UTC MAIN commitmail json YAML

update ftp version to 20210826

Version bump for PASV/LPSV address validation

(lukem)

2021-08-26 06:23:24 UTC MAIN commitmail json YAML

ftp: remove unnecessary variable assignments

Remove assignment to error in initconn(); it's not tested anywhere after the
initial use, so no need to set it before goto bad.

(Looks like copypasta from the initial addition of the code in rev 1.48.)

(lukem)

2021-08-26 06:16:29 UTC MAIN commitmail json YAML

ftp: validate address from PASV and LPSV response

Fail if the server's response to PASV or LPSV contains an IP address
that doesn't match that of the control connection.
(EPSV already only uses the port portion of the server's response,
per RFC 2428).

Previously a hostile server could cause ftp to open a data connection elsewhere.

Many other ftp implementations have had a similar change for many years,
including those in popular browsers (before they deprecated FTP ...)

Thanks to Simon Josefsson notifying me about
  https://lists.gnu.org/archive/html/bug-inetutils/2021-06/msg00002.html

(lukem)

2021-08-26 00:32:36 UTC MAIN commitmail json YAML

2021-08-26 00:00:35 UTC MAIN commitmail json YAML

Device tree overlay for the FriendlyARM NanoPi NAS Dock for the NanoPi NEO,
NEO Air, and NEO2.

(thorpej)

2021-08-25 23:11:51 UTC MAIN commitmail json YAML

db: fix lint warnings about wrong call to ctype functions

(rillig)

2021-08-25 23:07:34 UTC MAIN commitmail json YAML

config: remove unused local variable

(rillig)

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

cksum: remove trailing whitespace

(rillig)

2021-08-25 22:59:57 UTC MAIN commitmail json YAML

cksum: fix lint warning about wrong call to isspace

(rillig)

2021-08-25 22:52:26 UTC MAIN commitmail json YAML

btkey: fix lint warning about wrong call to tolower

(rillig)

2021-08-25 22:48:40 UTC MAIN commitmail json YAML

lint: add __attribute__ regparm

Seen in libexec/ld.elf_so/rtld.h.

(rillig)

2021-08-25 22:43:20 UTC MAIN commitmail json YAML

base64: fix lint warning about 'strchr' discarding 'const'

No change to the resulting binary.

(rillig)

2021-08-25 22:26:30 UTC MAIN commitmail json YAML

indent: fix lint warnings about type conversions on ilp32

No functional change.

(rillig)

2021-08-25 22:14:38 UTC MAIN commitmail json YAML

make: fix lint warnings on ilp32 platforms

The warnings in arch.c were about conversions from int to long.

The warnings in var.c were about conversions from long long to
ptrdiff_t.

No functional change.

(rillig)

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

2021-08-25 22:00:27 UTC MAIN commitmail json YAML

lint: rename local variable in plength

The assertion in build_plus_minus is safe since that function is only
called if the types are compatible.  Pointer and floating are not
compatible.

No functional change.

(rillig)

2021-08-25 21:50:29 UTC MAIN commitmail json YAML

2021-08-25 13:28:51 UTC MAIN commitmail json YAML

G/C _lock_cas(); it is no longer needed (kern_mutex.c uses atomic_cas_ulong()
with appropriate memory barriers).

(thorpej)

2021-08-25 09:06:03 UTC MAIN commitmail json YAML

Use MCLGET() instead of homegrown cluster (jcl) allocation mechanism.

- Before this commit, resource shortage was easily occurred because the total
  number of the clusters is small.

- Reviewed by knakahara and ryo.

(msaitoh)

2021-08-25 04:13:42 UTC MAIN commitmail json YAML

- In kern_mutex.c, if MUTEX_CAS() is not defined, define it in terms of
  atomic_cas_ulong().
- For arm, ia64, m68k, mips, or1k, riscv, vax: don't define our own
  MUTEX_CAS(), as they either use atomic_cas_ulong() or equivalent
  (atomic_cas_uint() on m68k).
- For alpha and sparc64, don't define MUTEX_CAS() in terms of their own
  _lock_cas(), which has its own memory barriers; the call sites in
  kern_mutex.c already have the appropriate memory barrier calls.  Thus,
  alpha and sparc64 can use default definition.
- For sh3, don't define MUTEX_CAS() in terms of its own _lock_cas();
  atomic_cas_ulong() is strong-aliased to _lock_cas(), therefore defining
  our own MUTEX_CAS() is redundant.

Per thread:
https://mail-index.netbsd.org/tech-kern/2021/07/25/msg027562.html

(thorpej)

2021-08-25 01:52:07 UTC MAIN commitmail json YAML

2021-08-25 01:48:47 UTC MAIN commitmail json YAML

configure: use --option-name in feature display

Use the appropriate option name in the feature display.
Sort the options.

(lukem)

2021-08-25 01:24:10 UTC MAIN commitmail json YAML

configure: enable AC_USE_SYSTEM_EXTENSIONS()

We use various POSIX extensions, so enable them.
This reduces compile warnings on some platforms (e.g. RHEL 8).

(lukem)

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

2021-08-25 00:59:48 UTC MAIN commitmail json YAML

libnetbsd: use AM_CPPFLAGS not CPPFLAGS

Use AM_CPPFLAGS because CPPFLAGS is for user override

(lukem)

2021-08-25 00:58:53 UTC MAIN commitmail json YAML

configure: add AM_PROG_AR()

required by newer automake

(lukem)

2021-08-24 23:38:51 UTC MAIN commitmail json YAML

2021-08-24 21:30:52 UTC MAIN commitmail json YAML

2021-08-24 20:23:39 UTC MAIN commitmail json YAML

tests/lint2: reduce indentation for mi files

(rillig)

2021-08-24 09:53:26 UTC MAIN commitmail json YAML

extend the list of available ciphers to include most of the
openssl "HIGH" with some additional disables.  retain the current
list of bad options.  should deal with PR#51278.

(mrg)

2021-08-24 09:47:36 UTC MAIN commitmail json YAML

implement tls minimum version setting.

mostly from sunil@nimmagadda.net in PR#55830, though i moved the
member into the main http structure, so that it doesn't trigger
sslinfo being allocated via command line without the rest of the
ssl being setup (which then leads to crashes.)

(mrg)

2021-08-24 08:39:50 UTC MAIN commitmail json YAML

lower case for hex numbers.
consistent #define<tab>
same binary before and after.

(skrll)

2021-08-24 07:32:31 UTC MAIN commitmail json YAML

Remove '\n' from UVMHIST format

(skrll)

2021-08-24 06:29:18 UTC MAIN commitmail json YAML

xorg-server is now at 1.20.13.

(mrg)

2021-08-24 06:28:25 UTC MAIN commitmail json YAML

2021-08-24 05:39:39 UTC MAIN commitmail json YAML

rework the bindport setting, inspired by part of the patch
from PR#56367 (thanks JP.)

(mrg)

2021-08-24 05:29:27 UTC MAIN commitmail json YAML

remove unused parameters, and clean up incompatible options.

from <henrik@gulbra.net>

(mrg)

2021-08-24 03:27:39 UTC thorpej-i2c-spi-conf2 commitmail json YAML

Whitespace changes to make the tables more compact.

(thorpej)

2021-08-24 03:10:11 UTC MAIN commitmail json YAML

don't install glu_mangle.h

(mrg)

2021-08-24 00:12:32 UTC MAIN commitmail json YAML

glu_mangle.h is obsolete now.

(mrg)

2021-08-24 00:06:32 UTC MAIN commitmail json YAML

2021-08-23 23:55:43 UTC MAIN commitmail json YAML

avoid an infinite loop if reading data fails.

system hung hard on an "AMD E2-7110 APU with AMD Radeon R2 Graphics"
CPU, as the read fails continually and the loop continues.

(mrg)

2021-08-23 23:08:50 UTC MAIN commitmail json YAML

2021-08-23 22:34:58 UTC MAIN commitmail json YAML

2021-08-23 22:32:40 UTC MAIN commitmail json YAML

2021-08-23 22:23:03 UTC MAIN commitmail json YAML

keep ProjectRoot at the old default of /usr/X11R7.

(mrg)

2021-08-23 22:14:31 UTC MAIN commitmail json YAML

updates for xeyes 1.2.0.

(mrg)

2021-08-23 22:13:27 UTC MAIN commitmail json YAML

define variables for the libxcb-* libraries.

(mrg)

2021-08-23 21:28:59 UTC MAIN commitmail json YAML

2021-08-23 21:20:37 UTC MAIN commitmail json YAML

2021-08-23 21:18:53 UTC MAIN commitmail json YAML

update for libXfont2 2.0.5.

(mrg)

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

2021-08-23 17:47:34 UTC MAIN commitmail json YAML

2021-08-23 17:03:23 UTC MAIN commitmail json YAML

lint: expand macro in string concatenation

No functional change.

(rillig)

2021-08-23 13:08:18 UTC MAIN commitmail json YAML

Return immediately from uvm_swap_shutdown() if there are
no (more) swap devices configured.

(hannken)

2021-08-23 06:50:01 UTC MAIN commitmail json YAML

2021-08-23 06:32:31 UTC MAIN commitmail json YAML

lint: make overflow check for binary '+' simpler

No functional change.

(rillig)

2021-08-23 06:26:37 UTC MAIN commitmail json YAML

lint: inline msb

This reduces the binary size on x86_64 by about 500 bytes.

No functional change.

(rillig)

2021-08-23 06:21:59 UTC MAIN commitmail json YAML

2021-08-23 06:10:27 UTC MAIN commitmail json YAML

lint: fix wrong warning about signed integer overflow in '-'

The newly added test cases in line 30 and 33 may or may not be worth a
warning since the expressions deal with unsigned integers, where the
behavior on overflow is well defined.

(rillig)

2021-08-23 05:52:04 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong warnings for integer overflow

(rillig)

2021-08-22 23:11:59 UTC MAIN commitmail json YAML

set EXA_MIXED_PIXMAPS so we don't get pixmaps we can't handle in NVSolid()
while there shut up some related debug output and remove unused variables

(macallan)

2021-08-22 22:24:12 UTC MAIN commitmail json YAML

usr.bin: enable lint checks for most programs in /usr/bin

Previously, lint was only activated for the libraries, but not for the
kernel or userland programs.  Activate lint for the programs in /usr/bin
for now, more will follow later.

This only affects builds that set MKLINT=yes.

(rillig)

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

2021-08-22 22:09:57 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong warning for '?' in getopt

(rillig)

2021-08-22 21:27:15 UTC MAIN commitmail json YAML

lint: merge duplicate code for binary operator

No functional change.

(rillig)

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

2021-08-22 20:56:51 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong constant folding in strict bool mode

Found while investigating wrong constant folding in default mode.

(rillig)

2021-08-22 20:18:39 UTC MAIN commitmail json YAML

2021-08-22 20:14:24 UTC MAIN commitmail json YAML

tests/lint: demonstrate wrong folding of 64-bit numbers

(rillig)

2021-08-22 19:56:15 UTC MAIN commitmail json YAML

fix typos in comments, add missing RCSID.

(andvar)

2021-08-22 18:43:06 UTC thorpej-i2c-spi-conf2 commitmail json YAML

In iic_devslot_reserve(), don't set a pointer to NULL before dereferencing
it in a KASSERT().

(thorpej)

2021-08-22 18:40:11 UTC thorpej-i2c-spi-conf2 commitmail json YAML

Use designated initialiers in iic_attach().

(thorpej)

2021-08-22 15:06:49 UTC MAIN commitmail json YAML

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

lint: remove Tflag and pflag from common declarations

These flags are only needed by lint1 and lint2, but not by the driver
xlint.

No functional change.

(rillig)

2021-08-22 14:35:44 UTC MAIN commitmail json YAML

lint: make xlint independent of lint1

The files from lint1 are not needed to build xlint, even worse, they get
mixed up wrongly.

$ (cd usr.bin/xlint && make cleandir)
$ (cd usr.bin/xlint/lint1 && make lint -k)
$ (cd usr.bin/xlint/xlint && make lint)

lint2: cannot open mem.ln: No such file or directory

The 'make -k' for lint1 is necessary because lint tries to validate
scan.c in strict bool mode, but the output from lex is not ready for
that.  This only happens in my local builds but not in the official
builds on releng.NetBSD.org, I'm still researching that difference.

(rillig)

2021-08-22 13:52:19 UTC MAIN commitmail json YAML

2021-08-22 13:45:56 UTC MAIN commitmail json YAML

2021-08-22 13:21:48 UTC MAIN commitmail json YAML

lint: clean up error handling in lint2

These are edge cases that don't happen in practice, therefore reduce the
size of the binary.

(rillig)

2021-08-22 13:12:39 UTC MAIN commitmail json YAML

lint: use unsigned integers for storing hash values

The computation of the hash values is unchanged, only the resulting
value (which is always less than 1009 anyway, see HSHSIZ2) is stored as
unsigned as well.

No functional change.

(rillig)

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

lint: save some memory

Before lint1.h 1.47 from 2021-01-02, adjacent bit-field struct members
shared storage.  Restore that using smaller types.

No functional change.

(rillig)

2021-08-22 12:32:13 UTC MAIN commitmail json YAML

lint: simplify reading of type qualifiers in lint2

The only producer of .ln files is lint1, which always writes the type
qualifiers in the order 'c', 'v', therefore there is no need to expect
any other order or check for duplicates.  There is no ambiguity since
the other type modifiers are neither 'c' nor 'v' and the main types are
all uppercase letters.

No functional change.

(rillig)

2021-08-22 12:25:16 UTC MAIN commitmail json YAML

lint: clean up switch statements in gettlen

Since the switch statements are only about tagged and derived types,
there is no need to list all integer and floating types.

No functional change.

(rillig)

2021-08-22 12:15:38 UTC MAIN commitmail json YAML

lint: convert TP from macro to inline function

No functional change.

(rillig)

2021-08-22 11:57:23 UTC MAIN commitmail json YAML

lint: extract parse_tspec from inptype

Add error handling for unknown type character, which led to read of
uninitialized memory before.  No practical change as far as lint2 only
ever reads output from lint1, since that is well-formed.

(rillig)

2021-08-22 07:00:41 UTC MAIN commitmail json YAML

s/u_int32_t/uint32_t/

NFCI

(skrll)

2021-08-22 04:43:44 UTC MAIN commitmail json YAML

2021-08-21 23:00:32 UTC MAIN commitmail json YAML

2021-08-21 22:23:33 UTC MAIN commitmail json YAML

2021-08-21 17:50:02 UTC MAIN commitmail json YAML

ssdfb: add missing break in switch. Unbreaks contrast setting for SSD1353

spotted by hannken@

(tnn)

2021-08-21 15:57:00 UTC MAIN commitmail json YAML

Fix link erorrs on ancient monolithic Xservers after DRI3 was enabled.

https://mail-index.netbsd.org/source-changes/2021/08/19/msg131652.html
> fix dri3 extension building and build it.
>
> needed for amdgpu.

XXX: I wonder if each Xorg server extension can be enabled/disabled
    per ${MACHINE} basis rather than in MI include/dix-config.h header.

(tsutsui)

2021-08-21 13:22:19 UTC MAIN commitmail json YAML

2021-08-21 12:38:56 UTC MAIN commitmail json YAML

PR/56370: mirabilos: libedit change from 2017 kills history in gdb

(christos)

2021-08-21 12:34:59 UTC MAIN commitmail json YAML

Add more api to make gdb-11 happy (but not gdbtui as usual)

(christos)

2021-08-21 11:58:12 UTC MAIN commitmail json YAML

tests/lint: add more test cases for lossy integer conversion

(rillig)

2021-08-21 11:55:26 UTC MAIN commitmail json YAML