Re: [PATCH] powerpc: powernv: Fix build error on const discarding
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-08-17 12:52:19
Also in:
lkml
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-08-17 12:52:19
Also in:
lkml
Corentin Labbe [off-list ref] writes:
When building a random powerpc kernel I hit this build error: CC arch/powerpc/platforms/powernv/opal-imc.o arch/powerpc/platforms/powernv/opal-imc.c: In function =C2=AB=C2=A0disabl=
e_nest_pmu_counters=C2=A0=C2=BB:
arch/powerpc/platforms/powernv/opal-imc.c:130:13: error=C2=A0: assignment=
discards =C2=AB=C2=A0const=C2=A0=C2=BB qualifier from pointer target type = [-Werror=3Ddiscarded-qualifiers]
l_cpumask =3D cpumask_of_node(nid);
^
This patch simply add const to l_cpumask to fix this issue.Thanks. I'm not sure why we haven't seen that. Do you mind attaching your .config ? cheers