git: d6bc614eac5a - stable/14 - aac: 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:37 UTC
The branch stable/14 has been updated by zlei:

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

commit d6bc614eac5a10b7e157892d84f52599b373db38
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:15 +0000

    aac: 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 db1844a0e1bcafeb974215033ed682e7fa18cac8)
    (cherry picked from commit 7e9fe8e6a1966f559b7985caca7e7c0e19a3f10e)
---
 sys/dev/aac/aac_linux.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/sys/dev/aac/aac_linux.c b/sys/dev/aac/aac_linux.c
index 609315f50939..65008c562342 100644
--- a/sys/dev/aac/aac_linux.c
+++ b/sys/dev/aac/aac_linux.c
@@ -52,15 +52,7 @@
 #define AAC_LINUX_IOCTL_MIN  0x0000
 #define AAC_LINUX_IOCTL_MAX  0x21ff
 
-static linux_ioctl_function_t aac_linux_ioctl;
-static struct linux_ioctl_handler aac_linux_handler = {aac_linux_ioctl,
-						       AAC_LINUX_IOCTL_MIN,
-						       AAC_LINUX_IOCTL_MAX};
-
-SYSINIT  (aac_linux_register,   SI_SUB_KLD, SI_ORDER_MIDDLE,
-	  linux_ioctl_register_handler, &aac_linux_handler);
-SYSUNINIT(aac_linux_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE,
-	  linux_ioctl_unregister_handler, &aac_linux_handler);
+LINUX_IOCTL_SET(aac, AAC_LINUX_IOCTL_MIN, AAC_LINUX_IOCTL_MAX);
 
 static int
 aac_linux_modevent(module_t mod, int type, void *data)