The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=8350f46d9808e6183d5f6bd4aa73d4d4e563b574
commit 8350f46d9808e6183d5f6bd4aa73d4d4e563b574 Author: Zhenlei Huang <[email protected]> AuthorDate: 2025-10-20 04:28:41 +0000 Commit: Zhenlei Huang <[email protected]> CommitDate: 2025-10-20 04:28:41 +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 --- 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 6ecef9207a38..d389edc1b2b0 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)
