Messages in this thread | | | From | Michael Ellerman <> | Subject | Re: [PATCH] powerpc: powernv: Fix build error on const discarding | Date | Thu, 17 Aug 2017 22:52:11 +1000 |
| |
Corentin Labbe <clabbe.montjoie@gmail.com> 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 « disable_nest_pmu_counters »: > arch/powerpc/platforms/powernv/opal-imc.c:130:13: error : assignment discards « const » qualifier from pointer target type [-Werror=discarded-qualifiers] > l_cpumask = 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
| |