Skip to content

Commit fb3c553

Browse files
Sebastian Andrzej SiewiorPeter Zijlstra
authored andcommitted
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
1 parent 56180dd commit fb3c553

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

kernel/futex/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static inline bool futex_key_is_private(union futex_key *key)
143143
return !(key->both.offset & (FUT_OFF_INODE | FUT_OFF_MMSHARED));
144144
}
145145

146-
bool futex_private_hash_get(struct futex_private_hash *fph)
146+
static bool futex_private_hash_get(struct futex_private_hash *fph)
147147
{
148148
if (fph->immutable)
149149
return true;

kernel/futex/futex.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,12 @@ extern void futex_hash_get(struct futex_hash_bucket *hb);
228228
extern void futex_hash_put(struct futex_hash_bucket *hb);
229229

230230
extern struct futex_private_hash *futex_private_hash(void);
231-
extern bool futex_private_hash_get(struct futex_private_hash *fph);
232231
extern void futex_private_hash_put(struct futex_private_hash *fph);
233232

234233
#else /* !CONFIG_FUTEX_PRIVATE_HASH */
235234
static inline void futex_hash_get(struct futex_hash_bucket *hb) { }
236235
static inline void futex_hash_put(struct futex_hash_bucket *hb) { }
237236
static inline struct futex_private_hash *futex_private_hash(void) { return NULL; }
238-
static inline bool futex_private_hash_get(void) { return false; }
239237
static inline void futex_private_hash_put(struct futex_private_hash *fph) { }
240238
#endif
241239

0 commit comments

Comments
 (0)