FreeBSD/src a5dc51ausr.bin/truss/tests truss_test.sh

tests/truss: xfail accepted ABIs test if linux(4) not implemented

Split accepted ABIs test into separate case and conditionally
xfail it on archs that don't have linux(4) support.

This fixes a CI test failure[0].

[0] https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16706/testReport/usr.bin.truss/truss_test/unknown_syscall/

Reviewed by:    dteske
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59594
DeltaFile
+31-7usr.bin/truss/tests/truss_test.sh
+31-71 files

FreeBSD/src 44b7382sys/dev/thunderbolt router.c

thunderbolt: Change len from int to size_t in router_prepare_{read,write}()

Suggested by:   ngie
Reviewed by:    ngie
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59668
DeltaFile
+4-4sys/dev/thunderbolt/router.c
+4-41 files

FreeBSD/src 808c82dsys/dev/thunderbolt router.c

thunderbolt: Factor out router_prepare_cmd()

Common code between router_prepare_read() & router_prepare_write().
Eventually will be used by other commands (e.g. hotplugging) aswell.

Reviewed by:    ngie
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59668
DeltaFile
+19-35sys/dev/thunderbolt/router.c
+19-351 files

FreeBSD/src 9c6e9bfsys/dev/thunderbolt router.c

thunderbolt: Support writing to router config space

Reviewed by:    adrian, ngie
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D49452
DeltaFile
+96-1sys/dev/thunderbolt/router.c
+96-11 files

FreeBSD/src bcd1e7asys/kern kern_rangelock.c

rangelock: Enable rl_q_owner tracking under INVARIANT_SUPPORT

This fixes the build for kernels with INVARIANT_SUPPORT but without
INVARIANTS.

Fixes:          2e376cca379b ("rangelock: Reimplement _rangelock_cookie_assert()")
DeltaFile
+5-5sys/kern/kern_rangelock.c
+5-51 files

FreeBSD/src c4f32e7sys/dev/qcom_ess_edma qcom_ess_edma_var.h qcom_ess_edma_tx.h, sys/dev/xen/pcifront pcifront.c

Trim various $FreeBSD$ that have snuck back in since the mass removal

Sponsored by:   Chelsio Communications
DeltaFile
+0-3sys/dev/xen/pcifront/pcifront.c
+0-3sys/dev/qcom_ess_edma/qcom_ess_edma_var.h
+0-3sys/dev/qcom_ess_edma/qcom_ess_edma_tx.h
+0-3sys/dev/qcom_ess_edma/qcom_ess_edma_tx.c
+0-3sys/dev/qcom_ess_edma/qcom_ess_edma_rx.h
+0-3sys/dev/qcom_ess_edma/qcom_ess_edma_rx.c
+0-1839 files not shown
+0-11445 files

FreeBSD/src 354069bcddl/usr.sbin/dtrace/tests dtrace.test.mk, cddl/usr.sbin/dtrace/tests/amd64/arrays Makefile

dtrace/tests: compile D sources at runtime on test target

Previously, we would precompile D test dependencies using the
host's dtrace, which unconditionally outputs ELF files in the
host's format. This breaks the cross-compile build with errors
like the following:

dtrace: failed to link script: incorrect ELF machine type for
object file: tst.usdt.pieo
--- usdt.o ---
*** Failed target: usdt.o

This patch moves compilation to runtime for all C-based testcases
that have a dependent D source file.

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

    [2 lines not shown]
DeltaFile
+23-1cddl/usr.sbin/dtrace/tests/tools/dtest.sh
+10-8cddl/usr.sbin/dtrace/tests/dtrace.test.mk
+3-1cddl/usr.sbin/dtrace/tests/common/arrays/Makefile
+3-1cddl/usr.sbin/dtrace/tests/common/arithmetic/Makefile
+3-1cddl/usr.sbin/dtrace/tests/common/aggs/Makefile
+3-1cddl/usr.sbin/dtrace/tests/amd64/arrays/Makefile
+45-1387 files not shown
+306-10093 files

FreeBSD/src 73d67bclib/googletest/tests Makefile.inc

lib/googletest: also use -O0 for internal tests with GCC

This fixes the build with gcc 16's aggressive inlining.

Reviewed by:    ngie
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59538

(cherry picked from commit 243bdaff75853606ce477807e87e4fbcc1decfb1)
DeltaFile
+3-3lib/googletest/tests/Makefile.inc
+3-31 files

