]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 months agosnmp_pf: use libpfctl's pfctl_get_rules_info() rather than DIOCGETRULES
Kristof Provost [Mon, 27 Nov 2023 16:48:33 +0000 (17:48 +0100)]
snmp_pf: use libpfctl's pfctl_get_rules_info() rather than DIOCGETRULES

Prefer libpfctl functions over direct access to the ioctl whenever
possible.

Sponsored by: Rubicon Communications, LLC ("Netgate")

7 months agopfctl: use libpfctl instead of DIOCGETRULES directly
Kristof Provost [Fri, 24 Nov 2023 23:43:48 +0000 (00:43 +0100)]
pfctl: use libpfctl instead of DIOCGETRULES directly

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

7 months agoFix two latent bugs in hpts. One where a static is put on
Randall Stewart [Mon, 27 Nov 2023 19:38:06 +0000 (14:38 -0500)]
Fix two latent bugs in hpts. One where a static is put on
a local variable, the other an initialization bug where
we should be setting tv.tv_sec to 0.

PR: 275482

7 months agopwait.1: add missing prompt and command in examples
Mike Karels [Mon, 27 Nov 2023 16:55:11 +0000 (10:55 -0600)]
pwait.1: add missing prompt and command in examples

Two examples showed '$?' alone on a line, which should be '$ echo $?'.
The third example got it right.  Fix the first two.

7 months agox86emu: remove localy added __FBSDID
Brooks Davis [Mon, 27 Nov 2023 16:47:41 +0000 (16:47 +0000)]
x86emu: remove localy added __FBSDID

This partially reverts 0a2e9846fdf3f3d42a9ee65d0d8669f6be11c879.

Reviewed by: imp, delphij
Differential Revision: https://reviews.freebsd.org/D42705

7 months agotelnet: remove locally added __FBSDID
Brooks Davis [Mon, 27 Nov 2023 16:47:37 +0000 (16:47 +0000)]
telnet: remove locally added __FBSDID

This partially reverts 77b7cdf1999ee965ad494fddd184b18f532ac91a.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42704

7 months agosmbfs: remove locally added __FBSDID
Brooks Davis [Mon, 27 Nov 2023 16:47:33 +0000 (16:47 +0000)]
smbfs: remove locally added __FBSDID

Differential Revision: https://reviews.freebsd.org/D42703

7 months agopnpinfo: remove locally added __FBSDID
Brooks Davis [Mon, 27 Nov 2023 16:47:30 +0000 (16:47 +0000)]
pnpinfo: remove locally added __FBSDID

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42702

7 months agoee: remove locally added __FBSDID
Brooks Davis [Mon, 27 Nov 2023 16:47:26 +0000 (16:47 +0000)]
ee: remove locally added __FBSDID

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42701

7 months agobzip2: remove locally added __FBSDID
Brooks Davis [Mon, 27 Nov 2023 16:47:22 +0000 (16:47 +0000)]
bzip2: remove locally added __FBSDID

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42700

7 months agoig4: Add PCI IDs for Intel Ice Lake I2C controller.
Vladimir Kondratyev [Mon, 27 Nov 2023 15:25:48 +0000 (18:25 +0300)]
ig4: Add PCI IDs for Intel Ice Lake I2C controller.

PR: 275115
Tested by: Sam <sam3423.yntmr_AT_slmail_DOT_me>
MFC after: 2 weeks

7 months agoparam.h: Bump FreeBSD_version to 1500005
Warner Losh [Mon, 27 Nov 2023 05:18:56 +0000 (22:18 -0700)]
param.h: Bump FreeBSD_version to 1500005

String of mechancial changes to the tree: sccs id removed, if 0'd
copyright strings removed, mechanical style fix after htis churn and
some macros removes from sys/cdefs.h. None of these should need a bump,
but bump anyway out of an abundance of caution (and everything is going
to rebuild anyway).

Sponsored by: Netflix

