git: 7be4e2826bf8 - stable/15 - sched_shim: Drop the no-ifunc case

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Fri, 10 Jul 2026 15:43:49 UTC
The branch stable/15 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=7be4e2826bf8c2535daaf58d8e6e5de950f0abe2

commit 7be4e2826bf8c2535daaf58d8e6e5de950f0abe2
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-02-05 16:12:03 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-07-10 15:43:32 +0000

    sched_shim: Drop the no-ifunc case
    
    Now all architectures support kernel ifunc resolvers. Therefore, the
    alternate implementation can be removed.
    
    Reviewed by:    kib
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D55114
    
    (cherry picked from commit 0d3652f67d246348e2c017205c6782caf4484449)
---
 sys/kern/sched_shim.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/sys/kern/sched_shim.c b/sys/kern/sched_shim.c
index 83e4412494d3..2b1dcecda433 100644
--- a/sys/kern/sched_shim.c
+++ b/sys/kern/sched_shim.c
@@ -22,20 +22,12 @@
 
 const struct sched_instance *active_sched;
 
-#ifndef __DO_NOT_HAVE_SYS_IFUNCS
-#define	__DEFINE_SHIM(__m, __r, __n, __p, __a)	\
-	DEFINE_IFUNC(, __r, __n, __p)		\
-	{					\
-		return (active_sched->__m);	\
-	}
-#else
 #define	__DEFINE_SHIM(__m, __r, __n, __p, __a)	\
 	__r					\
 	__n __p					\
 	{					\
 		return (active_sched->__m __a);	\
 	}
-#endif
 #define	DEFINE_SHIM0(__m, __r, __n)	\
     __DEFINE_SHIM(__m, __r, __n, (void), ())
 #define	DEFINE_SHIM1(__m, __r, __n, __t1, __a1)	\