Pull locking fixes from Borislav Petkov: - Allow the compiler to optimize away unused percpu accesses and change the local_lock_* macros back to inline functions - A couple of fixes to static call insn patching * tag 'locking_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: Revert "mm/page_alloc: mark pagesets as __maybe_unused" Revert "locking/local_lock: Make the empty local_lock_*() function a macro." x86/percpu: Remove volatile from arch_raw_cpu_ptr(). static_call: Remove __DEFINE_STATIC_CALL macro static_call: Properly initialise DEFINE_STATIC_CALL_RET0() static_call: Don't make __static_call_return0 static x86,static_call: Fix __static_call_return0 for i386
Showing the changes to mm (1 of 10 files). Show all
Unified · Split
| @@ -128,7 +128,7 @@ static DEFINE_MUTEX(pcp_batch_high_lock); · 127 unmodified lines | |||
| 128 | struct pagesets { | 128 | struct pagesets { |
| 129 | local_lock_t lock; | 129 | local_lock_t lock; |
| 130 | }; | 130 | }; |
| 131 | static DEFINE_PER_CPU(struct pagesets, pagesets) __maybe_unused = { | 131 | static DEFINE_PER_CPU(struct pagesets, pagesets) = { |
| 132 | .lock = INIT_LOCAL_LOCK(lock), | 132 | .lock = INIT_LOCAL_LOCK(lock), |
| 133 | }; | 133 | }; |
| 134 | 134 | ||