]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
2 years agoMostly revert a5970a529c2d95271: Make files opened with O_PATH to not block non-force...
Konstantin Belousov [Wed, 13 Apr 2022 00:47:45 +0000 (03:47 +0300)]
Mostly revert a5970a529c2d95271: Make files opened with O_PATH to not block non-forced unmount

Problem is that open(O_PATH) on nullfs -o nocache is broken then,
because there is no reference on the vnode after the open syscall exits.

Reported and tested by: ambrisko
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

2 years agopowerpc mpc85xx: Remove unused variables.
John Baldwin [Wed, 13 Apr 2022 23:08:24 +0000 (16:08 -0700)]
powerpc mpc85xx: Remove unused variables.

2 years agopowerpc: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
powerpc: Use __diagused for variables only used in KASSERT().

2 years agoad7417: Avoid an unused but set warning when compiled with NO_SYSCTL_DESCR.
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
ad7417: Avoid an unused but set warning when compiled with NO_SYSCTL_DESCR.

Use a ternary operator for the description string passed to
SYSCTL_ADD_PROC instead of a helper variable.

2 years agodpaa: Remove unused variables.
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
dpaa: Remove unused variables.

2 years agodivert_packet: ip is only used for SCTP.
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
divert_packet: ip is only used for SCTP.

2 years agoin_pcballoc: error is only used for IPSEC or MAC.
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
in_pcballoc: error is only used for IPSEC or MAC.

2 years agokern: Move variables only used for MAC under #ifdef MAC.
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
kern: Move variables only used for MAC under #ifdef MAC.

2 years agoriscv: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
riscv: Use __diagused for variables only used in KASSERT().

2 years agoxdma: Inline variables with simple values used once in a KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
xdma: Inline variables with simple values used once in a KASSERT().

2 years agoi386 getmemsize: Use __diagused for a variable only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
i386 getmemsize: Use __diagused for a variable only used in KASSERT().

2 years agoarm64 rk_pcie: Use __diagused for a variable only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
arm64 rk_pcie: Use __diagused for a variable only used in KASSERT().

2 years agovnic: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
vnic: Use __diagused for variables only used in KASSERT().

2 years agosched_ule: Inline value of ts in sched_thread_priority.
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
sched_ule: Inline value of ts in sched_thread_priority.

This avoids a set but unused warning in kernels without SMP where
TDQ_CPU() doesn't use its argument.

2 years agoata-fsl: Remove unused variable.
John Baldwin [Wed, 13 Apr 2022 23:08:23 +0000 (16:08 -0700)]
ata-fsl: Remove unused variable.

2 years agoarm freescale: Remove unused variables.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
arm freescale: Remove unused variables.

2 years agoarm sp804: Remove unused variables.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
arm sp804: Remove unused variables.

2 years agoarm vybrid: #if 0 variables only used under #if 0.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
arm vybrid: #if 0 variables only used under #if 0.

2 years agodrm2: Remove unused variables.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
drm2: Remove unused variables.

2 years agoif_mvneta: Use __diagused for a variable only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
if_mvneta: Use __diagused for a variable only used in KASSERT().

2 years agoxdma pl330: Remove unused variables.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
xdma pl330: Remove unused variables.

2 years agogpio tca6416: Remove unused variable.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
gpio tca6416: Remove unused variable.

2 years agoflash: Remove unused variables.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
flash: Remove unused variables.

2 years agohwpmc: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
hwpmc: Use __diagused for variables only used in KASSERT().

2 years agolinuxkpi: Use an inline function for the _ioremap_attr stub.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
linuxkpi: Use an inline function for the _ioremap_attr stub.

This "consumes" variables passed to ioremap*() avoiding set but unused
warnings.

2 years agoarm: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
arm: Use __diagused for variables only used in KASSERT().

2 years agobcm2835_systimer: Remove unused variable.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
bcm2835_systimer: Remove unused variable.

2 years agosched_4bsd: ts is only used in sched_bind for SMP.
John Baldwin [Wed, 13 Apr 2022 23:08:22 +0000 (16:08 -0700)]
sched_4bsd: ts is only used in sched_bind for SMP.

