[PATCH] x86: fix -Wsign-compare warnings in uaccess.h

2015-06-27 Thread Роман Донченко
The casts are safe, since those conditions are only evaluated when sz >= 0. Signed-off-by: Роман Донченко --- arch/x86/include/asm/uaccess.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/uaccess.h b/arch/x86/include/asm/uaccess.h index a8df

Re: [PATCH] x86: fix -Wsign-compare warnings in uaccess.h

2015-06-27 Thread Роман Донченко
Toralf Förster писал в своём письме Sat, 27 Jun 2015 22:16:27 +0300: The casts are safe, since those conditions are only evaluated when sz >= 0. Wouldn't in this case the condition "sz < 0" be superfluously ? No, sz can be negative. I meant that if sz < 0, then the second halves won't