diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-01-01 19:57:24 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-01-01 19:57:24 +0000 |
commit | 2e64d6934950aaaec133fb78d89c8985e121c29b (patch) | |
tree | fad0fd5d2c272e9f1102881c1a9f202fe6d7f5df /sys/compat | |
parent | 4026f410fd6606b2d81e32bf4d3807bda3046827 (diff) | |
download | FreeBSD-src-2e64d6934950aaaec133fb78d89c8985e121c29b.zip FreeBSD-src-2e64d6934950aaaec133fb78d89c8985e121c29b.tar.gz |
Fix Clang warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign.
MFC after: 1 week
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_futex.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index 3f6d0e7..3a0952b 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -175,11 +175,12 @@ LIN_SDT_PROBE_DEFINE2(futex, linux_get_robust_list, entry, "struct thread *", LIN_SDT_PROBE_DEFINE1(futex, linux_get_robust_list, copyout_error, "int"); LIN_SDT_PROBE_DEFINE1(futex, linux_get_robust_list, return, "int"); LIN_SDT_PROBE_DEFINE3(futex, handle_futex_death, entry, "struct proc *", - "uint32_t *", "int"); + "uint32_t *", "unsigned int"); LIN_SDT_PROBE_DEFINE1(futex, handle_futex_death, copyin_error, "int"); LIN_SDT_PROBE_DEFINE1(futex, handle_futex_death, return, "int"); LIN_SDT_PROBE_DEFINE3(futex, fetch_robust_entry, entry, - "struct linux_robust_list **", "struct linux_robust_list **", "int *"); + "struct linux_robust_list **", "struct linux_robust_list **", + "unsigned int *"); LIN_SDT_PROBE_DEFINE1(futex, fetch_robust_entry, copyin_error, "int"); LIN_SDT_PROBE_DEFINE1(futex, fetch_robust_entry, return, "int"); LIN_SDT_PROBE_DEFINE1(futex, release_futexes, entry, "struct proc *"); @@ -1100,7 +1101,7 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args } static int -handle_futex_death(struct proc *p, uint32_t *uaddr, int pi) +handle_futex_death(struct proc *p, uint32_t *uaddr, unsigned int pi) { uint32_t uval, nval, mval; struct futex *f; @@ -1149,7 +1150,7 @@ retry: static int fetch_robust_entry(struct linux_robust_list **entry, - struct linux_robust_list **head, int *pi) + struct linux_robust_list **head, unsigned int *pi) { l_ulong uentry; int error; |