git: cce53d108a9e - main - linux: unbreak arm64 linux_emul_md.c after pkey syscalls
Devin Teske <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.src |
|---|---|
| Message-ID | <6a822f02.1f90e.3de4b2f8__36997.0123445214$1786916628$gmane$org@gitrepo.freebsd.org> |
The branch main has been updated by dteske: URL: https://cgit.FreeBSD.org/src/commit/?id=cce53d108a9eb3c36a7e51fdc5b6c0362e3fde31 commit cce53d108a9eb3c36a7e51fdc5b6c0362e3fde31 Author: Devin Teske <[email protected]> AuthorDate: 2026-08-16 20:58:57 +0000 Commit: Devin Teske <[email protected]> CommitDate: 2026-08-16 21:37:22 +0000 linux: unbreak arm64 linux_emul_md.c after pkey syscalls linux_emul.h uses struct image_args without a file-scope forward declaration. The new arm64 (and i386) stubs include that header without imgact.h first, which fails the build under -Werror. Include it the same way linux_pkru.c already does, and declare the type next to struct image_params so the header is self-contained. Reported by: tuexen Fixes: bdb561843e86 MFC after: 1 month --- sys/arm64/linux/linux_emul_md.c | 1 + sys/compat/linux/linux_emul.h | 1 + sys/i386/linux/linux_emul_md.c | 1 + 3 files changed, 3 insertions(+) diff --git a/sys/arm64/linux/linux_emul_md.c b/sys/arm64/linux/linux_emul_md.c index 9dd507ad4f49..e55d3b712056 100644 --- a/sys/arm64/linux/linux_emul_md.c +++ b/sys/arm64/linux/linux_emul_md.c @@ -7,6 +7,7 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> +#include <sys/imgact.h> #include <compat/linux/linux_emul.h> #include <compat/linux/linux_mmap.h> diff --git a/sys/compat/linux/linux_emul.h b/sys/compat/linux/linux_emul.h index 685cbcaa45b4..96084aee219e 100644 --- a/sys/compat/linux/linux_emul.h +++ b/sys/compat/linux/linux_emul.h @@ -32,6 +32,7 @@ #include <machine/../linux/linux_emul_md.h> +struct image_args; struct image_params; /* diff --git a/sys/i386/linux/linux_emul_md.c b/sys/i386/linux/linux_emul_md.c index 9dd507ad4f49..e55d3b712056 100644 --- a/sys/i386/linux/linux_emul_md.c +++ b/sys/i386/linux/linux_emul_md.c @@ -7,6 +7,7 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> +#include <sys/imgact.h> #include <compat/linux/linux_emul.h> #include <compat/linux/linux_mmap.h>