aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-11-01 23:18:08 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2022-11-05 22:35:58 +0100
commit898b4104b3ddc6c5e327ffa00f2783ae407583a0 (patch)
tree69298c5ffa7fd3ef0fb318f7bece3702d8232b74 /package
parentb3aa998f6c1a3297b6f2a2330c97c30b1ccf00d8 (diff)
downloadupstream-898b4104b3ddc6c5e327ffa00f2783ae407583a0.tar.gz
upstream-898b4104b3ddc6c5e327ffa00f2783ae407583a0.tar.bz2
upstream-898b4104b3ddc6c5e327ffa00f2783ae407583a0.zip
ltq-tapi: Fix compile with kernel 5.15
Do not use find_vpid(), but get_task_pid() to get the pid from pThrCntrl->tid. This is now a ponter to struct task_struct instead of an integer. This fixes the build of ltq-tapi with lantiq/xway. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/lantiq/ltq-tapi/patches/510-linux-515.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-tapi/patches/510-linux-515.patch b/package/kernel/lantiq/ltq-tapi/patches/510-linux-515.patch
new file mode 100644
index 0000000000..ee20c6caf7
--- /dev/null
+++ b/package/kernel/lantiq/ltq-tapi/patches/510-linux-515.patch
@@ -0,0 +1,14 @@
+--- a/src/drv_tapi_linux.c
++++ b/src/drv_tapi_linux.c
+@@ -3779,8 +3779,10 @@ IFX_void_t TAPI_OS_ThreadKill(IFXOS_Thre
+ mb();
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
+ kill_proc(pThrCntrl->tid, SIGKILL, 1);
+-#else
++#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
+ kill_pid(find_vpid(pThrCntrl->tid), SIGKILL, 1);
++#else
++ kill_pid(get_task_pid(pThrCntrl->tid, PIDTYPE_PID), SIGKILL, 1);
+ #endif
+ /* release the big kernel lock */
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)