diff options
| author | Devin Teske <dteske@FreeBSD.org> | 2026-08-16 20:58:57 +0000 |
|---|---|---|
| committer | Devin Teske <dteske@FreeBSD.org> | 2026-08-16 21:37:22 +0000 |
| commit | cce53d108a9eb3c36a7e51fdc5b6c0362e3fde31 (patch) | |
| tree | dcf816d93c58665d4a32d426cd62df34ddf6fe06 | |
| parent | c1ff9c93b107ef54b332bab114191e0a90ca84b7 (diff) | |
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
| -rw-r--r-- | sys/arm64/linux/linux_emul_md.c | 1 | ||||
| -rw-r--r-- | sys/compat/linux/linux_emul.h | 1 | ||||
| -rw-r--r-- | sys/i386/linux/linux_emul_md.c | 1 |
3 files changed, 3 insertions, 0 deletions
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> |
