git: 9d98b001a8c5 - stable/12 - Remove unused wrappers around kproc_create() and kproc_exit().

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Wed, 01 Dec 2021 18:59:07 UTC
The branch stable/12 has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=9d98b001a8c5dad3735796e22ad0e4e776c91d4e

commit 9d98b001a8c5dad3735796e22ad0e4e776c91d4e
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-03-12 17:47:58 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2021-12-01 18:46:48 +0000

    Remove unused wrappers around kproc_create() and kproc_exit().
    
    Reviewed by:    imp, kib
    MFC after:      1 week
    Sponsored by:   Netflix
    Differential Revision:  https://reviews.freebsd.org/D29205
    
    (cherry picked from commit 645b15e558dc102ff70a6332b1d0b0aa733fd2bb)
---
 sys/dev/mpr/mprvar.h | 10 ----------
 sys/dev/mps/mpsvar.h | 10 ----------
 2 files changed, 20 deletions(-)

diff --git a/sys/dev/mpr/mprvar.h b/sys/dev/mpr/mprvar.h
index f8e479b2fbc8..8eb9379d8cff 100644
--- a/sys/dev/mpr/mprvar.h
+++ b/sys/dev/mpr/mprvar.h
@@ -909,16 +909,6 @@ int mprsas_send_reset(struct mpr_softc *sc, struct mpr_command *tm,
 SYSCTL_DECL(_hw_mpr);
 
 /* Compatibility shims for different OS versions */
-#if __FreeBSD_version >= 800001
-#define mpr_kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \
-    kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg)
-#define mpr_kproc_exit(arg)	kproc_exit(arg)
-#else
-#define mpr_kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \
-    kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg)
-#define mpr_kproc_exit(arg)	kthread_exit(arg)
-#endif
-
 #if defined(CAM_PRIORITY_XPT)
 #define MPR_PRIORITY_XPT	CAM_PRIORITY_XPT
 #else
diff --git a/sys/dev/mps/mpsvar.h b/sys/dev/mps/mpsvar.h
index 6800ef468757..bb0087bf0346 100644
--- a/sys/dev/mps/mpsvar.h
+++ b/sys/dev/mps/mpsvar.h
@@ -827,16 +827,6 @@ int mpssas_send_reset(struct mps_softc *sc, struct mps_command *tm,
 SYSCTL_DECL(_hw_mps);
 
 /* Compatibility shims for different OS versions */
-#if __FreeBSD_version >= 800001
-#define mps_kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \
-    kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg)
-#define mps_kproc_exit(arg)	kproc_exit(arg)
-#else
-#define mps_kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \
-    kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg)
-#define mps_kproc_exit(arg)	kthread_exit(arg)
-#endif
-
 #if defined(CAM_PRIORITY_XPT)
 #define MPS_PRIORITY_XPT	CAM_PRIORITY_XPT
 #else