]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agoath(4): Remove a double word in a few source code comments
Gordon Bergling [Sat, 9 Apr 2022 08:55:00 +0000 (10:55 +0200)]
ath(4): Remove a double word in a few source code comments

- s/for for/for/

MFC after: 3 days

2 years agoips(4): Remove a double word in a few source code comments
Gordon Bergling [Sat, 9 Apr 2022 08:53:50 +0000 (10:53 +0200)]
ips(4): Remove a double word in a few source code comments

- s/for for/for/

MFC after: 3 days

2 years agoena(4): Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 08:50:49 +0000 (10:50 +0200)]
ena(4): Remove a double word in a source code comment

- s/for for/for/

MFC after: 3 days

2 years agokern: Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 08:50:04 +0000 (10:50 +0200)]
kern: Remove a double word in a source code comment

- s/for for/for/

MFC after: 3 days

2 years agoUPDATING: Remove a double word in an entry
Gordon Bergling [Sat, 9 Apr 2022 08:35:37 +0000 (10:35 +0200)]
UPDATING: Remove a double word in an entry

- s/for for/for/

MFC after: 3 days

2 years agousb: Remove some double words in source code comments
Gordon Bergling [Sat, 9 Apr 2022 08:34:48 +0000 (10:34 +0200)]
usb: Remove some double words in source code comments

- s/for for/for/

MFC after: 3 days

2 years agoNOTES: Remove a double word in comments
Gordon Bergling [Sat, 9 Apr 2022 08:31:49 +0000 (10:31 +0200)]
NOTES: Remove a double word in comments

- s/for for/for/

MFC after: 3 days

2 years agoe1000: Fix a typos in source code comments
Gordon Bergling [Sat, 9 Apr 2022 08:05:32 +0000 (10:05 +0200)]
e1000: Fix a typos in source code comments

- s/negotation/negotiation/

MFC after: 3 days

2 years agocam(4): Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 08:04:33 +0000 (10:04 +0200)]
cam(4): Remove a double word in a source code comment

- s/this this/this/

MFC after: 3 days

2 years agousb(4): Fix two typos in source code comments
Gordon Bergling [Sat, 9 Apr 2022 08:03:48 +0000 (10:03 +0200)]
usb(4): Fix two typos in source code comments

- s/negotation/negotiation/

MFC after: 3 days

2 years agoumount(8): Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 08:02:14 +0000 (10:02 +0200)]
umount(8): Remove a double word in a source code comment

- s/this this/this/

MFC after: 3 days

2 years agomath(3): Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 08:01:10 +0000 (10:01 +0200)]
math(3): Remove a double word in a source code comment

- s/is is/is/

MFC after: 3 days

2 years agolibkern: Fix two typos in source code comments
Gordon Bergling [Sat, 9 Apr 2022 07:36:34 +0000 (09:36 +0200)]
libkern: Fix two typos in source code comments

- s/noticably/noticeably/

MFC after: 3 days

2 years agoqlnxe(4): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 18:46:27 +0000 (20:46 +0200)]
qlnxe(4): Fix a typo in a source code comment

- s/mulitple/multiple/

MFC after: 3 days

2 years agoipnat(5): Fix a double word in the manual page
Gordon Bergling [Fri, 8 Apr 2022 18:49:08 +0000 (20:49 +0200)]
ipnat(5): Fix a double word in the manual page

- s/be be/be/

MFC after: 3 days

2 years agodrm2: Fix a typo in a source code comment
Gordon Bergling [Sun, 27 Mar 2022 16:36:32 +0000 (18:36 +0200)]
drm2: Fix a typo in a source code comment

- s/mmaping/mapping/

MFC after: 3 days

2 years agodhclient(8): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 18:50:48 +0000 (20:50 +0200)]
dhclient(8): Fix a typo in a source code comment

- s/explicitely/explicitly/

MFC after: 3 days

2 years agostand: Remove a double word in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 18:52:08 +0000 (20:52 +0200)]
stand: Remove a double word in a source code comment

- s/be be/be/

MFC after: 3 days

