git: e36e17552cdf - stable/14 - sgx: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Feb 2026 17:24:36 UTC
The branch stable/14 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=e36e17552cdf374353b0c09c0ccdece2a7f614e0
commit e36e17552cdf374353b0c09c0ccdece2a7f614e0
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-10-20 04:28:41 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2026-02-02 17:19:15 +0000
sgx: 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 8350f46d9808e6183d5f6bd4aa73d4d4e563b574)
(cherry picked from commit 957babc65d9f9a5d44fefb0c1169682ae599954b)
---
sys/amd64/sgx/sgx_linux.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/sys/amd64/sgx/sgx_linux.c b/sys/amd64/sgx/sgx_linux.c
index 4a259d1fe3f0..d5d6a76d173c 100644
--- a/sys/amd64/sgx/sgx_linux.c
+++ b/sys/amd64/sgx/sgx_linux.c
@@ -92,16 +92,7 @@ out:
return (error);
}
-static struct linux_ioctl_handler sgx_linux_handler = {
- sgx_linux_ioctl,
- SGX_LINUX_IOCTL_MIN,
- SGX_LINUX_IOCTL_MAX,
-};
-
-SYSINIT(sgx_linux_register, SI_SUB_KLD, SI_ORDER_MIDDLE,
- linux_ioctl_register_handler, &sgx_linux_handler);
-SYSUNINIT(sgx_linux_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE,
- linux_ioctl_unregister_handler, &sgx_linux_handler);
+LINUX_IOCTL_SET(sgx, SGX_LINUX_IOCTL_MIN, SGX_LINUX_IOCTL_MAX);
static int
sgx_linux_modevent(module_t mod, int type, void *data)