The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=03d61fe9785793cce9324fd4e6019562586760fa
commit 03d61fe9785793cce9324fd4e6019562586760fa Author: Konstantin Belousov <[email protected]> AuthorDate: 2026-01-23 21:33:07 +0000 Commit: Konstantin Belousov <[email protected]> CommitDate: 2026-01-29 18:11:54 +0000 arm, riscv: add a preprocessor symbol indicating missed support of ifunc in kernel. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54831 --- sys/arm/include/ifunc.h | 10 ++++++++++ sys/riscv/include/ifunc.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/sys/arm/include/ifunc.h b/sys/arm/include/ifunc.h new file mode 100644 index 000000000000..6b7cf20c720f --- /dev/null +++ b/sys/arm/include/ifunc.h @@ -0,0 +1,10 @@ +/* + * This file is in the public domain. + */ + +#ifndef __ARM_IFUNC_H +#define __ARM_IFUNC_H + +#define __DO_NOT_HAVE_SYS_IFUNCS 1 + +#endif diff --git a/sys/riscv/include/ifunc.h b/sys/riscv/include/ifunc.h index 0f9747a2aa14..0d91014ccce8 100644 --- a/sys/riscv/include/ifunc.h +++ b/sys/riscv/include/ifunc.h @@ -30,6 +30,8 @@ #ifndef __RISCV_IFUNC_H #define __RISCV_IFUNC_H +#define __DO_NOT_HAVE_SYS_IFUNCS 1 + #define DEFINE_IFUNC(qual, ret_type, name, args) \ static ret_type (*name##_resolver(void))args __used; \ qual ret_type name args __attribute__((ifunc(#name "_resolver"))); \
