File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,18 @@ late_initcall(fail_futex_debugfs);
107
107
108
108
#endif /* CONFIG_FAIL_FUTEX */
109
109
110
+ struct futex_private_hash * futex_private_hash (void )
111
+ {
112
+ return NULL ;
113
+ }
114
+
115
+ bool futex_private_hash_get (struct futex_private_hash * fph )
116
+ {
117
+ return false;
118
+ }
119
+
120
+ void futex_private_hash_put (struct futex_private_hash * fph ) { }
121
+
110
122
/**
111
123
* futex_hash - Return the hash bucket in the global hash
112
124
* @key: Pointer to the futex key for which the hash is calculated
Original file line number Diff line number Diff line change @@ -206,10 +206,18 @@ extern struct futex_hash_bucket *futex_hash(union futex_key *key);
206
206
extern void futex_hash_get (struct futex_hash_bucket * hb );
207
207
extern void futex_hash_put (struct futex_hash_bucket * hb );
208
208
209
+ extern struct futex_private_hash * futex_private_hash (void );
210
+ extern bool futex_private_hash_get (struct futex_private_hash * fph );
211
+ extern void futex_private_hash_put (struct futex_private_hash * fph );
212
+
209
213
DEFINE_CLASS (hb , struct futex_hash_bucket * ,
210
214
if (_T ) futex_hash_put (_T ),
211
215
futex_hash (key ), union futex_key * key );
212
216
217
+ DEFINE_CLASS (private_hash , struct futex_private_hash * ,
218
+ if (_T ) futex_private_hash_put (_T ),
219
+ futex_private_hash (), void );
220
+
213
221
/**
214
222
* futex_match - Check whether two futex keys are equal
215
223
* @key1: Pointer to key1
You can’t perform that action at this time.
0 commit comments