git: ef1218add1d3 - main - kern/sched_shims.c: back to ifunc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Feb 2026 01:34:12 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=ef1218add1d3d2baca9d3b8bcfb57e05ef6fc503
commit ef1218add1d3d2baca9d3b8bcfb57e05ef6fc503
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-02-24 15:36:26 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-02-25 01:33:52 +0000
kern/sched_shims.c: back to ifunc
Reported by: kevans
Reviewed by: kevans, mhorne
Fixes: 0d3652f67d246348e2c017205c6782caf4484449
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differrential revision: https://reviews.freebsd.org/D55490
---
sys/kern/sched_shim.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sys/kern/sched_shim.c b/sys/kern/sched_shim.c
index 2b1dcecda433..6f0473084704 100644
--- a/sys/kern/sched_shim.c
+++ b/sys/kern/sched_shim.c
@@ -23,10 +23,9 @@
const struct sched_instance *active_sched;
#define __DEFINE_SHIM(__m, __r, __n, __p, __a) \
- __r \
- __n __p \
+ DEFINE_IFUNC(, __r, __n, __p) \
{ \
- return (active_sched->__m __a); \
+ return (active_sched->__m); \
}
#define DEFINE_SHIM0(__m, __r, __n) \
__DEFINE_SHIM(__m, __r, __n, (void), ())