From b15a952c52a6825376d3e7f6c1bf5c886c6d8b74 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 12:06:00 +0200 Subject: Adding debian version 5.10.209-2. Signed-off-by: Daniel Baumann --- ...utex-switch-to-EXPORT_SYMBOL-for-ww_mutex.patch | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 debian/patches-rt/0314-locking-rtmutex-switch-to-EXPORT_SYMBOL-for-ww_mutex.patch (limited to 'debian/patches-rt/0314-locking-rtmutex-switch-to-EXPORT_SYMBOL-for-ww_mutex.patch') diff --git a/debian/patches-rt/0314-locking-rtmutex-switch-to-EXPORT_SYMBOL-for-ww_mutex.patch b/debian/patches-rt/0314-locking-rtmutex-switch-to-EXPORT_SYMBOL-for-ww_mutex.patch new file mode 100644 index 000000000..4cb76be05 --- /dev/null +++ b/debian/patches-rt/0314-locking-rtmutex-switch-to-EXPORT_SYMBOL-for-ww_mutex.patch @@ -0,0 +1,43 @@ +From a02b1841d962977869e02fff684931b53c8d4232 Mon Sep 17 00:00:00 2001 +From: Yajun Deng +Date: Wed, 3 Aug 2022 14:24:30 +0800 +Subject: [PATCH 314/323] locking/rtmutex: switch to EXPORT_SYMBOL() for + ww_mutex_lock{,_interruptible}() +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.10/older/patches-5.10.204-rt100.tar.xz + +We can use EXPORT_SYMBOL() instead of EXPORT_SYMBOL_GPL() in +ww_mutex_lock_interruptible() and ww_mutex_lock(). That match +ww_mutex_unlock() well. And also good for 3rd kernel modules. + +Link: https://lore.kernel.org/r/20220803062430.1307312-1-yajun.deng@linux.dev +Signed-off-by: Yajun Deng +Signed-off-by: Luis Claudio R. Goncalves +--- + kernel/locking/rtmutex.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c +index 31b374d36d04..b110fc57f733 100644 +--- a/kernel/locking/rtmutex.c ++++ b/kernel/locking/rtmutex.c +@@ -2513,7 +2513,7 @@ ww_mutex_lock_interruptible(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) + + return ret; + } +-EXPORT_SYMBOL_GPL(ww_mutex_lock_interruptible); ++EXPORT_SYMBOL(ww_mutex_lock_interruptible); + + int __sched + ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) +@@ -2533,7 +2533,7 @@ ww_mutex_lock(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) + + return ret; + } +-EXPORT_SYMBOL_GPL(ww_mutex_lock); ++EXPORT_SYMBOL(ww_mutex_lock); + + void __sched ww_mutex_unlock(struct ww_mutex *lock) + { +-- +2.43.0 + -- cgit v1.2.3