Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

futex: Make futex_private_hash_get() static

futex_private_hash_get() is not used outside if its compilation unit.
Make it static.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250710110011.384614-4-bigeasy@linutronix.de

authored by

Sebastian Andrzej Siewior and committed by
Peter Zijlstra
fb3c553d 56180dd2

+1 -3
+1 -1
kernel/futex/core.c
··· 143 143 return !(key->both.offset & (FUT_OFF_INODE | FUT_OFF_MMSHARED)); 144 144 } 145 145 146 - bool futex_private_hash_get(struct futex_private_hash *fph) 146 + static bool futex_private_hash_get(struct futex_private_hash *fph) 147 147 { 148 148 if (fph->immutable) 149 149 return true;
-2
kernel/futex/futex.h
··· 228 228 extern void futex_hash_put(struct futex_hash_bucket *hb); 229 229 230 230 extern struct futex_private_hash *futex_private_hash(void); 231 - extern bool futex_private_hash_get(struct futex_private_hash *fph); 232 231 extern void futex_private_hash_put(struct futex_private_hash *fph); 233 232 234 233 #else /* !CONFIG_FUTEX_PRIVATE_HASH */ 235 234 static inline void futex_hash_get(struct futex_hash_bucket *hb) { } 236 235 static inline void futex_hash_put(struct futex_hash_bucket *hb) { } 237 236 static inline struct futex_private_hash *futex_private_hash(void) { return NULL; } 238 - static inline bool futex_private_hash_get(void) { return false; } 239 237 static inline void futex_private_hash_put(struct futex_private_hash *fph) { } 240 238 #endif 241 239