2 years agofstyp(8): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 18:53:45 +0000 (20:53 +0200)]
fstyp(8): Fix a typo in a source code comment

- s/Miscellanious/Miscellaneous/

MFC after: 3 days

2 years agobhnd(4): Remove some double words in source code comments
Gordon Bergling [Fri, 8 Apr 2022 18:57:15 +0000 (20:57 +0200)]
bhnd(4): Remove some double words in source code comments

- s/be be/be/
- s/is is/is/

MFC after: 3 days

2 years agocxgbe(4): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 18:58:47 +0000 (20:58 +0200)]
cxgbe(4): Fix a typo in a source code comment

- s/simultaniously/simultaneously/

MFC after: 3 days

2 years agoice: Remove a double word in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 19:00:23 +0000 (21:00 +0200)]
ice: Remove a double word in a source code comment

- s/is is/is/

MFC after: 3 days

2 years agoneta: Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 19:01:25 +0000 (21:01 +0200)]
neta: Fix a typo in a source code comment

- s/maintance/maintenance/

MFC after: 3 days

2 years agonvme(4): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 19:02:19 +0000 (21:02 +0200)]
nvme(4): Fix a typo in a source code comment

- s/is is/is/

MFC after: 3 days

2 years agosym(4): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 19:04:01 +0000 (21:04 +0200)]
sym(4): Fix a typo in a source code comment

- s/explicitely/explicitly/

MFC after: 3 days

2 years agosound(4): Fix a typo in a source code comment
Gordon Bergling [Fri, 8 Apr 2022 19:04:44 +0000 (21:04 +0200)]
sound(4): Fix a typo in a source code comment

- s/Miscellanious/Miscellaneous/

MFC after: 3 days

2 years agosfxge(4): Remove some double words in source code comments
Gordon Bergling [Fri, 8 Apr 2022 19:06:22 +0000 (21:06 +0200)]
sfxge(4): Remove some double words in source code comments

- s/is is/is/

MFC after: 3 days

2 years agoresolver(3): Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 06:51:47 +0000 (08:51 +0200)]
resolver(3): Fix a typo in a source code comment

- s/psuedo/pseudo/

MFC after: 3 days

2 years agorandom(3): Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 06:52:28 +0000 (08:52 +0200)]
random(3): Fix a typo in a source code comment

- s/psuedo/pseudo/

MFC after: 3 days

2 years agokern: Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 06:53:17 +0000 (08:53 +0200)]
kern: Fix a typo in a source code comment

- s/is is/is/

MFC after: 3 days

2 years agopowerpc: Fix two typos in source code comments
Gordon Bergling [Sat, 9 Apr 2022 06:54:01 +0000 (08:54 +0200)]
powerpc: Fix two typos in source code comments

- s/mutiplying/multiplying/

MFC after: 3 days

2 years agolibalias(3): Fix two typos in source code comments
Gordon Bergling [Sat, 9 Apr 2022 06:54:56 +0000 (08:54 +0200)]
libalias(3): Fix two typos in source code comments

- s/modfied/modified/

MFC after: 3 days

2 years agonet80211(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 06:56:04 +0000 (08:56 +0200)]
net80211(4): Fix a typo in a source code comment

- s/is is/is/

MFC after: 3 days

2 years agonetpfil: Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 06:57:18 +0000 (08:57 +0200)]
netpfil: Fix a typo in a source code comment

- s/maintance/maintenance/

MFC after: 3 days

2 years agoeventhandler: Remove a double world in two comments
Gordon Bergling [Sat, 9 Apr 2022 06:58:18 +0000 (08:58 +0200)]
eventhandler: Remove a double world in two comments

- s/be be/be/

MFC after: 3 days

2 years agoufs: Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 06:59:14 +0000 (08:59 +0200)]
ufs: Fix a typo in a source code comment

- s/explicitely/explicitly/

MFC after: 3 days

2 years agoofed: Remove a double word in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 07:00:14 +0000 (09:00 +0200)]
ofed: Remove a double word in a source code comment

- s/is is/is/

MFC after: 3 days

