Commit 1dcc41bb037533839753df983d31778b30b67d93

Authored by Namhyung Kim
Committed by Thomas Gleixner
1 parent 151b6a5f1d

futex: Change 3rd arg of fetch_robust_entry() to unsigned int*

Sparse complains:
 kernel/futex.c:2495:59: warning: incorrect type in argument 3 (different signedness)

Make 3rd argument of fetch_robust_entry() 'unsigned int'.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Darren Hart <dvhltc@us.ibm.com>
LKML-Reference: <1284468228-8723-1-git-send-email-namhyung@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -2458,7 +2458,7 @@
2458 2458 */
2459 2459 static inline int fetch_robust_entry(struct robust_list __user **entry,
2460 2460 struct robust_list __user * __user *head,
2461   - int *pi)
  2461 + unsigned int *pi)
2462 2462 {
2463 2463 unsigned long uentry;
2464 2464  
kernel/futex_compat.c
... ... @@ -19,7 +19,7 @@
19 19 */
20 20 static inline int
21 21 fetch_robust_entry(compat_uptr_t *uentry, struct robust_list __user **entry,
22   - compat_uptr_t __user *head, int *pi)
  22 + compat_uptr_t __user *head, unsigned int *pi)
23 23 {
24 24 if (get_user(*uentry, head))
25 25 return -EFAULT;