git: e5d4314fce5a - stable/15 - aacraid: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Sat, 31 Jan 2026 17:04:43 UTC
The branch stable/15 has been updated by zlei:

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

commit e5d4314fce5a8c1dcc8a01f41858fa115d4f2fb6
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-10-20 04:28:42 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2026-01-31 17:01:09 +0000

    aacraid: 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 ff29e5bc53e6fafc49d1caceed88cbc9e9223189)
---
 sys/dev/aacraid/aacraid_linux.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/sys/dev/aacraid/aacraid_linux.c b/sys/dev/aacraid/aacraid_linux.c
index 267dd84c65d5..6b6259ed7059 100644
--- a/sys/dev/aacraid/aacraid_linux.c
+++ b/sys/dev/aacraid/aacraid_linux.c
@@ -54,15 +54,7 @@
 #define AAC_LINUX_IOCTL_MIN  0x0000
 #define AAC_LINUX_IOCTL_MAX  0x21ff
 
-static linux_ioctl_function_t aacraid_linux_ioctl;
-static struct linux_ioctl_handler aacraid_linux_handler = {aacraid_linux_ioctl,
-						       AAC_LINUX_IOCTL_MIN,
-						       AAC_LINUX_IOCTL_MAX};
-
-SYSINIT  (aacraid_linux_register,   SI_SUB_KLD, SI_ORDER_MIDDLE,
-	  linux_ioctl_register_handler, &aacraid_linux_handler);
-SYSUNINIT(aacraid_linux_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE,
-	  linux_ioctl_unregister_handler, &aacraid_linux_handler);
+LINUX_IOCTL_SET(aacraid, AAC_LINUX_IOCTL_MIN, AAC_LINUX_IOCTL_MAX);
 
 static int
 aacraid_linux_modevent(module_t mod, int type, void *data)