2 years agotcp_rack: Fix a few typos in sysctl descriptions and comments
Gordon Bergling [Sat, 9 Apr 2022 07:04:59 +0000 (09:04 +0200)]
tcp_rack: Fix a few typos in sysctl descriptions and comments

- s/postion/position/
- s/postions/positions/
- s/repostion/reposition/

MFC after: 5 days

2 years agotcp_htps: Fix a typo in a source code comment
Gordon Bergling [Sat, 9 Apr 2022 07:01:38 +0000 (09:01 +0200)]
tcp_htps: Fix a typo in a source code comment

- s/postion/position/

MFC after: 3 days

2 years agotcp_bbr(4): Fix two typos in source code comments
Gordon Bergling [Sat, 9 Apr 2022 07:03:29 +0000 (09:03 +0200)]
tcp_bbr(4): Fix two typos in source code comments

- s/postive/positive/
- s/postion/position/

MFC after: 3days

2 years agonvme: new define for size of host memory buffer sizes
Warner Losh [Sat, 9 Apr 2022 05:01:06 +0000 (23:01 -0600)]
nvme: new define for size of host memory buffer sizes

The nvme spec defines the various fields that specify sizes for host
memory buffers in terms of 4096 chunks. So, rather than use a bare 4096
here, use NVME_HMB_UNITS. This is explicitly not the host page size of
4096, nor the default memory page size (mps) of the NVMe drive, but its
own thing and needs its own define.

No functional change is intended, only the logical spelling of 4k.

Sponsored by: Netflix

2 years agoarm ti: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 01:31:30 +0000 (18:31 -0700)]
arm ti: Remove unused variables.

2 years agoti_adc: Use void cast instead of a dummy variable.
John Baldwin [Sat, 9 Apr 2022 01:31:30 +0000 (18:31 -0700)]
ti_adc: Use void cast instead of a dummy variable.

2 years agoti_prm: Use existing dev in debug traces and remove unused sc.
John Baldwin [Sat, 9 Apr 2022 01:31:30 +0000 (18:31 -0700)]
ti_prm: Use existing dev in debug traces and remove unused sc.

2 years agoarm ti_scm_syscon: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 01:31:30 +0000 (18:31 -0700)]
arm ti_scm_syscon: Remove unused variable.

Note that bus_generic_probe never fails.

2 years agork_usbphy: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 01:31:29 +0000 (18:31 -0700)]
rk_usbphy: Remove unused variable.

2 years agocesa: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 01:31:29 +0000 (18:31 -0700)]
cesa: Remove unused variable.

2 years agoehci_imx: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 01:31:29 +0000 (18:31 -0700)]
ehci_imx: Remove unused variable.

2 years agoimx6_ssi: Remove unused variables, #if 0 variables only used under #if 0.
John Baldwin [Sat, 9 Apr 2022 01:31:29 +0000 (18:31 -0700)]
imx6_ssi: Remove unused variables, #if 0 variables only used under #if 0.

2 years agobcm2835_audio_callback: Don't process garbage if there is no message.
John Baldwin [Sat, 9 Apr 2022 01:31:29 +0000 (18:31 -0700)]
bcm2835_audio_callback: Don't process garbage if there is no message.

If vchi_msg_dequeue failed due to an empty queue, return rather than
treating stack garbage as a valid message.

2 years agoarm/arm64 nvidia: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 01:31:29 +0000 (18:31 -0700)]
arm/arm64 nvidia: Remove unused variables.

2 years agoarm mv: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 01:31:29 +0000 (18:31 -0700)]
arm mv: Remove unused variables.

2 years agoSpeed up *-old-* make targets by using sed instead of xargs
Ed Maste [Fri, 1 Apr 2022 22:58:00 +0000 (18:58 -0400)]
Speed up *-old-* make targets by using sed instead of xargs

Targets like 'list-old-files' used "xargs -n1" to produce a list with
one file per line.  Using xargs resulted in one fork+exec for each
Argument, resulting in rather long runtime.  Instead, use sed to split
the list.  On one machine `make list-old-files` took 30s wall clock time
with xargs and less than 1s with sed.

Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34741