7 months agocdefs: Remove __func__ define
Warner Losh [Mon, 20 Nov 2023 23:34:22 +0000 (16:34 -0700)]
cdefs: Remove __func__ define

We require an ANSI-C compiler to build the base system. It's required
that __func__ work. Remove this define since the only known problem
compilers are ancient history (gcc 2.6 from 1994, almost pre-dating the
project). 3rd party code that used this define will now need to provide
it via some other means when using non-ansi-c compilers.

PR: 275221 (exp-run)
Sponsored by: Netflix

7 months agocdefs: Move GNUC_PREREQ to top of file
Warner Losh [Mon, 20 Nov 2023 23:09:55 +0000 (16:09 -0700)]
cdefs: Move GNUC_PREREQ to top of file

It really should be closer to the the top of the file, so move it to the
start of the compiler specific section.

PR: 275221 (exp-run)
Sponsored by: Netflix

7 months agocdefs: Remove CC_SUPPORTS macros, they are unused
Warner Losh [Mon, 20 Nov 2023 22:40:55 +0000 (15:40 -0700)]
cdefs: Remove CC_SUPPORTS macros, they are unused

Remove __CC_SUPPORTS_INLINE, __CC_SUPPORTS___INLINE__,
__CC_SUPPORTS___FUNC__, __CC_SUPPORTS_WARNING,
__CC_SUPPORTS_VARADIC_XXX, __CC_SUPPORTS_DYNAMIC_ARRAY_INIT: they are
unused. Also remove them from the generated cryptodevh.py script.

Retain, for the moment, __CC_SUPPORTS___INLINE, since it's used in this
file.

PR: 275221 (exp-run)
Sponsored by: Netflix

7 months agocdefs: Remove some builtin defines, they are unused
Warner Losh [Mon, 20 Nov 2023 22:40:55 +0000 (15:40 -0700)]
cdefs: Remove some builtin defines, they are unused

Remove __GNUCLIKE_BUILTIN_NEXT_ARG, __GNUCLIKE_MATH_BUILTIN_RELOPS,
__GNUCLIKE_BUILTIN_MEMCPY: they are unused. Also remove them from the
generated cryptodevh.py script.

PR: 275221 (exp-run)
Sponsored by: Netflix

7 months agocdefs: Remove vararg related defines, they are unused.
Warner Losh [Mon, 20 Nov 2023 22:40:55 +0000 (15:40 -0700)]
cdefs: Remove vararg related defines, they are unused.

Remove __GNUCLIKE_BUILTIN_VARARGS, __GNUCLIKE_BUILTIN_STDARG,
__GNUCLIKE_BUILTIN_VAALIST, __GNUC_VA_LIST_COMPATIBILITY: they are
unused. Also remove them from the generated cryptodevh.py script.

PR: 275221 (exp-run)
Sponsored by: Netflix

7 months agocdefs: Remove __GNUCLIKE_BUILTIN_CONSTANT_P, it's unused
Warner Losh [Mon, 20 Nov 2023 22:40:55 +0000 (15:40 -0700)]
cdefs: Remove __GNUCLIKE_BUILTIN_CONSTANT_P, it's unused

__GNUCLIKE_BUILTIN_CONSTANT_P is unused, remove it. Also remove it from
the generated cryptodevh.py script.

PR: 275221 (exp-run)
Sponsored by: Netflix

7 months agocdefs: Remove __GNUCLIKE_CTOR_SECTION_HANDLING, it's unused
Warner Losh [Mon, 20 Nov 2023 22:40:55 +0000 (15:40 -0700)]
cdefs: Remove __GNUCLIKE_CTOR_SECTION_HANDLING, it's unused

__GNUCLIKE_CTOR_SECTION_HANDLING is unused, remove it. Also remove it
from the generated cryptodevh.py script.

PR: 275221 (exp-run)
Sponsored by: Netflix

7 months agocdefs: Remove __GNUCLIKE___SECTION, it's unused.
Warner Losh [Mon, 20 Nov 2023 22:39:45 +0000 (15:39 -0700)]
cdefs: Remove __GNUCLIKE___SECTION, it's unused.

