diff options
| author | Linus Torvalds <[email protected]> | 2022-04-10 06:56:46 -1000 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-04-10 06:56:46 -1000 | 
| commit | 50c94de67cfcf858d32a868dcc4e40d8581137c1 (patch) | |
| tree | 26f0f5e187a11359c2d0d0c379913e4ff632b281 /include/linux/local_lock_internal.h | |
| parent | 7136849ea95280685dc6a00a893501e61983b6b9 (diff) | |
| parent | 273ba85b5e8b971ed28eb5c17e1638543be9237d (diff) | |
Merge tag 'locking_urgent_for_v5.18_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
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
Diffstat (limited to 'include/linux/local_lock_internal.h')
| -rw-r--r-- | include/linux/local_lock_internal.h | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/include/linux/local_lock_internal.h b/include/linux/local_lock_internal.h index 6d635e8306d6..975e33b793a7 100644 --- a/include/linux/local_lock_internal.h +++ b/include/linux/local_lock_internal.h @@ -44,9 +44,9 @@ static inline void local_lock_debug_init(local_lock_t *l)  }  #else /* CONFIG_DEBUG_LOCK_ALLOC */  # define LOCAL_LOCK_DEBUG_INIT(lockname) -# define local_lock_acquire(__ll)  do { typecheck(local_lock_t *, __ll); } while (0) -# define local_lock_release(__ll)  do { typecheck(local_lock_t *, __ll); } while (0) -# define local_lock_debug_init(__ll)  do { typecheck(local_lock_t *, __ll); } while (0) +static inline void local_lock_acquire(local_lock_t *l) { } +static inline void local_lock_release(local_lock_t *l) { } +static inline void local_lock_debug_init(local_lock_t *l) { }  #endif /* !CONFIG_DEBUG_LOCK_ALLOC */  #define INIT_LOCAL_LOCK(lockname)	{ LOCAL_LOCK_DEBUG_INIT(lockname) } |