Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73127
b: refs/heads/master
c: fad23fc
h: refs/heads/master
i:
  73125: c9c1854
  73123: 11b3422
  73119: 1b96d46
v: v3
  • Loading branch information
Adrian Bunk authored and Rusty Russell committed Nov 5, 2007
1 parent 2db1e5b commit fc177d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02c3530da6b926b31f89ba589da72eca49557edd
refs/heads/master: fad23fc78b959dae89768e523c3a6f5edb83bbe9
4 changes: 0 additions & 4 deletions trunk/include/linux/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,6 @@ union futex_key {
int offset;
} both;
};
int get_futex_key(u32 __user *uaddr, struct rw_semaphore *shared,
union futex_key *key);
void get_futex_key_refs(union futex_key *key);
void drop_futex_key_refs(union futex_key *key);

#ifdef CONFIG_FUTEX
extern void exit_robust_list(struct task_struct *curr);
Expand Down
11 changes: 4 additions & 7 deletions trunk/kernel/futex.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ static inline int match_futex(union futex_key *key1, union futex_key *key2)
* For other futexes, it points to &current->mm->mmap_sem and
* caller must have taken the reader lock. but NOT any spinlocks.
*/
int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared,
union futex_key *key)
static int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared,
union futex_key *key)
{
unsigned long address = (unsigned long)uaddr;
struct mm_struct *mm = current->mm;
Expand Down Expand Up @@ -268,14 +268,13 @@ int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared,
}
return err;
}
EXPORT_SYMBOL_GPL(get_futex_key);

/*
* Take a reference to the resource addressed by a key.
* Can be called while holding spinlocks.
*
*/
inline void get_futex_key_refs(union futex_key *key)
static void get_futex_key_refs(union futex_key *key)
{
if (key->both.ptr == 0)
return;
Expand All @@ -288,13 +287,12 @@ inline void get_futex_key_refs(union futex_key *key)
break;
}
}
EXPORT_SYMBOL_GPL(get_futex_key_refs);

/*
* Drop a reference to the resource addressed by a key.
* The hash bucket spinlock must not be held.
*/
void drop_futex_key_refs(union futex_key *key)
static void drop_futex_key_refs(union futex_key *key)
{
if (!key->both.ptr)
return;
Expand All @@ -307,7 +305,6 @@ void drop_futex_key_refs(union futex_key *key)
break;
}
}
EXPORT_SYMBOL_GPL(drop_futex_key_refs);

static u32 cmpxchg_futex_value_locked(u32 __user *uaddr, u32 uval, u32 newval)
{
Expand Down

0 comments on commit fc177d7

Please sign in to comment.