2 years agoarm dbg: Use PCPU_GET(cpuid) directly in assertions.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
arm dbg: Use PCPU_GET(cpuid) directly in assertions.

2 years agoipsec_encap: setdf is only used for INET.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
ipsec_encap: setdf is only used for INET.

2 years agoTCP sysctl handlers: fin and lin are only used for INET.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
TCP sysctl handlers: fin and lin are only used for INET.

2 years agotcp_log_vain/addrs: Use a const pointer for the IPv4 header.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
tcp_log_vain/addrs: Use a const pointer for the IPv4 header.

The pointer to the IPv6 header was already const.

2 years agotcp_log_addr: ip is only used for INET.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
tcp_log_addr: ip is only used for INET.

2 years agoipfw: icmp6_type is only used for INET6.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
ipfw: icmp6_type is only used for INET6.

2 years agomlx5: fs_tcp is only used for INET or INET6.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
mlx5: fs_tcp is only used for INET or INET6.

2 years agosctp: #ifdef INET-only and INET6-only variables.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
sctp: #ifdef INET-only and INET6-only variables.

Duplicating the SCTP_PCB_FLAGS_BOUND_V6 check made the #ifdef's
simpler than applying #ifdef's directly to the original code.  Modern
compilers should cache the result rather than testing the flag twice.

2 years agoinfiniband_resolve_addr: ih is only used for INET or INET6.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
infiniband_resolve_addr: ih is only used for INET or INET6.

2 years agong_netflow: Move various variables under INET || INET6.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
ng_netflow: Move various variables under INET || INET6.

2 years agoether_resolve_addr: eh is only used for INET or INET6.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
ether_resolve_addr: eh is only used for INET or INET6.

2 years agovtnet: offset is only used for INET or INET6.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
vtnet: offset is only used for INET or INET6.

2 years agovlan: ifa is only used under #ifdef INET.
John Baldwin [Wed, 13 Apr 2022 23:08:21 +0000 (16:08 -0700)]
vlan: ifa is only used under #ifdef INET.

2 years agozfs: Disable -Wunused-but-set-variable for dnode.c.
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
zfs: Disable -Wunused-but-set-variable for dnode.c.

dn is only used by DNODE_VERIFY (conditional on ZFS_DEBUG) in
dnode_special_open.

2 years agousb: Add a __usbdebug_used for variables only used under #ifdef USB_DEBUG.
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
usb: Add a __usbdebug_used for variables only used under #ifdef USB_DEBUG.

Use it for various variables only used in DPRINTF debug traces
conditional on USB_DEBUG.

2 years agousb: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
usb: Use __diagused for variables only used in KASSERT().

2 years agounionfs: Use __diagused for a variable only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
unionfs: Use __diagused for a variable only used in KASSERT().

2 years agosfxge: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
sfxge: Use __diagused for variables only used in KASSERT().

2 years agosdhci_card_task: d is only used in the non-MMCCAM case.
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
sdhci_card_task: d is only used in the non-MMCCAM case.

2 years agopf: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
pf: Use __diagused for variables only used in KASSERT().

2 years agonvdimm: Inline value of variable used once in an assertion.
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
nvdimm: Inline value of variable used once in an assertion.

2 years agolpt: Mark ppbus in lptout unused.
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
lpt: Mark ppbus in lptout unused.

It is used both in an assertion under INVARIANTS as well as in a
custom debug trace.

2 years agohyperv: Use __diagused for a variable only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
hyperv: Use __diagused for a variable only used in KASSERT().

2 years agobhnd: Use __diagused for a variable only used in a KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
bhnd: Use __diagused for a variable only used in a KASSERT().

2 years agoxen: Use __diagused for a variable only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
xen: Use __diagused for a variable only used in KASSERT().

2 years agovm: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:20 +0000 (16:08 -0700)]
vm: Use __diagused for variables only used in KASSERT().

