From: Andrew Morton fs/select.c: In function 'do_sys_poll': fs/select.c:670: warning: comparison of distinct pointer types lacks a cast size_t != uint. Cc: Davide Libenzi Cc: Oleg Nesterov Cc: Vadim Lobanov Signed-off-by: Andrew Morton --- fs/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/select.c~do_sys_poll-simplify-playing-with-on-stack-data-fix fs/select.c --- a/fs/select.c~do_sys_poll-simplify-playing-with-on-stack-data-fix +++ a/fs/select.c @@ -665,7 +665,7 @@ int do_sys_poll(struct pollfd __user *uf if (nfds > current->signal->rlim[RLIMIT_NOFILE].rlim_cur) return -EINVAL; - len = min(nfds, N_STACK_PPS); + len = min_t(unsigned int, nfds, N_STACK_PPS); for (;;) { walk->next = NULL; walk->len = len; _