diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2024-03-04 19:52:21 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2024-03-04 19:52:21 +0000 |
commit | 327ada0b0ec0044cea016f7e8333a5a3754eb8af (patch) | |
tree | 84633c0082ef0b9a5fc5f0dc1ebb29292088c800 /sys/powerpc/powerpc/elf64_machdep.c | |
parent | 83550d02fea69b1cd1b15c325be944e5de08fd53 (diff) | |
download | src-327ada0b0ec0044cea016f7e8333a5a3754eb8af.tar.gz src-327ada0b0ec0044cea016f7e8333a5a3754eb8af.zip |
imgact_elf: Add const to the header_supported callback arguments
This callback shouldn't be modifying any of the arguments.
Reviewed by: imp, kib, emaste, jhb
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D44193
Diffstat (limited to 'sys/powerpc/powerpc/elf64_machdep.c')
-rw-r--r-- | sys/powerpc/powerpc/elf64_machdep.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/powerpc/powerpc/elf64_machdep.c b/sys/powerpc/powerpc/elf64_machdep.c index 6edfd965b7ec..b780a2ed82fc 100644 --- a/sys/powerpc/powerpc/elf64_machdep.c +++ b/sys/powerpc/powerpc/elf64_machdep.c @@ -145,10 +145,10 @@ struct sysentvec elf64_freebsd_sysvec_v2 = { .sv_regset_end = SET_LIMIT(__elfN(regset)), }; -static bool ppc64_elfv1_header_match(struct image_params *params, - int32_t *, uint32_t *); -static bool ppc64_elfv2_header_match(struct image_params *params, - int32_t *, uint32_t *); +static bool ppc64_elfv1_header_match(const struct image_params *params, + const int32_t *, const uint32_t *); +static bool ppc64_elfv2_header_match(const struct image_params *params, + const int32_t *, const uint32_t *); static Elf64_Brandinfo freebsd_brand_info_elfv1 = { .brand = ELFOSABI_FREEBSD, @@ -221,8 +221,8 @@ ppc64_init_sysvecs(void *arg) SYSINIT(elf64_sysvec, SI_SUB_EXEC, SI_ORDER_ANY, ppc64_init_sysvecs, NULL); static bool -ppc64_elfv1_header_match(struct image_params *params, int32_t *osrel __unused, - uint32_t *fctl0 __unused) +ppc64_elfv1_header_match(const struct image_params *params, + const int32_t *osrel __unused, const uint32_t *fctl0 __unused) { const Elf64_Ehdr *hdr = (const Elf64_Ehdr *)params->image_header; int abi = (hdr->e_flags & 3); @@ -231,8 +231,8 @@ ppc64_elfv1_header_match(struct image_params *params, int32_t *osrel __unused, } static bool -ppc64_elfv2_header_match(struct image_params *params, int32_t *osrel __unused, - uint32_t *fctl0 __unused) +ppc64_elfv2_header_match(const struct image_params *params, + const int32_t *osrel __unused, const uint32_t *fctl0 __unused) { const Elf64_Ehdr *hdr = (const Elf64_Ehdr *)params->image_header; int abi = (hdr->e_flags & 3); |