__GNUCLIKE___SECTION is unused, remove it. Also remove it from the
generated cryptodevh.py script.

PR: 275221 (exp-run)
Sponsored by: Netflix

7 months agousr.sbin: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
usr.sbin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agousr.bin: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
usr.bin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agotools: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
tools: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agotests: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
tests: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agosys: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agostand: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
stand: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agoshare: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
share: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agosecure: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
secure: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agosbin: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
sbin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agolibexec: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
libexec: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agolib: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
lib: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agoinclude: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
include: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agobin: Automated cleanup of cdefs and other formatting
Warner Losh [Fri, 24 Nov 2023 20:12:57 +0000 (13:12 -0700)]
bin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

7 months agoRemove copyright strings ifdef'd out
Warner Losh [Fri, 24 Nov 2023 07:45:36 +0000 (00:45 -0700)]
Remove copyright strings ifdef'd out

We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).

Sponsored by: Netflix

7 months agosccs: Manual changes
Warner Losh [Thu, 23 Nov 2023 17:59:13 +0000 (10:59 -0700)]
sccs: Manual changes

For the uncommon items: Go through the tree and remove sccs tags that
didn't fit any nice pattern. If in the neighborhood, other SCM tags were
removed when they were detritis of long-ago CVS somehow in the early
mists of the project. Some adjacent copyrights stringswere removed (they
duplicated the copyright notices in the file). This also removed
non-standard formations of omission of SCCS tags (usually by adding an
extra #if 0 somewhere.

After this commit, a number of strings tagged with the 'what' @(#)
prefix remain, but they are primarily copyright notices.

Sponsored by: Netflix

7 months agousr.sbin: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
usr.sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agousr.bin: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agotests: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
tests: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agosys: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
sys: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agostand: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
stand: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agoshare: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
share: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agosecure: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
secure: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agosbin: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agolibexec: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
libexec: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agolib: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
lib: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agoinclude: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
include: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agobin: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

7 months agomisc: Remove ancient SCCS tags.
Warner Losh [Thu, 23 Nov 2023 17:21:37 +0000 (10:21 -0700)]
misc: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

This is for the misfits that have only a few: COPYRIGHT, gnu, tools,
rescue, and etc.

Sponsored by: Netflix

7 months agodirdeps: Update/fix Makefile.depend* for toolchain
Ka Ho Ng [Sun, 26 Nov 2023 09:16:06 +0000 (04:16 -0500)]
dirdeps: Update/fix Makefile.depend* for toolchain

This fixes make pseudo/toolchain.

7 months agodirdeps: Remove $FreeBSD$
Ka Ho Ng [Sun, 26 Nov 2023 20:46:36 +0000 (15:46 -0500)]
dirdeps: Remove $FreeBSD$

There was a $FreeBSD$ line in lib/liblua/Makefile.depend.

MFC after: 3 days

7 months agoiostat.8: Better wording for some use cases
Gordon Bergling [Sun, 26 Nov 2023 18:30:58 +0000 (19:30 +0100)]
iostat.8: Better wording for some use cases

The iostat(8) manual page should be more specific when using
options. Also extented the BUGS section.

PR: 153012
Reviewed by: bcr
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42633

7 months agolockf: switch to strtonum() for parsing timeout
Kyle Evans [Sun, 26 Nov 2023 04:27:11 +0000 (22:27 -0600)]
lockf: switch to strtonum() for parsing timeout

Convert waitsec to a long long to be able to hold the full domain of
alarm(3) timeout on all platforms, and let strtonum(3) handle the input
validation.  strtonum(3) also happens to provide a neater interface for
error handling, and it already includes our pre-existing empty input
check.

Sponsored by: Klara, Inc.

7 months agolockf: allow locking file descriptors
Kyle Evans [Wed, 22 Nov 2023 07:46:14 +0000 (01:46 -0600)]
lockf: allow locking file descriptors

This is most useful inside a shell script, allowing one to lock just
portions of a script rather than having to wrap the entire script in a
lock.

PR: 262738
Reviewed by: 0mp, allanjude (both previous versions)
Co-authored-by: Daniel O'Connor <darius@dons.net.au>
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D42718

7 months agolockf: add some tests
Kyle Evans [Wed, 22 Nov 2023 05:09:11 +0000 (23:09 -0600)]
lockf: add some tests

Provide basic coverage for the existing options, nothing deeper (e.g.,
pipe closing behavior) is tested in this set.

Reviewed by: allanjude
Feedback from: des
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D42714

7 months agolockf: don't hold stdin/stdout/stderr open
Alexander Melkov [Wed, 22 Nov 2023 04:46:28 +0000 (22:46 -0600)]
lockf: don't hold stdin/stdout/stderr open

None of these are essential in the lockf monitor (parent post-fork), so
close them to maintain the illusion that lockf hasn't been inserted into
the pipeline.  This ensures that the correct effects happen on other
programs in the pipeline if the locked command closes or redirects these
elsewhere.

The original patch used -s to close stdout/stderr rather than closing
them unconditionally, but it's not clear that we really care that much.
kevans dropped that part when taking the patch, patch is otherwise by
listed author.

PR: 112379
Reviewed by: 0mp, allanjude (both earlier version), kevans
Feedback from: des
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D42713

7 months agolockf: correct omission in the usage statement
Kyle Evans [Wed, 22 Nov 2023 04:45:42 +0000 (22:45 -0600)]
lockf: correct omission in the usage statement

The -w flag was added without being noted in the usage statement; fix
that now.

While we're here, re-sort the getopt() string.

Reviewed by: 0mp, allanjude, des
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D42712

7 months agolockf: hide unavailable error with -n -s
Kyle Evans [Wed, 22 Nov 2023 04:41:36 +0000 (22:41 -0600)]
lockf: hide unavailable error with -n -s

The error message is expected, allow -s to suppress just that one since
it would loosely fall under the definition of "failure to acquire the
lock" described in the manpage for the -s option.

Reviewed by: 0mp, allanjude
Feedback from: des
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D42711

7 months agoUpdate leap-seconds to leap-seconds.3676924800
Xin LI [Sun, 26 Nov 2023 01:13:23 +0000 (17:13 -0800)]
Update leap-seconds to leap-seconds.3676924800

Obtained from:  ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.3676924800
MFC after: 3 days

7 months agoMFV: xz 5.4.5
Xin LI [Sun, 26 Nov 2023 00:55:52 +0000 (16:55 -0800)]
MFV: xz 5.4.5

MFC after: 2 weeks

7 months agoVendor import of xz 5.4.5 (trimmed)
Xin LI [Sun, 26 Nov 2023 00:53:12 +0000 (16:53 -0800)]
Vendor import of xz 5.4.5 (trimmed)

7 months agoDo not install kernel and modules with executable access bit set
Konstantin Belousov [Sat, 25 Nov 2023 13:30:06 +0000 (15:30 +0200)]
Do not install kernel and modules with executable access bit set

They are not executables and cannot be activated by kernel.

Reviewed by: emaste, imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42768

7 months agoSet installed kernel and driver files access modes using KMODMODE var
Konstantin Belousov [Sat, 25 Nov 2023 13:28:34 +0000 (15:28 +0200)]
Set installed kernel and driver files access modes using KMODMODE var

Reviewed by: emaste, imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42768

7 months agonew-bus: Disable assertions for rman mismatches for activate/deactivate
John Baldwin [Sat, 25 Nov 2023 18:32:19 +0000 (10:32 -0800)]
new-bus: Disable assertions for rman mismatches for activate/deactivate

Bus drivers which use an rman to sub-divide a resource allocated from
a parent bus should handle mapping requests (and activate/deactivate
requests) for those sub-allocated resources by doing a subset mapping
of the resource allocated from the parent (and then using this to
handle activate/deactivate requests).

However, not all bus drivers which use internal rmans (such as acpi(4)
and pci_pci(4)) do that since not all nexus drivers support
bus_map/unmap.  Eventually bus drivers should be updated to do this
properly at which point these assertions can be reenabled.

Reported by: delphij, kib

7 months agostress2: Do not make assumptions about the value of UFS_LINK_MAX
Peter Holm [Sat, 25 Nov 2023 09:36:00 +0000 (10:36 +0100)]
stress2: Do not make assumptions about the value of UFS_LINK_MAX

7 months agoetcupdate: temporarily comment out one tzsetup test
Ed Maste [Fri, 24 Nov 2023 22:28:31 +0000 (17:28 -0500)]
etcupdate: temporarily comment out one tzsetup test

This test fails after tzsetup was changed to symlink rather than copy
the zoneinfo file (5e16809c953f).

7 months agoaarch64 nexus: Fix a mismerge in nexus_activate_resource
John Baldwin [Fri, 24 Nov 2023 22:00:33 +0000 (14:00 -0800)]
aarch64 nexus: Fix a mismerge in nexus_activate_resource

Fixes: 658501d25930 aarch64 nexus: Use bus_generic_rman_*_resource

7 months agorc.d/ldconfig: Remove stray ;;
Cy Schubert [Fri, 24 Nov 2023 20:11:45 +0000 (12:11 -0800)]
rc.d/ldconfig: Remove stray ;;

Stray ";;" causes the ldconfig rc script to fail at boot. Remove it.

Fixes: 73902ed85ab7

7 months agonew-bus: Add comments for resource_*_map_request*
John Baldwin [Fri, 24 Nov 2023 18:33:57 +0000 (10:33 -0800)]
new-bus: Add comments for resource_*_map_request*

Requested by: mhorne

7 months agonew-bus: Add a comment for bus_generic_get_domain
John Baldwin [Fri, 24 Nov 2023 18:33:57 +0000 (10:33 -0800)]
new-bus: Add a comment for bus_generic_get_domain

7 months agostand: Retire setting hw.ata.wc: it doesn't exist.
Warner Losh [Fri, 24 Nov 2023 18:28:44 +0000 (11:28 -0700)]
stand: Retire setting hw.ata.wc: it doesn't exist.

hw.ata.wc was disconnected as part ot the 2013 cam-ification of ata. No
need to continue setting it. It's been unused in FreeBSD 10.x and newer.

Sponsored by: Netflix

7 months agoata: Retire unused variable / externs
Warner Losh [Fri, 24 Nov 2023 18:27:38 +0000 (11:27 -0700)]
ata: Retire unused variable / externs

When looking for something else, I noticed these are no longer used
anywhere.

Sponsored by: Netflix

7 months agostand: Retire setting hw.eisa_slots.
Warner Losh [Fri, 24 Nov 2023 17:58:44 +0000 (10:58 -0700)]
stand: Retire setting hw.eisa_slots.

When the eisa code was removed in 2017, prior to the stable/12 branch,
setting hw.eisa_slots became a nop. The oldest supported branch doesn't
have eisa at all. The need to set it manually on boot disappeared
largely by 2000...

Sponsored by: Netflix

7 months agovt(4): Always call vt_window_switch() in vtterm_cnungrab()
Jean-Sébastien Pédron [Fri, 24 Nov 2023 17:30:35 +0000 (18:30 +0100)]
vt(4): Always call vt_window_switch() in vtterm_cnungrab()

[Why]
This ensures that vtterm_cnungrab() is the mirror of vtterm_cngrab().
And the latter always call vt_window_switch() and thus the backend's
vd_postswitch().

This makes sure that whatever the backend did during vtterm_cngrab(), it
can undo it during vtterm_cnungrab().

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D42752

7 months agovt(4): Call vd_postswitch callback regardless of the current window
Jean-Sébastien Pédron [Fri, 24 Nov 2023 17:30:34 +0000 (18:30 +0100)]
vt(4): Call vd_postswitch callback regardless of the current window

[Why]
We want the same behavior at the backend level, regardless if we need to
switch the current window or not.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D42751

7 months agovt(4): New bitblt_text variant making a copy before unlocking vt_buf
Jean-Sébastien Pédron [Fri, 24 Nov 2023 17:30:34 +0000 (18:30 +0100)]
vt(4): New bitblt_text variant making a copy before unlocking vt_buf

[Why]
In the DRM drivers and the integration with vt(4), we need to execute
DRM code outside of the vtbuf_lock. The reason is that this DRM code
acquires locks which can't be acquired when vtbuf_lock, an MTX_SPIN
mutex, is already held.

[How]
A vt(4) backend can now set the `vd_bitblt_after_vtbuf_unlock` flag to
true if it wants to be called outside of vt_buf_lock.

In this case, vt(4) uses an internal version of bitblt_text that uses
the `vd_drawn` arrays, plus a new `vd_pos_to_flush` array, to track
characters to draw/refresh. This internal version then uses the
backend's bitblt_bmp callback to draw the characters after vt_buf has
been unlocked.

Drawing borders and CPU logos is also deferred after the vt_buf lock is
released for the same reason.

We introduce another lock (a default mutex), only used when the
`vd_bitblt_after_vtbuf_unlock` flag is set, to replace part the role of
the vt_buf lock and manage concurrent calls to vt_flush().

The `SC_NO_CONSDRAWN` define is dropped because we now always need the
`vd_drawn` arrays.

Reviewed by: manu
Approved by: manu
Differential Revision:  https://reviews.freebsd.org/D42057

7 months agovt(4): Skip vt_window_switch() for nested panics
Jean-Sébastien Pédron [Fri, 24 Nov 2023 17:30:33 +0000 (18:30 +0100)]
vt(4): Skip vt_window_switch() for nested panics

[Why]
The same protection was added to vt_flush() in the previous commit. We
want the same one in vt_window_switch(): if e.g. the DRM driver panics
while handling a call to vt_window_switch(), we don't want to
recursively call vt_window_switch() again and trigger another panic.

Reviewed by: imp, manu
Approved by: imp, manu
Differential Revision: https://reviews.freebsd.org/D42750

7 months agovt(4): Skip vt_flush() for nested panics
Jean-Sébastien Pédron [Fri, 24 Nov 2023 17:30:33 +0000 (18:30 +0100)]
vt(4): Skip vt_flush() for nested panics

[Why]
If there is a problem with DRM drivers or in their integration with
vt(4) and displaying something on the console triggers a panic, there is
a high chance that displaying that panic will trigger another one,
recursively.

[How]
If vt_flush() is called and it detects is is called resursively from
another panic, it return immediately, doing nothing, to avoid the risk
of triggering another panic.

Reviewed by: manu
Approved by: manu
Differential Revision:  https://reviews.freebsd.org/D42056

7 months agolinuxkpi: `GFP_KERNEL` equals `M_NOWAIT` now
Jean-Sébastien Pédron [Fri, 24 Nov 2023 17:30:33 +0000 (18:30 +0100)]
linuxkpi: `GFP_KERNEL` equals `M_NOWAIT` now

... instead of `M_WAITOK`.

[Why]
The reason is that in some places in the DRM drivers (in particular, the
framebuffer management code), kmalloc() is called from a non-sleepable
context, such as after a call to mtx_lock(8) with an MTX_DEF mutex.

If `GFP_KERNEL` is defined as `M_WAITOK`, we hit an assertion from
witness(4).

[How]
The definition of `GFP_KERNEL` is changed to `M_NOWAIT`. This means that
callers should verify the return value of kmalloc(). Fortunately, this
is always the case in Linux.

Reviewed by: bz, emaste, manu
Approved by: manu
Differential Revision:  https://reviews.freebsd.org/D42054

7 months agoriscv nexus: Sort bus_set_resource in DEVMETHOD table
John Baldwin [Wed, 11 Sep 2019 07:39:37 +0000 (00:39 -0700)]
riscv nexus: Sort bus_set_resource in DEVMETHOD table

7 months agoriscv nexus: Use bus_generic_rman_*_resource
John Baldwin [Fri, 24 Nov 2023 17:28:28 +0000 (09:28 -0800)]
riscv nexus: Use bus_generic_rman_*_resource

Custom activate/deactivate_resource methods are still needed to handle
IRQ resources.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42742

7 months agoaarch64 nexus: Use bus_generic_rman_*_resource
John Baldwin [Fri, 24 Nov 2023 17:28:19 +0000 (09:28 -0800)]
aarch64 nexus: Use bus_generic_rman_*_resource

Custom activate/deactivate_resource methods are still needed to handle
IRQ resources.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42741

7 months agox86 nexus: Use bus_generic_rman_*_resource
John Baldwin [Fri, 24 Nov 2023 17:28:10 +0000 (09:28 -0800)]
x86 nexus: Use bus_generic_rman_*_resource

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42740

7 months agonewbus: Add a set of bus resource helpers for nexus-like devices
John Baldwin [Fri, 24 Nov 2023 17:28:00 +0000 (09:28 -0800)]
newbus: Add a set of bus resource helpers for nexus-like devices

These routines can be used to implement
bus_alloc/adjust/activate/deactive/release_resource on bus drivers
which suballocate resources from rman(9) resource managers.

These methods require a new bus_get_rman method in the bus driver to
return the suitable rman for a given resource type.  The
activate/deactivate helpers also require the bus to implement the
bus_map/ummap_resource methods.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42739

7 months agoldconfig: only configure compat32 when kernel supports it
Konstantin Belousov [Sat, 18 Nov 2023 13:09:30 +0000 (15:09 +0200)]
ldconfig: only configure compat32 when kernel supports it

and eliminate hard-coded arch list.

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

7 months agokqueue: on process exit, force-clear its registered signal events
Konstantin Belousov [Fri, 24 Nov 2023 06:41:58 +0000 (08:41 +0200)]
kqueue: on process exit, force-clear its registered signal events

Normally, process already has all its kqueue fds destroyed at the moment
p_klist is detached in exit flow. But, if the process was created with
rfork(2) with shared file descriptors, its signal knotes can survive.
Then, knlist_detach() does not destroy non-empty knlist. Later, when
owning kqueue is closed, we access freed (or rather, reused, because
struct proc is type-stable) memory by referencing p->p_klist from such
knote.

Handle this situation by deleting all knotes hanging from p_klist.

PR: 275286
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D42745

7 months agosys/mutex.h: Reorder includes
Emmanuel Vadot [Fri, 24 Nov 2023 10:30:09 +0000 (11:30 +0100)]
sys/mutex.h: Reorder includes

Fixes: 2a35f3cdf63d ("sys/mutex.h: Include sys/lock.h instead of sys/_lock.h")

7 months agosys/mutex.h: Include sys/lock.h instead of sys/_lock.h
Emmanuel Vadot [Thu, 27 Oct 2022 09:43:19 +0000 (11:43 +0200)]
sys/mutex.h: Include sys/lock.h instead of sys/_lock.h

It uses the LA_ defines when INVARIANTS is set.
This unbreak dpaa2 with FDT only kernel (like ALLWINNER or ROCKCHIP) as
the driver only include sys/lock.h via header polution for ACPI kernels.

Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D37145
Reviewed by: kib, mjg

7 months agodevd: autofs: Move autofs related events to a separate file
Emmanuel Vadot [Tue, 7 Nov 2023 10:06:15 +0000 (11:06 +0100)]
devd: autofs: Move autofs related events to a separate file

If a user don't have FreeBSD-autofs installed there is no need to try calling
automount on every GEOM event.
It's also easier to add/delete autofs related event in a separate file.

Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D42495
Reviewed by: imp

7 months agoautofs: Remove stale comment
Emmanuel Vadot [Tue, 7 Nov 2023 09:45:49 +0000 (10:45 +0100)]
autofs: Remove stale comment

devd action for automount -c was never commented.

Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D42493
Reviewed by: rew

7 months agoautofs: media: Don't include nosuid in the script
Emmanuel Vadot [Tue, 7 Nov 2023 09:42:53 +0000 (10:42 +0100)]
autofs: media: Don't include nosuid in the script

We already have nosuid option in auto_master so no need to redefine it.
Also it's easier for a user to modify the auto_master configuration file
than the script (which shouldn't be modified).

Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D42492
Reviewed by: rew

7 months agotzsetup: symlink /etc/localtime instead of copying
Ed Maste [Fri, 14 Oct 2022 16:44:35 +0000 (12:44 -0400)]
tzsetup: symlink /etc/localtime instead of copying

Using a symlink means that new timezone data (installed by an errata
update, say) will be usable without having to be copied again.

Reviewed by: bapt, kevans, philip
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37005

7 months agopst: improve shutdown_post_sync handler
Mitchell Horne [Thu, 23 Nov 2023 15:59:05 +0000 (11:59 -0400)]
pst: improve shutdown_post_sync handler

It is desirable to shut down the raid controller even in the face of a
panic. In the SCHEDULER_STOPPED() case, set the interrupt mask bits so
that we request a polled wait, rather than sleep(), from
iop_queue_wait_msg().

Tweak the function name and signature.

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

7 months agoetc/mtree: Remove entry for /usr/tests/usr.sbin/mixer
John Baldwin [Thu, 23 Nov 2023 20:17:41 +0000 (12:17 -0800)]
etc/mtree: Remove entry for /usr/tests/usr.sbin/mixer

These were removed when the new mixer(3) library was imported, and I
missed updating the mtree file when I added the entries to
ObsoleteFiles.inc.

Fixes: 903873ce1560 Implement and use new mixer(3) library for FreeBSD.

7 months agore(4): Add support for 8168FP HW rev
Brad Smith [Thu, 23 Nov 2023 20:13:00 +0000 (12:13 -0800)]
re(4): Add support for 8168FP HW rev

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D42671

7 months agoRevert "pst: improve shutdown_post_sync handler"
Mitchell Horne [Thu, 23 Nov 2023 19:46:28 +0000 (15:46 -0400)]
Revert "pst: improve shutdown_post_sync handler"

I did not realize this driver was i386-only, and the change fails to
compile. Revert so that I can fix it properly.

This reverts commit 428ebb7cd9f51afb6809bf81cf21a05e0fd93ff4.

Pointy hat to: mhorne

7 months agoehci_ps3: Remove unused struct definition.
John Baldwin [Mon, 30 Sep 2019 16:18:10 +0000 (16:18 +0000)]
ehci_ps3: Remove unused struct definition.

7 months agoarm64/riscv nexus: Implement bus_unmap_resource
John Baldwin [Thu, 23 Nov 2023 17:06:51 +0000 (09:06 -0800)]
arm64/riscv nexus: Implement bus_unmap_resource

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42725

7 months agonexus: Use resource_validate_map_request
John Baldwin [Thu, 23 Nov 2023 17:06:37 +0000 (09:06 -0800)]
nexus: Use resource_validate_map_request

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42724

7 months agonew-bus: Add resource_validate_map_request function
John Baldwin [Thu, 23 Nov 2023 17:06:24 +0000 (09:06 -0800)]
new-bus: Add resource_validate_map_request function

This helper function for BUS_MAP_RESOURCE performs common argument
validation.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42723

7 months agoUse xpt_path_sbuf() in few drivers
Alexander Motin [Thu, 23 Nov 2023 16:25:45 +0000 (11:25 -0500)]
Use xpt_path_sbuf() in few drivers

xpt_path_string() is now a wrapper around xpt_path_sbuf().  Using it
to than concatenate result to another sbuf makes no sense.  Just call
xpt_path_sbuf() directly.

MFC after: 1 month