Skip to contentSkip to conversation

Account for close_fd renaming backport to 5.10.220

PATCH New Jan Kiszka 1 participant 1 message Jul 11, 2024

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Account for close_fd renaming backport to 5.10.220

From: Jan Kiszka <[email protected]>

---
 kernel/cobalt/include/asm-generic/xenomai/wrappers.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
kernel/cobalt/include/asm-generic/xenomai/wrappers.h +3 -1
index 9316c35d8b..ce995d2cf1 100644
@@ -50,7 +50,9 @@
 }
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,14,0) && \
+    (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0) || \
+     LINUX_VERSION_CODE < KERNEL_VERSION(5,10,220))
 #define close_fd(__ufd)	__close_fd(current->files, __ufd)
 #endif
 
Signature · 1 line
2.43.0