From patchwork Wed Aug 15 13:11:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 957897 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41r8xt1F2Pz9sCP; Wed, 15 Aug 2018 23:12:02 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1fpvag-00048O-1D; Wed, 15 Aug 2018 13:11:58 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1fpvaS-0003tC-1j for fwts-devel@lists.ubuntu.com; Wed, 15 Aug 2018 13:11:44 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fpvaP-00087b-5h; Wed, 15 Aug 2018 13:11:41 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 22/27] opal: reserv_mem: add in missing const to fix build warnings Date: Wed, 15 Aug 2018 14:11:24 +0100 Message-Id: <20180815131129.24146-23-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180815131129.24146-1-colin.king@canonical.com> References: <20180815131129.24146-1-colin.king@canonical.com> MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" From: Colin Ian King Add in missing const, cleans up warnings. Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Ivan Hu --- src/opal/reserv_mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opal/reserv_mem.c b/src/opal/reserv_mem.c index 4683f73c..b42b959b 100644 --- a/src/opal/reserv_mem.c +++ b/src/opal/reserv_mem.c @@ -125,7 +125,7 @@ static int reserv_mem_init(fwts_framework *fw) static int reserv_mem_limits_test(fwts_framework *fw) { bool ok = true; - char *region_names; + const char *region_names; const uint64_t *ranges; reserve_region_t *regions; int offset, len, nr_regions, rc, j; @@ -145,7 +145,7 @@ static int reserv_mem_limits_test(fwts_framework *fw) "reserved-names"); /* Check for the reservd-names property */ - region_names = (char *)fdt_getprop(fw->fdt, offset, + region_names = (const char *)fdt_getprop(fw->fdt, offset, "reserved-names", &len); if (!region_names) { fwts_failed(fw, LOG_LEVEL_MEDIUM, "DTPropertyMissing",