From patchwork Wed Aug 16 12:34:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 802050 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xXTj33dYSz9t4P for ; Wed, 16 Aug 2017 22:50:31 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ldtmZkjN"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3xXTj26zbQzDrW6 for ; Wed, 16 Aug 2017 22:50:30 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ldtmZkjN"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xXTPR2LNCzDrVy for ; Wed, 16 Aug 2017 22:36:59 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ldtmZkjN"; dkim-atps=neutral Received: by mail-wr0-x243.google.com with SMTP id n88so2841200wrb.0 for ; Wed, 16 Aug 2017 05:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G/Y5Nk2V6sFRTXf+TqvRkKNuuI4wUbUjl7C3Wizk3RE=; b=ldtmZkjN0+V+80UuAWsvsFy+0ej/Vr6V/4pz6km9YC/WC9ZMm1diW/Gx8m0L35Tech +KyIUqbccj7MgXC/6GEk9L32mZhMC+sYIt/uQY39p2MU9t04sJ96xwBh6uBW8gOvQzQS 1gjyhQfEsHofXniK21/EcsYrf8n6Ln2uKXJg+Ne71zKKShIv1EQoxAh669Hshmwk0wv9 FwGHI56R1Gz1RutvUY83hp9ZKgydj9dAp55PWphuFwNfWhR39jnbdXbjaXTd9uQEIIc1 d83MknPEqAUAmfJNp+GVnmeq17QQu8ae6psz9Faeg4r9fBaWMx3vVj5PIxvPX9tUdS6p PR3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G/Y5Nk2V6sFRTXf+TqvRkKNuuI4wUbUjl7C3Wizk3RE=; b=t5IfzKdOQHjMWOd3u+Vat4auKcbGB10+Ek9g60xkd9wOtWNAtz9im6QtPA/PuQDGcN UGUdUTUcM9bFjJfRnSDjJR7Vri+cUBLbrl96VY52u7JeeUvd6VnyqIySYMaGlI0ptys+ rsA4G4p+zIyqfm+/Er5B8xKVPPvHF32GtH+79ceKg8UneRCw5dlb8RuF3WpPaEMU1cHO lp4eBI0X8j6Dx3UqbyjizV4ngf99i2o73i5WCCH7BvVi4LhwQ6DS6jbn/2iIPjaJN5z6 cRX1LR8MVL5cSJyJrTLSeYGT7WJI4qlBk0PsPFCNNFqJIRM2AePhOKRgQekxwnjlbh4o 6LcA== X-Gm-Message-State: AHYfb5hbDBkiUL0u7x1BoGXPNVNUXyqtJ1Gr1ObC3Tc8j9thdMya9IFP RLvdEy6BPaxghQ== X-Received: by 10.223.165.12 with SMTP id i12mr1128332wrb.5.1502887016690; Wed, 16 Aug 2017 05:36:56 -0700 (PDT) Received: from Red.local (LFbn-1-7109-228.w90-116.abo.wanadoo.fr. [90.116.45.228]) by smtp.googlemail.com with ESMTPSA id c88sm1643869wmi.30.2017.08.16.05.36.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Aug 2017 05:36:56 -0700 (PDT) From: Corentin Labbe To: benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, anju@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com Subject: [PATCH] powerpc: powernv: Fix build error on const discarding Date: Wed, 16 Aug 2017 14:34:44 +0200 Message-Id: <20170816123444.5202-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corentin Labbe , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 --- arch/powerpc/platforms/powernv/opal-imc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/opal-imc.c b/arch/powerpc/platforms/powernv/opal-imc.c index b903bf5e6006..21f6531fae20 100644 --- a/arch/powerpc/platforms/powernv/opal-imc.c +++ b/arch/powerpc/platforms/powernv/opal-imc.c @@ -123,7 +123,7 @@ static int imc_pmu_create(struct device_node *parent, int pmu_index, int domain) static void disable_nest_pmu_counters(void) { int nid, cpu; - struct cpumask *l_cpumask; + const struct cpumask *l_cpumask; get_online_cpus(); for_each_online_node(nid) {