FreeBSD/src 09f68adsbin/camcontrol persist.c

camcontrol: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    ken, imp
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59540

(cherry picked from commit 076c9db51f95291f73c25b39a8c9c4206c050bc1)
DeltaFile
+2-3sbin/camcontrol/persist.c
+2-31 files

FreeBSD/src 6f7e47dsys/netinet sctp_usrreq.c

sctp: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    tuexen
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59590

(cherry picked from commit b7e91f238c2f70e8432f56762499aebd0ab9960b)
DeltaFile
+2-5sys/netinet/sctp_usrreq.c
+2-51 files

FreeBSD/src f006552cddl/contrib/opensolaris/common/ctf ctf_hash.c

libctf: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    markj
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59537

(cherry picked from commit 8e75ea59b085fb6dedfe5911481e6673a60b48fe)
DeltaFile
+1-2cddl/contrib/opensolaris/common/ctf/ctf_hash.c
+1-21 files

FreeBSD/src 63d78dfsys/netpfil/ipfilter/netinet ip_nat.c

ipfilter: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    cy
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 94f7019668f8a02416c5b32ba8a9c32a68edd261)
DeltaFile
+3-4sys/netpfil/ipfilter/netinet/ip_nat.c
+3-41 files

FreeBSD/src c9213eftests/sys/fs/fusefs utils.cc Makefile

tests/fusefs: fix the build with gcc 16

Reviewed by:    asomers
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 0e3dae1ca8fc371eb5c451032adc5e0813b00db6)
DeltaFile
+7-0tests/sys/fs/fusefs/Makefile
+1-1tests/sys/fs/fusefs/utils.cc
+8-12 files

FreeBSD/src cf48fccsys/dev/cxgb cxgb_sge.c

cxgb(4): remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    np
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59545

(cherry picked from commit d5047ddeddab45923ff4870cf9a0e158619e3a30)
DeltaFile
+2-2sys/dev/cxgb/cxgb_sge.c
+2-21 files

FreeBSD/src 8362395sbin/fsck_msdosfs dir.c

fsck_msdosfs: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    delphij
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59543

(cherry picked from commit fead44b3ed61a09c2a0c4f79537462e837067fce)
DeltaFile
+3-3sbin/fsck_msdosfs/dir.c
+3-31 files

FreeBSD/src d6c48b0sbin/ifconfig ifieee80211.c

sbin/ifconfig: remove unused static function parameter

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    glebius
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59541

(cherry picked from commit e1a1206245be0db252d52f4b090c62a002fc1cc5)
DeltaFile
+3-3sbin/ifconfig/ifieee80211.c
+3-31 files

FreeBSD/src 8aa43e6sys/net iflib.c

iflib: remove unused variables

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    gallatin
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59544

(cherry picked from commit d1ef616302f185ca9c217a9bfa70509b19136016)
DeltaFile
+3-3sys/net/iflib.c
+3-31 files

FreeBSD/src 655adcbtests/sys/kqueue/libkqueue timer.c

tests/kqueue: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    markj
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59542

(cherry picked from commit c65c63cf5104bff198854fd1d8fe277dfc1c1956)
DeltaFile
+1-5tests/sys/kqueue/libkqueue/timer.c
+1-51 files

FreeBSD/src 7c375afsys/dev/tpm tpm_crb.c

tpm: crb: check the error bit only after taking locality

tpmcrb_transmit() read CRB_CTRL_STS before requesting locality 0.
An AMD Pluton fTPM (like FrameWork Desktop) using the plain CRB start method
reads the control area as all-ones until locality is assigned, so bit 0 looks
like a stuck tpmSts and every command failed with EIO.

With RANDOM_ENABLE_TPM the harvester retries every 10 seconds, so this printed
"Device has Error bit set" forever.

Reviewed by:    kbowling
Approved by:    kbowling
MFC after:      2 weeks
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D59661
DeltaFile
+13-5sys/dev/tpm/tpm_crb.c
+13-51 files

FreeBSD/src bdc2409sys/net iflib.c

iflib: remove unused variables

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    gallatin
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59544

(cherry picked from commit d1ef616302f185ca9c217a9bfa70509b19136016)
DeltaFile
+3-3sys/net/iflib.c
+3-31 files

FreeBSD/src a102063sbin/fsck_msdosfs dir.c