2 years agoif_mvneta: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:30:14 +0000 (17:30 -0700)]
if_mvneta: Remove unused variables.

2 years agoarm_add_efi_map_entries: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 00:30:14 +0000 (17:30 -0700)]
arm_add_efi_map_entries: Remove unused variable.

2 years agoagp_nvidia: Replace a dummy variable to force a read with a void cast.
John Baldwin [Sat, 9 Apr 2022 00:30:14 +0000 (17:30 -0700)]
agp_nvidia: Replace a dummy variable to force a read with a void cast.

2 years agonetmap: Move more_txspace and some_recvd under #ifdef SYNC_KLOOP_POLL.
John Baldwin [Sat, 9 Apr 2022 00:30:14 +0000 (17:30 -0700)]
netmap: Move more_txspace and some_recvd under #ifdef SYNC_KLOOP_POLL.

2 years agoa37x0_xtal: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 00:25:15 +0000 (17:25 -0700)]
a37x0_xtal: Remove unused variable.

2 years agoimx_clk_sscg: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 00:25:15 +0000 (17:25 -0700)]
imx_clk_sscg: Remove unused variable.

2 years agoimx_clk_composite: Mark two variables only used in debug traces as unused.
John Baldwin [Sat, 9 Apr 2022 00:25:15 +0000 (17:25 -0700)]
imx_clk_composite: Mark two variables only used in debug traces as unused.

While here, make best_post_div track the best value of post_div rather
than pre_div so that the debug trace doesn't just print the same value
twice.

2 years agobcm2835_gpio: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 00:25:15 +0000 (17:25 -0700)]
bcm2835_gpio: Remove unused variable.

This was a static local (i.e. a global variable) which was probably
not intended.

2 years agoaw_clk_nkmp: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:25:15 +0000 (17:25 -0700)]
aw_clk_nkmp: Remove unused variables.

2 years agouart_mu: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:25:15 +0000 (17:25 -0700)]
uart_mu: Remove unused variables.

2 years agopci_host_generic_acpi: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 00:25:15 +0000 (17:25 -0700)]
pci_host_generic_acpi: Remove unused variable.

2 years agogpio pl061: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
gpio pl061: Remove unused variables.

2 years agocoresight: Mark a variable only used in a debug trace as unused.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
coresight: Mark a variable only used in a debug trace as unused.

2 years agoiflib: Use empty inline functions for prefetch*() on non-x86.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
iflib: Use empty inline functions for prefetch*() on non-x86.

This avoids warnings about unused variables in expressions passed to
prefetch*().

2 years agotca6408: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
tca6408: Remove unused variable.

2 years agoetherswitch: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
etherswitch: Remove unused variable.

2 years agoaw_gmacclk: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
aw_gmacclk: Remove unused variables.

2 years agoemac_drain_rxfifo: Use a void cast instead of a dummy variable.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
emac_drain_rxfifo: Use a void cast instead of a dummy variable.

2 years agopci fdt host drivers: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
pci fdt host drivers: Remove unused variables.

2 years agoPass the computed enum of the correct type to dbg_setup_watchpoint.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
Pass the computed enum of the correct type to dbg_setup_watchpoint.

The two sets of constants happen to have the same values, so this is
just a cosmetic fix.

2 years agoarm bus_dma_tag_destroy: Move dmat_copy under #ifdef KTR.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
arm bus_dma_tag_destroy: Move dmat_copy under #ifdef KTR.

2 years agosbni: Use memset to clear flags structure in attach.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
sbni: Use memset to clear flags structure in attach.

NFC, just less nausea-inducing.

2 years agosbni: Remove unused variable.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
sbni: Remove unused variable.

2 years agoi386 linux: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:25:14 +0000 (17:25 -0700)]
i386 linux: Remove unused variables.

2 years agoce: Disable -Wunused-but-set-variable for obfuscated tau32-ddk.c.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
ce: Disable -Wunused-but-set-variable for obfuscated tau32-ddk.c.

