Re: [PATCH] powerpc/mm: fix always true/false warning in slice.c

2018-08-02 Thread Christophe Leroy
On 06/29/2018 02:55 AM, Michael Ellerman wrote: Christophe Leroy writes: This patch fixes the following warnings (obtained with make W=1). arch/powerpc/mm/slice.c: In function 'slice_range_to_mask': arch/powerpc/mm/slice.c:73:12: error: comparison is always true due to limited range of da

Re: [PATCH] powerpc/mm: fix always true/false warning in slice.c

2018-06-28 Thread Michael Ellerman
Christophe Leroy writes: > This patch fixes the following warnings (obtained with make W=1). > > arch/powerpc/mm/slice.c: In function 'slice_range_to_mask': > arch/powerpc/mm/slice.c:73:12: error: comparison is always true due to > limited range of data type [-Werror=type-limits] > if (start <

Re: [PATCH] powerpc/mm: fix always true/false warning in slice.c

2018-06-22 Thread Christophe LEROY
Le 22/06/2018 à 16:55, Mathieu Malaterre a écrit : On Fri, Jun 22, 2018 at 3:49 PM Christophe Leroy wrote: This patch fixes the following warnings (obtained with make W=1). arch/powerpc/mm/slice.c: In function 'slice_range_to_mask': arch/powerpc/mm/slice.c:73:12: error: comparison is alway

Re: [PATCH] powerpc/mm: fix always true/false warning in slice.c

2018-06-22 Thread Mathieu Malaterre
On Fri, Jun 22, 2018 at 3:49 PM Christophe Leroy wrote: > > This patch fixes the following warnings (obtained with make W=1). > > arch/powerpc/mm/slice.c: In function 'slice_range_to_mask': > arch/powerpc/mm/slice.c:73:12: error: comparison is always true due to > limited range of data type [-Wer

[PATCH] powerpc/mm: fix always true/false warning in slice.c

2018-06-22 Thread Christophe Leroy
This patch fixes the following warnings (obtained with make W=1). arch/powerpc/mm/slice.c: In function 'slice_range_to_mask': arch/powerpc/mm/slice.c:73:12: error: comparison is always true due to limited range of data type [-Werror=type-limits] if (start < SLICE_LOW_TOP) { ^ arch/p