Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-04 Thread christophe leroy
Le 04/03/2018 à 11:55, Michael Ellerman a écrit : Mathieu Malaterre writes: Rewrite comparison since all values compared are of type `unsigned long`. Fix a warning (treated as error in W=1): CC arch/powerpc/kernel/irq.o In file included from

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-04 Thread christophe leroy
Le 04/03/2018 à 11:55, Michael Ellerman a écrit : Mathieu Malaterre writes: Rewrite comparison since all values compared are of type `unsigned long`. Fix a warning (treated as error in W=1): CC arch/powerpc/kernel/irq.o In file included from ./include/linux/bug.h:5:0,

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-04 Thread Michael Ellerman
Mathieu Malaterre writes: > Rewrite comparison since all values compared are of type `unsigned long`. > > Fix a warning (treated as error in W=1): > > CC arch/powerpc/kernel/irq.o > In file included from ./include/linux/bug.h:5:0, > from

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-04 Thread Michael Ellerman
Mathieu Malaterre writes: > Rewrite comparison since all values compared are of type `unsigned long`. > > Fix a warning (treated as error in W=1): > > CC arch/powerpc/kernel/irq.o > In file included from ./include/linux/bug.h:5:0, > from ./include/linux/cpumask.h:13, >

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-02 Thread christophe leroy
Le 02/03/2018 à 20:54, Mathieu Malaterre a écrit : On Mon, Feb 26, 2018 at 9:46 AM, Segher Boessenkool wrote: On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote: Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : -#define pfn_valid(pfn)

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-02 Thread christophe leroy
Le 02/03/2018 à 20:54, Mathieu Malaterre a écrit : On Mon, Feb 26, 2018 at 9:46 AM, Segher Boessenkool wrote: On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote: Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : -#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-02 Thread Mathieu Malaterre
On Mon, Feb 26, 2018 at 9:46 AM, Segher Boessenkool wrote: > On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote: >> Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : >> >-#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < >>

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-03-02 Thread Mathieu Malaterre
On Mon, Feb 26, 2018 at 9:46 AM, Segher Boessenkool wrote: > On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote: >> Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : >> >-#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < >> >max_mapnr) >> >+#define

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-02-26 Thread Segher Boessenkool
On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote: > Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : > >-#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < > >max_mapnr) > >+#define pfn_valid(pfn) \ > >+(((pfn) - ARCH_PFN_OFFSET) < (max_mapnr -

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-02-26 Thread Segher Boessenkool
On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote: > Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : > >-#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) < > >max_mapnr) > >+#define pfn_valid(pfn) \ > >+(((pfn) - ARCH_PFN_OFFSET) < (max_mapnr -

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-02-25 Thread Mathieu Malaterre
On Mon, Feb 26, 2018 at 7:32 AM, Christophe LEROY wrote: > > > Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : >> >> Rewrite comparison since all values compared are of type `unsigned long`. >> >> Fix a warning (treated as error in W=1): >> >>CC

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-02-25 Thread Mathieu Malaterre
On Mon, Feb 26, 2018 at 7:32 AM, Christophe LEROY wrote: > > > Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : >> >> Rewrite comparison since all values compared are of type `unsigned long`. >> >> Fix a warning (treated as error in W=1): >> >>CC arch/powerpc/kernel/irq.o >> In file

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-02-25 Thread Christophe LEROY
Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : Rewrite comparison since all values compared are of type `unsigned long`. Fix a warning (treated as error in W=1): CC arch/powerpc/kernel/irq.o In file included from ./include/linux/bug.h:5:0, from

Re: [PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-02-25 Thread Christophe LEROY
Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit : Rewrite comparison since all values compared are of type `unsigned long`. Fix a warning (treated as error in W=1): CC arch/powerpc/kernel/irq.o In file included from ./include/linux/bug.h:5:0, from

[PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-02-25 Thread Mathieu Malaterre
Rewrite comparison since all values compared are of type `unsigned long`. Fix a warning (treated as error in W=1): CC arch/powerpc/kernel/irq.o In file included from ./include/linux/bug.h:5:0, from ./include/linux/cpumask.h:13, from

[PATCH 05/21] powerpc: Avoid comparison of unsigned long >= 0 in pfn_valid

2018-02-25 Thread Mathieu Malaterre
Rewrite comparison since all values compared are of type `unsigned long`. Fix a warning (treated as error in W=1): CC arch/powerpc/kernel/irq.o In file included from ./include/linux/bug.h:5:0, from ./include/linux/cpumask.h:13, from