2 years agotdfx: Mark a variable only used under a custom debug macro as unused.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
tdfx: Mark a variable only used under a custom debug macro as unused.

2 years agoi386 pmap: Re-quiet set but unused warnings.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
i386 pmap: Re-quiet set but unused warnings.

__diagused no longer covers KTR, so use explicit #ifdef KTR instead.

2 years agovm_phys_early_alloc: mem_index is only used under #ifdef NUMA.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
vm_phys_early_alloc: mem_index is only used under #ifdef NUMA.

Possibly mem_index should just reuse biggestone since this loop is
already reusing biggestsize.

2 years agouma_zfree_smr: uz_flags is only used if NUMA is defined.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
uma_zfree_smr: uz_flags is only used if NUMA is defined.

2 years agoUse stub inline functions for no-op versions of tcp_fastopen*().
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
Use stub inline functions for no-op versions of tcp_fastopen*().

Inline functions "use" variables passed as arguments unlike empty
macros appeasing compiler warnings about unused variables.

2 years agoaac: Move sge64 declaration into the #ifdef __amd64__ block.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
aac: Move sge64 declaration into the #ifdef __amd64__ block.

2 years agopf: Workaround set but unused warning.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
pf: Workaround set but unused warning.

The RB_NEXT macro does not use its middle argument since commit
5fce408cc44c737267aaaf0dcecd3454ba9089cd in 2004 (which ironically
fixed an "unused parameter" warning by introducing this warning in all
consumers).  RB_PREV has also copied this unfortunate behavior of an
unused argument.

This results in 'parent' not being used.  To workaround, inline the
value of 'parent' as the second argument to RB_NEXT.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D34833

2 years agomlx5: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
mlx5: Remove unused variables.

Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34827

2 years agomlx4: Remove unused variables.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
mlx4: Remove unused variables.

Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34826

2 years agomlx4: Remove a variable only used in commented-out code.
John Baldwin [Sat, 9 Apr 2022 00:25:13 +0000 (17:25 -0700)]
mlx4: Remove a variable only used in commented-out code.

Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34825

2 years agoLinuxKPI: 802.11: add ieee80211_beacon_get_tim(), ieee80211_sn_sub()
Bjoern A. Zeeb [Fri, 8 Apr 2022 18:33:23 +0000 (18:33 +0000)]
LinuxKPI: 802.11: add ieee80211_beacon_get_tim(), ieee80211_sn_sub()

Add a dummy implementation for ieee80211_beacon_get_tim().
Add the implementation for ieee80211_sn_sub().

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

2 years agonfscl: Add support for a NFSv4 AppendWrite RPC
Rick Macklem [Fri, 8 Apr 2022 20:59:05 +0000 (13:59 -0700)]
nfscl: Add support for a NFSv4 AppendWrite RPC

For IO_APPEND VOP_WRITE()s, the code first does a
Getattr RPC to acquire the file's size, before it
can do the Write RPC.

Although NFS does not have an append write operation,
an NFSv4 compound can use a Verify operation to check
that the client's notion of the file's size is
correct, followed by the Write operation.

This patch modifies nfscl_wcc_data() to optionally
acquire the file's size, for use with an AppendWrite.
Although the "stuff" arguments are always NULL
(these were used for the Mac OSX port and should be
cleared out someday), make the argument to
nfscl_wcc_data() explicitly NULL for clarity.

This patch does not cause any semantics change until
the AppendWrite is added in a future commit.

2 years agotcp_bbr(4): Fix a typo in a sysctl description and a comment
Gordon Bergling [Fri, 8 Apr 2022 18:46:52 +0000 (20:46 +0200)]
tcp_bbr(4): Fix a typo in a sysctl description and a comment

- s/postive/positive/

MFC after: 5 days

2 years agoFix a typo in previous commit.
John Baldwin [Fri, 8 Apr 2022 19:01:33 +0000 (12:01 -0700)]
Fix a typo in previous commit.

Reported by: npn
Pointy hat to: jhb
Fixes: 572edd3dae9f vmm: Re-quiet set but unused warnings.