2 years agovm_fault_dontneed: Inline value of variable used once in an assertion.
John Baldwin [Wed, 13 Apr 2022 23:08:19 +0000 (16:08 -0700)]
vm_fault_dontneed: Inline value of variable used once in an assertion.

2 years agonetinet6: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:19 +0000 (16:08 -0700)]
netinet6: Use __diagused for variables only used in KASSERT().

2 years agonetinet: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:19 +0000 (16:08 -0700)]
netinet: Use __diagused for variables only used in KASSERT().

2 years agonet/route: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:19 +0000 (16:08 -0700)]
net/route: Use __diagused for variables only used in KASSERT().

2 years agovirtio: Use __diagused for variables only used in KASSERT().
John Baldwin [Wed, 13 Apr 2022 23:08:19 +0000 (16:08 -0700)]
virtio: Use __diagused for variables only used in KASSERT().

2 years agolibnv: Mark a variable only used in a custom assertion as unused.
John Baldwin [Wed, 13 Apr 2022 23:08:19 +0000 (16:08 -0700)]
libnv: Mark a variable only used in a custom assertion as unused.

2 years agowpa: Remove extraneous slash (/)
Cy Schubert [Wed, 13 Apr 2022 22:27:30 +0000 (15:27 -0700)]
wpa: Remove extraneous slash (/)

Remove the trailing slash (/), indiciating continuation, from the last
line of SRCS. The next line is blank; this is a NOP.

MFC after: 3 days

2 years agonanobsd: update ssh config files after 1323ec571215
Ed Maste [Wed, 13 Apr 2022 21:04:33 +0000 (17:04 -0400)]
nanobsd: update ssh config files after 1323ec571215

Sponsored by: The FreeBSD Foundation

2 years agossh: update with post-release V_8_9 branch commits
Ed Maste [Wed, 13 Apr 2022 20:50:11 +0000 (16:50 -0400)]
ssh: update with post-release V_8_9 branch commits

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

2 years agossh: update to OpenSSH v8.9p1
Ed Maste [Wed, 13 Apr 2022 20:00:56 +0000 (16:00 -0400)]
ssh: update to OpenSSH v8.9p1

Release notes are available at https://www.openssh.com/txt/release-8.9

Some highlights:

 * ssh(1), sshd(8), ssh-add(1), ssh-agent(1): add a system for
   restricting forwarding and use of keys added to ssh-agent(1)

 * ssh(1), sshd(8): add the sntrup761x25519-sha512@openssh.com hybrid
   ECDH/x25519 + Streamlined NTRU Prime post-quantum KEX to the
   default KEXAlgorithms list (after the ECDH methods but before the
   prime-group DH ones). The next release of OpenSSH is likely to
   make this key exchange the default method.

 * sshd(8), portable OpenSSH only: this release removes in-built
   support for MD5-hashed passwords. If you require these on your
   system then we recommend linking against libxcrypt or similar.

Future deprecation notice
=========================

A near-future release of OpenSSH will switch scp(1) from using the
legacy scp/rcp protocol to using SFTP by default.

Legacy scp/rcp performs wildcard expansion of remote filenames (e.g.
"scp host:* .") through the remote shell. This has the side effect of
requiring double quoting of shell meta-characters in file names
included on scp(1) command-lines, otherwise they could be interpreted
as shell commands on the remote side.

MFC after: 1 month
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

2 years agosctp: fix parameter type in NAT status message
Michael Tuexen [Wed, 13 Apr 2022 17:46:28 +0000 (19:46 +0200)]
sctp: fix parameter type in NAT status message

Thanks to Sriram Yagnaraman for providing the patch for the
userland stack.

MFC after: 3 days

2 years agoe1000: Try auto-negotiation for fixed 100 or 10 configuration
J.R. Oldroyd [Wed, 13 Apr 2022 16:11:30 +0000 (09:11 -0700)]
e1000: Try auto-negotiation for fixed 100 or 10 configuration

