Thread (6 messages) 6 messages, 4 authors, 2017-08-31

Re: [PATCH] powerpc: powernv: Fix build error on const discarding

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-08-25 01:26:39
Also in: lkml

Corentin Labbe [off-list ref] writes:
On Thu, Aug 17, 2017 at 10:52:11PM +1000, Michael Ellerman wrote:
quoted
Corentin Labbe [off-list ref] writes:
=20
quoted
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=A0dis=
able_nest_pmu_counters=C2=A0=C2=BB:
quoted
quoted
arch/powerpc/platforms/powernv/opal-imc.c:130:13: error=C2=A0: assignm=
ent discards =C2=AB=C2=A0const=C2=A0=C2=BB qualifier from pointer target ty=
pe [-Werror=3Ddiscarded-qualifiers]
quoted
quoted
   l_cpumask =3D cpumask_of_node(nid);
             ^
This patch simply add const to l_cpumask to fix this issue.
=20
Thanks. I'm not sure why we haven't seen that.
=20
Do you mind attaching your .config ?
=20
cheers
Yes
Thanks.

So the key is:
CONFIG_PPC_POWERNV=3Dy
...
# CONFIG_NUMA is not set

Which none of our configs have.

I'll add a test build of that.

Thanks.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help