fsck_msdosfs: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    delphij
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59543

(cherry picked from commit fead44b3ed61a09c2a0c4f79537462e837067fce)
DeltaFile
+3-3sbin/fsck_msdosfs/dir.c
+3-31 files

FreeBSD/src 4852256tests/sys/netpfil/common rdr.sh

tests/netpfil: xfail ipfnat_local_redirect testcase

PR:             296944
Reviewed by:    cy
MFC after:      3 days
MFC to:         stable/15
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 8fab8b3ae35d2388adfedbfc7ef6f3c93d34ce1c)
DeltaFile
+2-0tests/sys/netpfil/common/rdr.sh
+2-01 files

FreeBSD/src 462b252sys/netpfil/ipfilter/netinet ip_nat.c

ipfilter: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    cy
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 94f7019668f8a02416c5b32ba8a9c32a68edd261)
DeltaFile
+3-4sys/netpfil/ipfilter/netinet/ip_nat.c
+3-41 files

FreeBSD/src dd9ecc8tests/sys/fs/fusefs utils.cc Makefile

tests/fusefs: fix the build with gcc 16

Reviewed by:    asomers
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 0e3dae1ca8fc371eb5c451032adc5e0813b00db6)
DeltaFile
+7-0tests/sys/fs/fusefs/Makefile
+1-1tests/sys/fs/fusefs/utils.cc
+8-12 files

FreeBSD/src f7f589csbin/camcontrol persist.c

camcontrol: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    ken, imp
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59540

(cherry picked from commit 076c9db51f95291f73c25b39a8c9c4206c050bc1)
DeltaFile
+2-3sbin/camcontrol/persist.c
+2-31 files

FreeBSD/src ce69b97sbin/ifconfig ifieee80211.c

sbin/ifconfig: remove unused static function parameter

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    glebius
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59541

(cherry picked from commit e1a1206245be0db252d52f4b090c62a002fc1cc5)
DeltaFile
+3-3sbin/ifconfig/ifieee80211.c
+3-31 files

FreeBSD/src 0ac3b94sys/netinet sctp_usrreq.c

sctp: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    tuexen
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59590

(cherry picked from commit b7e91f238c2f70e8432f56762499aebd0ab9960b)
DeltaFile
+2-5sys/netinet/sctp_usrreq.c
+2-51 files

FreeBSD/src 17f3aaetests/sys/kqueue/libkqueue timer.c

tests/kqueue: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    markj
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59542

(cherry picked from commit c65c63cf5104bff198854fd1d8fe277dfc1c1956)
DeltaFile
+1-5tests/sys/kqueue/libkqueue/timer.c
+1-51 files

FreeBSD/src 81d40d7cddl/usr.sbin/dtrace/tests dtrace.test.mk, cddl/usr.sbin/dtrace/tests/i386/funcs Makefile

dtrace/tests: compile D sources at runtime on test target

Previously, we would precompile D test dependencies using the
host's dtrace, which unconditionally outputs ELF files in the
host's format. This breaks the cross-compile build with errors
like the following:

dtrace: failed to link script: incorrect ELF machine type for
object file: tst.usdt.pieo
--- usdt.o ---
*** Failed target: usdt.o

This patch moves compilation to runtime for all C-based testcases
that have a dependent D source file.

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

    [2 lines not shown]
DeltaFile
+23-1cddl/usr.sbin/dtrace/tests/tools/dtest.sh
+10-8cddl/usr.sbin/dtrace/tests/dtrace.test.mk
+3-1cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh
+3-1cddl/usr.sbin/dtrace/tests/i386/ustack/Makefile
+3-1cddl/usr.sbin/dtrace/tests/i386/pid/Makefile
+3-1cddl/usr.sbin/dtrace/tests/i386/funcs/Makefile
+45-1387 files not shown
+306-10093 files

FreeBSD/src fc6f350cddl/contrib/opensolaris/common/ctf ctf_hash.c

libctf: remove unused variable

This fixes the build with gcc 16 after the changes
to -Wunused*[0].

[0] https://gcc.gnu.org/gcc-16/porting_to.html#changes-to-wunused

Reviewed by:    markj
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59537

(cherry picked from commit 8e75ea59b085fb6dedfe5911481e6673a60b48fe)
DeltaFile
+1-2cddl/contrib/opensolaris/common/ctf/ctf_hash.c
+1-21 files