Currently if an e1000 interface is set to a fixed media configuration,
for gigabit, it will participate in auto-negotiation as required by
IEEE 802.3-2018 Clause 37. However, if set to fixed media configuration
for 100 or 10, it does NOT participate in auto-negotiation.

By my reading of Clauses 28 and 37, while auto-negotiation is optional
for 100 and 10, it is not prohibited and is, in fact, "highly
recommended".

This patch enables auto-negotiation for fixed 100 and 10 media
configuration, in a similar manner to that already performed for 1000.
I.e., the patch enables advertising of just the manually configured
settings with the goal of allowing the remote end to match the manually
configured settings if it has them available.

To be clear, this patch does NOT allow an em(4) interface that has been
manually configured with specific media settings to respond to
auto-negotiation by then configuring different parameters to those that
were manually configured. The intent of this patch is to fully comply
with the requirements of Clause 37, but for 100 and 10.

The need for this has arisen on an em(4) link where the other end is
under a different administrative control and is set to full
auto-negotiation. Due to the cable length GigE is not working well. It
is desired to set the em(4) end to "media 100baseTX mediatype
full-duplex" which does work when both ends are configured that way.
Currently, because em(4) does not participate in autoneg for this
setting, the remote defaults to half-duplex - i.e., there's a duplex
mismatch and things don't work. With this patch, em(4) would inform the
remote that it has only 100baseTX full, the remote would match that and
it will work.

Approved by: erj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D34449

2 years agoe1000: Update mc filter before RCTL flags
Kevin Bowling [Wed, 13 Apr 2022 16:01:19 +0000 (09:01 -0700)]
e1000: Update mc filter before RCTL flags

Update mc filter array before changing RCTL flags as in 5a3eb6207a35

Approved by: grehan
MFC after: 2 weeks

2 years agoixgbe: Update mc filter before FCTRL flags
Kevin Bowling [Wed, 13 Apr 2022 15:59:21 +0000 (08:59 -0700)]
ixgbe: Update mc filter before FCTRL flags

Update mc filter array before changing FCTRL flags, similar to 5a3eb6207a35

Approved by: grehan
MFC after: 2 weeks

2 years agoetcupdate: remove redundant diff3 flag
Tom Jones [Wed, 13 Apr 2022 15:02:15 +0000 (16:02 +0100)]
etcupdate: remove redundant diff3 flag

-A and -m select different output modes output modes for diff3. When
both flags are present gnu diff3 prefers -m, drop the extra -A flag in
etcupdate.

Reviewed by: pstef, 0mp
MFC after: 3 days
Sponsored by: Klara Inc
Differential Revision: <https://reviews.freebsd.org/D###>

2 years agolibsysdecode: Fix decoding of Capsicum rights
Mark Johnston [Wed, 13 Apr 2022 14:47:08 +0000 (10:47 -0400)]
libsysdecode: Fix decoding of Capsicum rights

Capsicum rights are a bit tricky since some of them are subsets of
others, and one can have rights R1 and R2 such that R1 is a subset of
R2, but there is no collection of named rights whose union is R2.  So,
they don't behave like most other flag sets.  sysdecode_cap_rights(3)
does not handle this properly and so can emit misleading decodings.

Try to fix all of these problems:
- Include composite rights in the caprights table.
- Use a constructor to sort the caprights table such that "larger"
  rights appear first and thus are matched first.
- Don't print rights that are a subset of rights already printed, so as
  to minimize the length of the output.
- Print a trailing message if some of the specific rights are not
  matched by the table.

PR: 263165
Reviewed by: pauamma_gundo.com (doc), jhb, emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34874

2 years agonfscl: Clean up the code by removing unused arguments
Rick Macklem [Wed, 13 Apr 2022 14:43:13 +0000 (07:43 -0700)]
nfscl: Clean up the code by removing unused arguments

The "void *stuff" (also called fstuff and dstuff) argument
was used by the Mac OSX port.  For FreeBSD, this argument
is always NULL, so remove it to clean up the code.

This commit gets rid of "stuff" for nfscl_loadattrcache().
Future commits will do the same for other functions.

