Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751552AbdHaLgR (ORCPT ); Thu, 31 Aug 2017 07:36:17 -0400 Received: from ozlabs.org ([103.22.144.67]:50777 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbdHaLgP (ORCPT ); Thu, 31 Aug 2017 07:36:15 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 6538ac30841638b2fd345725a9fd155c6fe1768a In-Reply-To: <20170816123444.5202-1-clabbe.montjoie@gmail.com> To: Corentin Labbe , benh@kernel.crashing.org, paulus@samba.org, anju@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com From: Michael Ellerman Cc: Corentin Labbe , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: powerpc: powernv: Fix build error on const discarding Message-Id: <3xjgLQ0DTHz9t1t@ozlabs.org> Date: Thu, 31 Aug 2017 21:36:13 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 779 Lines: 17 On Wed, 2017-08-16 at 12:34:44 UTC, Corentin Labbe wrote: > 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. > > Signed-off-by: Corentin Labbe > Reviewed-by: Madhavan Srinivasan Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6538ac30841638b2fd345725a9fd15 cheers