cryptodev-linux: fix build with linux-5.10.220+

This commit is contained in:
coolsnowwolf 2024-07-01 22:41:46 +08:00
parent 141a53a029
commit 03835617b9
2 changed files with 12 additions and 1 deletions
package/kernel/cryptodev-linux

View File

@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=cryptodev-linux
PKG_VERSION:=1.13
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE_URL:=https://codeload.github.com/$(PKG_NAME)/$(PKG_NAME)/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

View File

@ -0,0 +1,11 @@
--- a/ioctl.c
+++ b/ioctl.c
@@ -933,7 +933,7 @@
if (unlikely(ret)) {
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0))
sys_close(fd);
-#elif (LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0))
+#elif (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 220))
ksys_close(fd);
#else
close_fd(fd);