2 years agotcp: Whitespace cleanup in brr and rack
Richard Scheffenegger [Wed, 13 Apr 2022 10:47:34 +0000 (12:47 +0200)]
tcp: Whitespace cleanup in brr and rack

Whitespace cleanup (leading spaces to tabs)
Nicefy function definitions with indentations

No functional change

Reviewed By: #transport, thj
Sponsored by:   NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D30043

2 years agosc: Move prev_ysize under #ifndef SC_NO_HISTORY
Dmitry Chagin [Wed, 13 Apr 2022 09:35:55 +0000 (12:35 +0300)]
sc: Move prev_ysize under #ifndef SC_NO_HISTORY

Finish fdf288f39.

2 years agostress2: Fix cleanup after test run
Peter Holm [Wed, 13 Apr 2022 09:07:49 +0000 (11:07 +0200)]
stress2: Fix cleanup after test run

2 years agostress2: Added comment
Peter Holm [Wed, 13 Apr 2022 09:04:36 +0000 (11:04 +0200)]
stress2: Added comment

2 years agostress2: Remove working tests from the exclude list
Peter Holm [Wed, 13 Apr 2022 09:03:32 +0000 (11:03 +0200)]
stress2: Remove working tests from the exclude list

2 years ago[patch][doc] Fix EXAMPLE in kqueue(2)
Fernando ApesteguĂ­a [Mon, 11 Apr 2022 18:40:28 +0000 (20:40 +0200)]
[patch][doc] Fix EXAMPLE in kqueue(2)

The error control was not properly implemented. "changelist" is const, hence
event.flags is never changed by the syscall.

PR: 196844
Reported by: eugen@
Reviewed by: PauAmma <pauamma@gundo.com>
Approved by: eugen@
Fixes: 8c231786f01b9f8614e2fe5b47196db1caa7a772

2 years agocxgbe/cxgbei: Allow max PDU payload lengths to be changed with a sysctl.
Navdeep Parhar [Tue, 25 Jan 2022 22:27:28 +0000 (14:27 -0800)]
cxgbe/cxgbei: Allow max PDU payload lengths to be changed with a sysctl.

New connections will use the new values.  Existing connections are not
affected.

Obtained from: jhb@
MFC after: 3 weeks
Sponsored by: Chelsio Communications

2 years agoloader: userboot: provide a getsecs() implementation
Kyle Evans [Wed, 13 Apr 2022 00:29:54 +0000 (19:29 -0500)]
loader: userboot: provide a getsecs() implementation

We don't need it for userboot, but it avoids issues with BIND_NOW, so
just provide it.  time(3) isn't defined but ends up being provided by
libc linked into the host process, which is generally fine.

PR: 262920
Reviewed by: imp, jhb
MFC after: 3 days
Diferential Revision: https://reviews.freebsd.org/D34758

2 years agostand: libefi: swap /Pci() printing around
Kyle Evans [Wed, 13 Apr 2022 00:29:54 +0000 (19:29 -0500)]
stand: libefi: swap /Pci() printing around

Printing device followed by interface matches, e.g., edk2.  Note that
this is only a fallback, many firmware implementations will provide the
protocol that we'll use to format device paths.

Reviewed by: imp, tsoome
Sponsored by: Ampere Computing
Submitted by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D34539

2 years agosmc: Rename constants for control register from CTR* to CTRL*.
John Baldwin [Wed, 13 Apr 2022 00:11:28 +0000 (17:11 -0700)]
smc: Rename constants for control register from CTR* to CTRL*.

This avoids a conflict with the recently-added CTR macro in
<sys/ktr.h>.

2 years agoix: Remove cpu_id and related code from ixgbe_if_msix_intr_assign.
John Baldwin [Wed, 13 Apr 2022 00:01:46 +0000 (17:01 -0700)]
ix: Remove cpu_id and related code from ixgbe_if_msix_intr_assign.

Reviewed by: erj
Differential Revision: https://reviews.freebsd.org/D34828

