Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1713987

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

From Michael Ellerman <mpe@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: [PATCH] powerpc: powernv: Fix build error on const discarding
Date 2017-08-17 15:00 +0200
Message-ID <ufsz0-4YZ-23@gated-at.bofh.it> (permalink)
References <uf5M6-73I-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] powerpc: powernv: Fix build error on const discarding Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-08-16 14:40 +0200
  Re: [PATCH] powerpc: powernv: Fix build error on const discarding Michael Ellerman <mpe@ellerman.id.au> - 2017-08-17 15:00 +0200
    Re: [PATCH] powerpc: powernv: Fix build error on const discarding Michael Ellerman <mpe@ellerman.id.au> - 2017-08-25 03:30 +0200

csiph-web