2 years agoLinuxKPI: add ALIGN_DOWN()
Bjoern A. Zeeb [Fri, 8 Apr 2022 15:30:19 +0000 (15:30 +0000)]
LinuxKPI: add ALIGN_DOWN()

Add ALIGN_DOWN as rounddown2() along ALIGN() which is implemented as
roundup2().

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: manu, hselasky (now with less ())
Differential Revision: https://reviews.freebsd.org/D34844

2 years agoffs: wait for trims earlier during unmount to avoid panic
Chuck Silvers [Fri, 8 Apr 2022 17:19:40 +0000 (10:19 -0700)]
ffs: wait for trims earlier during unmount to avoid panic

All softdep processing is supposed to be completed by
softdep_flushfiles() and no more deps are supposed to be created after
that, but if a pending trim completes after softdep_flushfiles() and
before softdep_unmount() then the blkfree that is performed by
ffs_blkfree_trim_task() will create a dep when none should exist, and
if softdep_unmount() is called before that dep is freed then the
kernel will panic.  Prevent this by waiting for trims to complete
earlier in the unmount process, in ffs_flushfiles(), so that any deps
will be freed and any modified CG buffers will be flushed by the final
fsync of the devvp in ffs_flushfiles() as intended.

Reviewed by: mckusick, kib
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D34806

2 years agoi386: Fix the nodevice apic build
Mark Johnston [Fri, 8 Apr 2022 15:47:52 +0000 (11:47 -0400)]
i386: Fix the nodevice apic build

PR: 263124
Fixes: 62d09b46ad75 ("x86: Defer LAPIC calibration until after timecounters are available")
Reviewed by: kib, jhb, emaste
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34830

2 years agonet: Fix memory leaks in lltable_calc_llheader() error paths
Mark Johnston [Fri, 8 Apr 2022 15:47:25 +0000 (11:47 -0400)]
net: Fix memory leaks in lltable_calc_llheader() error paths

Also convert raw epoch_call() calls to lltable_free_entry() calls, no
functional change intended.  There's no need to asynchronously free the
LLEs in that case to begin with, but we might as well use the lltable
interfaces consistently.

Noticed by code inspection; I believe lltable_calc_llheader() failures
do not generally happen in practice.

Reviewed by: bz
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34832

2 years agonet: Fix LLE lock leaks
Mark Johnston [Fri, 8 Apr 2022 15:46:19 +0000 (11:46 -0400)]
net: Fix LLE lock leaks

Historically, lltable_try_set_entry_addr() would release the LLE lock
upon failure.  After some refactoring, it no longer does so, but
consumers were not adjusted accordingly.

Also fix a leak that can occur if lltable_calc_llheader() fails in the
ARP code, but I suspect that such a failure can only occur due to a code
bug.

Reviewed by: bz, melifaro
Reported by: pho
Fixes: 0b79b007ebfc ("[lltable] Restructure nd6 code.")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34831

2 years agoCorrect calendar date entry for myself
Lewis Cook [Thu, 7 Apr 2022 21:20:00 +0000 (22:20 +0100)]
Correct calendar date entry for myself

Approved by: hselasky (src)
Differential Revision: https://reviews.freebsd.org/D34839

2 years agoCross-reference cd(4) and cd9660(5)
Mateusz Piotrowski [Fri, 8 Apr 2022 13:19:07 +0000 (15:19 +0200)]
Cross-reference cd(4) and cd9660(5)

MFC after: 3 days

2 years agortw88: downgrade rtw8822c firmware to 9.9.10
Bjoern A. Zeeb [Fri, 8 Apr 2022 11:11:14 +0000 (11:11 +0000)]
rtw88: downgrade rtw8822c firmware to 9.9.10

Firmware version 9.9.11 added support for hw_scan and is reportedly
causing more problems than 9.9.10 does.  Until we get a chance to
test this out downgrade the firmware in order to help people testing
more.

Sponsored by: The FreeBSD Foundation
PR: 248235
MFC after: 2 days
X-MFC: just to get the reminder with the original commit
X-MFC with: 73d4ebea3567f18db549638c3d897b6d6758faa4