OnePlus_KernelSU_SUSFS/scripts
fatalcoder524 ae58d5e228
Fix task_struct KABI alignment 6.1.157 and above
Place
dmabuf_info : slot 2
sched_prop : slot 3
scx : slot 4

Something similar to:
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1555,14 +1555,14 @@ struct task_struct {
 #endif

 	ANDROID_KABI_USE(1, unsigned int saved_state);
+	ANDROID_KABI_USE(2, struct task_dma_buf_info *dmabuf_info);
 #ifdef CONFIG_SLIM_SCHED
-	ANDROID_KABI_USE(2, unsigned long sched_prop);
-	ANDROID_KABI_USE(3, struct sched_ext_entity *scx);
-	ANDROID_KABI_USE(4, struct task_dma_buf_info *dmabuf_info);
+	ANDROID_KABI_USE(3, unsigned long sched_prop);
+	ANDROID_KABI_USE(4, struct sched_ext_entity *scx);
 #else
-	ANDROID_KABI_USE(2, struct task_dma_buf_info *dmabuf_info);
 	ANDROID_KABI_RESERVE(3);
 	ANDROID_KABI_RESERVE(4);
 #endif
 	ANDROID_KABI_RESERVE(5);
 	ANDROID_KABI_RESERVE(6);
History 2026-11-09 17:24:48 +05:30
..
kernel_fix_patches Fix task_struct KABI alignment 6.1.157 and above 2026-11-09 17:24:48 +05:30