Re: [PATCH 3/7] powerpc/setup: define cpu_pvr at all time

2019-03-25 Thread Christophe Leroy
Le 22/03/2019 à 09:08, Christophe Leroy a écrit : To avoid ifdefs, define cpu_pvr at all time. Signed-off-by: Christophe Leroy This patch introduces a sparse warning. I guess we can skip it for now and rework more deeply the use of cpu_pvr versus SPRN_PVR which is re-read in many places

[PATCH 3/7] powerpc/setup: define cpu_pvr at all time

2019-03-22 Thread Christophe Leroy
To avoid ifdefs, define cpu_pvr at all time. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/setup-common.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index a90e8367ccde..a4ed93