Commit Graph

287702 Commits

Author SHA1 Message Date
skrll
f34a02e514 Use #define<tab> in this file 2021-05-18 06:42:11 +00:00
skrll
eaa362f3de Remove argument names from function declaration prototypes.
Misc tidyup.
2021-05-18 06:40:16 +00:00
skrll
61899bf12b Remove argument names from function declaration prototypes. 2021-05-18 06:38:24 +00:00
msaitoh
a8358f374f - Cleanup an rxbuf entry when bus_dmamap_load_mbuf() failed to prevent panic.
- Print error number when error occurred.
2021-05-18 05:29:15 +00:00
mrg
d9ab0069bc s/defopt/defflag/. 2021 called to remind me it's still 2021. 2021-05-18 05:16:09 +00:00
yamaguchi
a47fe33408 Added missing PPPOE_UNLOCK() on dropping PADS and PADT 2021-05-18 01:46:29 +00:00
mrg
a6cc96866d also strip .eh_frame. libkern dkcksum pushed bootxx_ffs 7 bytes over a limit.
remove an old comment.
2021-05-17 22:36:31 +00:00
mrg
186d4bfa84 include libkern.h for moved dkcksum(). 2021-05-17 20:21:05 +00:00
nakayama
041766630a Make vers.c depend on ${_NETBSD_VERSION_DEPENDS}. 2021-05-17 20:10:27 +00:00
mrg
3b806a0f67 include libkern.h to get moved dkcksum() definition. 2021-05-17 19:31:38 +00:00
riastradh
a8fb54449d Teach cpuctl(8) about some additional aarch64 feature bits.
(Descriptions for CSV3 and CSV2 are not very good, but the blurbs in
the arm arm are an entire paragraph long each.  Please fix if you have
a conciser summary!)
2021-05-17 18:43:18 +00:00
christos
319ee229aa for mercurial, use the latest revision instead of limiting the output to 1
(requested by joerg)
2021-05-17 17:12:12 +00:00
martin
7639136097 Add NetBSD 9.1 and 9.2 release 2021-05-17 15:59:28 +00:00
christos
47bc05a6ad Handle git and mercurial for reproducible builds. 2021-05-17 13:50:39 +00:00
mrg
7de9d97fa4 move bi-endian disklabel support from the kernel and libsa into libkern.
- dkcksum() and dkcksum_sized() move from subr_disk.c and from
  libsa into libkern/dkcksum.c (which is missing _sized() version),
  using the version from usr.sbin/disklabel.

- swap_disklabel() moves from subr_disk_mbr.c into libkern, now called
  disklabel_swap().  (the sh3 version should be updated to use this.)

- DISKLABEL_EI becomes a first-class option with opt_disklabel.h.

- add libkern.h to libsa/disklabel.c.

this enables future work for bi-endian libsa/ufs.c (relevant for ffsv1,
ffsv2, lfsv1, and lfsv2), as well as making it possible for ports not
using subr_disk_mbr.c to include bi-endian disklabel support (which,
afaict, includes any disk on mbr-supporting platforms that do not have
an mbr as well as disklabel.)

builds successsfully on: alpha, i386, amd64, sun2, sun3, evbarm64,
evbarm64-eb, sparc, and sparc64.  tested in anita on i386 and sparc,
testing in hardware on evbarm64*.
2021-05-17 08:50:36 +00:00
yamaguchi
17f3f70e5b doc: added lagg(4) 2021-05-17 06:31:30 +00:00
yamaguchi
f0101d0e08 Add a new link-aggregation pseudo interface named lagg(4)
- FreeBSD's lagg(4) based implementation
 - MP-safe and MP-scalable
2021-05-17 04:07:41 +00:00
rin
5b02012073 Fix search for collating symbols in form of [[.foo.]], as in a similar
manner as already done for POSIX character classes by upstream:

fd5795cc98 (diff-42d58222b328681b9923634991312932089876a0242f78cf488157aa24969c1a)

(We already have this change since initial import to external/bsd/nvi.)

Found by tnozaki. Thanks!
2021-05-17 04:01:57 +00:00
kre
53e5e3df7a PR bin/56042
Fix typos (2nd acst should have been acdt), 0550 for ist should be 0530
(5.5 hours is not 5 hours and 50 minutes...).