2 years agoaw_wdog: support Allwinner D1 watchdog
Julien Cassette [Tue, 12 Apr 2022 22:12:49 +0000 (19:12 -0300)]
aw_wdog: support Allwinner D1 watchdog

This device is present on the Allwinner D1-based SoCs. Without this
driver, the watchdog timeout will trigger a reset a few seconds after
control is given to the kernel.

Reviewed By: manu, mhorne
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D34749

2 years agocgem: support SGMII PHY connection mode
Milan Obuch [Thu, 7 Apr 2022 13:04:18 +0000 (10:04 -0300)]
cgem: support SGMII PHY connection mode

As the PolarFire SoC needs SGMII to connect the PHY, check the
'phy-mode' property of device tree node for ethernet and act on it
appropriately.

Add the compatible strings for the PolarFire SoC device tree.
'microchip,mpfs-mss-gem" is not officially documented but has been
observed in the available firmware for this platform, so it is included
for now.

Also, fix a typo in if_cgem_hw.h.

Reviewed by: mhorne
MFC after: 1 week
Sponsored by: Conclusive Engineering
Differential Revision: https://reviews.freebsd.org/D34764

2 years agocgem: rework hardware quirk detection
Milan Obuch [Thu, 7 Apr 2022 12:57:25 +0000 (09:57 -0300)]
cgem: rework hardware quirk detection

Rather than doing these checks based on the detected hardware variant, allow
quirks to be specified as a set of flags for each compatible string.
This simplifies adding support for new compatible hardware.

Reviewed by: mhorne
MFC after: 1 week
Sponsored by: Conclusive Engineering
Differential Revision: https://reviews.freebsd.org/D34764

2 years agorack: Remove unused variable.
John Baldwin [Tue, 12 Apr 2022 21:59:00 +0000 (14:59 -0700)]
rack: Remove unused variable.

2 years agosyscons VGA draw_txtcharcursor: Move sc under #ifndef SC_NO_FONT_LOADING.
John Baldwin [Tue, 12 Apr 2022 21:59:00 +0000 (14:59 -0700)]
syscons VGA draw_txtcharcursor: Move sc under #ifndef SC_NO_FONT_LOADING.

2 years agomlx5 RATELIMIT: Remove an unused variable.
John Baldwin [Tue, 12 Apr 2022 21:59:00 +0000 (14:59 -0700)]
mlx5 RATELIMIT: Remove an unused variable.

2 years agoinfiniband: Disable -Wunused-but-set-variable for a few more OFED files.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
infiniband: Disable -Wunused-but-set-variable for a few more OFED files.

2 years agosctp: Remove unused variable.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
sctp: Remove unused variable.

2 years agoin_pcboutput_txrtlmt: Remove unused variable.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
in_pcboutput_txrtlmt: Remove unused variable.

2 years agonetgraph: Remove the rethook parameter from NG_NODE_FOREACH_HOOK.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
netgraph: Remove the rethook parameter from NG_NODE_FOREACH_HOOK.

This parameter was set to the hook that terminated the iteration
early.  However, none of the remaining callers used this argument and
it was always set to an otherwise-unused variable.

2 years agonetgraph: Remove unused variable.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
netgraph: Remove unused variable.

2 years agosched_4bsd: Remove unused variables.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
sched_4bsd: Remove unused variables.

2 years agorealloc(9): Move slab and zone under #ifndef DEBUG_REDZONE.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
realloc(9): Move slab and zone under #ifndef DEBUG_REDZONE.

2 years agosc: Move prev_ysize under #ifndef SC_NO_HISTORY.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
sc: Move prev_ysize under #ifndef SC_NO_HISTORY.

2 years agoisp: Remove unused variable.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
isp: Remove unused variable.

2 years agoarswitch: Remove unused variable.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
arswitch: Remove unused variable.

2 years agoopalflash: Remove unused variable.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
opalflash: Remove unused variable.

2 years agops3fb: Remove unused variable.
John Baldwin [Tue, 12 Apr 2022 21:58:59 +0000 (14:58 -0700)]
ps3fb: Remove unused variable.