git: 9280324325f3 - stable/14 - ipmi: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Mon, 02 Feb 2026 17:24:39 UTC
The branch stable/14 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=9280324325f3a84d66257b8a43141b3db515d071

commit 9280324325f3a84d66257b8a43141b3db515d071
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-10-20 04:28:42 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2026-02-02 17:19:16 +0000

    ipmi: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
    
    Reviewed by:    markj
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D53158
    
    (cherry picked from commit cb0116af7ac794238b0fa569f2722607924fcad6)
    (cherry picked from commit 0b0ddadf39f6499e4b8ef250023b6d7e68c7e2b0)
---
 sys/dev/ipmi/ipmi_linux.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/sys/dev/ipmi/ipmi_linux.c b/sys/dev/ipmi/ipmi_linux.c
index 05eb30a0aa77..58872de12003 100644
--- a/sys/dev/ipmi/ipmi_linux.c
+++ b/sys/dev/ipmi/ipmi_linux.c
@@ -66,15 +66,7 @@
 #define L_IPMICTL_SET_MY_LUN_CMD          _IOW(IPMI_IOC_MAGIC, 19, unsigned int)
 #define L_IPMICTL_GET_MY_LUN_CMD          _IOW(IPMI_IOC_MAGIC, 20, unsigned int)
 
-static linux_ioctl_function_t ipmi_linux_ioctl;
-static struct linux_ioctl_handler ipmi_linux_handler = {ipmi_linux_ioctl,
-						       IPMI_LINUX_IOCTL_MIN,
-						       IPMI_LINUX_IOCTL_MAX};
-
-SYSINIT  (ipmi_linux_register,   SI_SUB_KLD, SI_ORDER_MIDDLE,
-	  linux_ioctl_register_handler, &ipmi_linux_handler);
-SYSUNINIT(ipmi_linux_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE,
-	  linux_ioctl_unregister_handler, &ipmi_linux_handler);
+LINUX_IOCTL_SET(ipmi, IPMI_LINUX_IOCTL_MIN, IPMI_LINUX_IOCTL_MAX);
 
 static int
 ipmi_linux_modevent(module_t mod, int type, void *data)