Comment out the zp4 zp5 and zp6 zone names.   They are supposedly supported
by the source (they're in the table) but cannot work, as the parsedate
lexer doesn't allow a "word" to start with an alpha and also contain
digits.   Maybe (just maybe) that could be fixed sometime, but since these
have never worked, and no-one has ever seemed to miss them, and they're the
only words which are of that form, for now, just stop pretending they work.
2021-05-16 19:42:35 +00:00
rillig
2999d7a951 lint: add more specific warning for bit-field of type plain 'int'
Previously, declaring a bit-field of type plain 'int' resulted in this
warning:

	warning: nonportable bit-field type 'int' [34]

This warning was too unspecific to be actionable, and until yesterday it
didn't even include the type.  In order to allow this warning to be
understood and properly fixed, describe the actual nonportability more
precisely:

	warning: bit-field of type plain 'int' has
	implementation-defined signedness [344]
2021-05-16 11:11:36 +00:00
rillig
dec93c3088 lint: add type information to unportable bit-field type
Seeing the message "unportable bit-field type 'int'" may sound strange
at first, but that's a strict interpretation of the wording in C99
6.7.2.1p4, which requires that the bit-field type is "'_Bool', 'unsigned
int' or 'signed int', or some other implementation-defined type".

The rationale for C99 6.7.2.1 explicitly lists plain 'int' among the
allowed types for bit-fields, regardless of any additional
implementation-defined types.  This means that lint had interpreted this
paragraph wrong, and it should be fixed to allow plain int as well.
2021-05-16 10:34:19 +00:00
rillig
1a0e12d66e lint: add quotes to message 309 about constant conversion 2021-05-16 10:18:24 +00:00
rillig
fc2d694242 tests/lint: add test for warning about zero-bits in '&' 2021-05-16 10:08:01 +00:00
rillig
60e7bdf08f memmem: remove unreachable return statement 2021-05-16 09:43:39 +00:00
mlelstv
218681dd96 close pipe before freeing frame length array. 2021-05-16 09:17:23 +00:00
skrll
a0cb3f1b57 s/ENTRY/ENTRY_NP/ in a few places 2021-05-16 09:02:04 +00:00
mlelstv
b1ce595009 Protect ioctl and declare MPSAFE. 2021-05-16 08:48:20 +00:00
mlelstv
27f97b3677 Try to guess attributes better. 2021-05-16 08:46:38 +00:00
mlelstv
a848552d7a No need to check cell count. 2021-05-16 08:44:26 +00:00
rillig
e966428344 tests/lint: add expected output for testing '&' in switch statement 2021-05-16 00:09:49 +00:00
rillig
ca8378a5d8 wpa: fix Clang build
src/external/bsd/wpa/bin/hostapd/../../dist/src/common/dpp.c:5377:7:
error: format specifies type 'unsigned long' but the argument has type
'os_time_t' (aka 'long long') [-Werror,-Wformat]
2021-05-15 19:19:55 +00:00
rillig
c910954897 lint: warn about unreachable case labels for '&&'
See octeon_gmxreg.h 1.2 from 2020-06-18 for an example, where
RXN_RX_INBND_SPEED was cleaned up without adjusting the corresponding
code in octeon_gmx.c.
2021-05-15 19:12:14 +00:00
jakllsch
40cc624231 Change PCI_VENDOR_MASK and PCI_PRODUCT_MASK to unsigned values, to prevent
sign extension of product ID when shifted up into place in PCI_ID_CODE()

Should fix PR 56176.
2021-05-15 13:00:45 +00:00
rin
eff5a2aac8 Wrap long line. No binary changes. 2021-05-15 11:39:20 +00:00
rin
d71e4e9490 Fix __syscall(2) for COMPAT_NETBSD32 on aarch64{,eb}.
The 1st argument for __syscall(2) is quad_t, which is stored in r0 and r1.

Now, tests/lib/libc/t_syscall:mmap___syscall passes for COMPAT_NETBSD32.
2021-05-15 11:38:26 +00:00
uwe
21d563f5dc __newwin - fix BGWCOL initialization.
From Michael Forney in PR lib/56174
2021-05-15 11:06:07 +00:00
mrg
e5aaa45327 note spiflash(4) works on rk3328. 2021-05-15 10:22:46 +00:00
mrg
cad3843544 add SPI support to rk3328, tested on rock64.
simply adding the SPI clocks (and pwm while here) and enabling
the config match was sufficient, though my first rock64 seems
to have a deal SPI now (does not probe in u-boot or netbsd.)
2021-05-15 08:46:00 +00:00
simonb
30ff9be8af The MIPS O64 ABI uses full 64-bit FP regs. 2021-05-15 02:37:07 +00:00
christos
b307b81829 ignore cvslatest errors in expert mode 2021-05-14 22:06:34 +00:00
rillig
e0df50670a tests/lint: test bitwise mismatch in switch statement 2021-05-14 21:14:55 +00:00
rillig
b151bade28 tests/make: show that in ':S', '.' and '*' are ordinary characters 2021-05-14 19:37:16 +00:00
simonb
7efd30162c Fix a missed bitmask to __SHIFTOUT conversion in rev 1.12.
Fixes negotiation problems on non-gige switches.  Problem discovered and
tested by riastradh@.
2021-05-14 13:36:28 +00:00
jmcneill
af67ce95ae Replace aprint_error with aprint_error_dev in config_interrupts callback. 2021-05-14 09:25:14 +00:00
yamaguchi
fe63e5c41b Added a keyword to change keepalive interval 2021-05-14 09:08:59 +00:00
yamaguchi
409d08390a Add a parameter to change keepalive interval in each PPPoE I/F 2021-05-14 08:41:25 +00:00
yamaguchi
542218674b Added SPPP_NORECV_TIME option to change pp_max_noreceive 2021-05-14 08:31:14 +00:00
yamaguchi
aec75754e3 Send echo request even while user data is received
if pp_max_noreceive is 0
2021-05-14 08:11:08 +00:00
yamaguchi
5b036654ab Introduce SPPP_KEEPALIVE_INTERVAL option
to change the interval between LCP echo requests
2021-05-14 08:06:32 +00:00
msaitoh
b60f751dde Keep m_len and m_pkthdr.len consistent to prevent panic on arm.
Arm's bus_dmamap_load_mbuf() keeps a pointer to the original mbuf
  and bus_dmamap_sync() refers it. ixgbe_rxeof() modified mbuf's m_len
  inconsistently with m_pkthdr and dm_mapsize. "ifconfig down up" made
  panic by referring the inconsistent mbuf length.
2021-05-14 05:15:17 +00:00