Mathieu Malaterre
ef85dffd42
powerpc: Avoid comparison of unsigned long >= 0 in __access_ok()
Rewrite function-like macro into regular static inline function to
avoid a warning during macro expansion.
Fix warning (treated as error in W=1):
./arch/powerpc/include/asm/uaccess.h:52:35: error: comparison of unsigned expression >= 0 is always true
(((size) == 0) || (((size) - 1) <= ((segment).seg - (addr)))))
^
Suggested-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-03-13 15:50:41 +11:00
..
2018-02-23 08:38:16 +01:00
2018-03-01 14:32:23 -08:00
2018-02-28 16:11:04 -08:00
2018-02-28 16:11:04 -08:00
2018-02-11 14:37:22 -08:00
2018-02-01 16:56:07 -08:00
2018-02-21 15:35:43 -08:00
2018-02-11 14:37:22 -08:00
2018-02-01 16:56:07 -08:00
2018-02-01 16:56:07 -08:00
2018-02-21 15:35:43 -08:00
2018-02-01 16:56:07 -08:00
2018-02-21 15:35:43 -08:00
2018-02-01 16:56:07 -08:00
2018-02-02 09:48:36 -08:00
2018-02-23 14:59:29 -08:00
2018-02-01 16:56:07 -08:00
2018-02-11 13:52:32 -08:00
2018-02-01 16:56:07 -08:00
2018-03-02 13:05:20 -08:00
2018-03-13 15:50:41 +11:00
2018-02-26 08:44:50 -08:00
2018-02-20 20:51:28 +00:00
2018-02-06 18:32:47 -08:00
2018-03-02 09:20:55 +09:00
2018-02-21 15:35:43 -08:00
2018-02-01 16:56:07 -08:00
2018-02-09 19:28:01 -08:00
2018-02-06 18:32:44 -08:00
2018-03-04 12:12:48 -08:00
2018-02-16 19:19:54 -08:00
2018-02-06 18:32:44 -08:00