From patchwork Tue Jul 11 21:18:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 107418 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp5400990qge; Tue, 11 Jul 2017 14:18:25 -0700 (PDT) X-Received: by 10.55.97.13 with SMTP id v13mr2351022qkb.107.1499807905909; Tue, 11 Jul 2017 14:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499807905; cv=none; d=google.com; s=arc-20160816; b=bKXRDQAzSnGtF7sMhwJBxejGIjKtDB4/5dA/KYp4CMD2qCIaCI1DXCD55wsDCbH/Ix 7NgiDdYH4fAfp+9PFwwQB7VhKODRQ3qR6WXblnAlZ4azhBBeWFgnhRCvalAdPP350skK nVMjEPsdgcJtFPfzzQe4egeehvcby06uHUyRuL8w3iUoagMOne59OwYk7eQXi1d4UXSm 5zkOmzOvuPGV5RJAmZ0v3wvrsFWWhPen11slNhA1HqlD6Tjra/d+xxTUK4uNMoekKDic KaklfP7d5j4ZbKds5olBbjh0HgLUiGnz81aB03g/7hsorihh/9rH0JJpEFxvoXghKGHS w1Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:delivered-to:arc-authentication-results; bh=mNJR7xd9PS9vUGsYcnXk83Er/dXTnEQOiKZYmDQ/+TM=; b=w0woCx6ij3KUGRYlr2sVDW48WKGv5L3uQr3zwKETian4VrgI8gt7jHzVVe+7ArlZrZ 0tbzcP9QajVdvwVfy1y++bC3oS2Bdu4QSjuDYgg3Mx9wUbQwF1keQfZ35UTQOTMWoYUJ EcBcnJI8NIgKQxqyJHAOrmBd2VrKLEclDWMVzADf/0p4es9XxTg7LXCOSQkx2uBsQbRQ Rl834mWy6SX8j7gFo4bvUNy86pp5suPeqajDEQYRiyR6nVMv5WqyMNHPJvbbf2UA5Am+ SvAwnXPtg9DhOvXq7rnYOTG6qx3pdh7DZOdWgXa4WWPmBbBeISe3jiHe5RgjwFKIbYSP b3WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id g54si429899qtb.139.2017.07.11.14.18.24; Tue, 11 Jul 2017 14:18:25 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D2CE664496; Tue, 11 Jul 2017 21:18:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 336F1622F0; Tue, 11 Jul 2017 21:18:20 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A274164488; Tue, 11 Jul 2017 21:18:18 +0000 (UTC) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by lists.linaro.org (Postfix) with ESMTPS id BD238622F0 for ; Tue, 11 Jul 2017 21:18:17 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id x187so4058659oig.3 for ; Tue, 11 Jul 2017 14:18:17 -0700 (PDT) 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:in-reply-to :references; bh=mNJR7xd9PS9vUGsYcnXk83Er/dXTnEQOiKZYmDQ/+TM=; b=Pjq4OSLj70zMdfrX2gtxmeSvGl4EzqiEo5/+qvddBqBF+ctPbAXle7GZfrL54nIBXi TcIDol5ryRBc0dXX5gpPp4ZUTJ29vGrADxAmJIAK/jpToCgW4yk7hKoLpm2UEeJhHJD7 DzCdlvYQJu68RbQj5mTx2gdulpdr10eQVQMLtvYJ/fA+stPIfzhuVofD4y94L3VBScII X995gZKQyPsDRNde8h+GoTt9tAiF93gwHn4dSCSnirYFKAS3H7Z+uGZwEKxq+s2im3HJ 3sazOqLO4qo1lSEDEw54oS8U5IOWbltpcJOl7tFU8KYsnCBrjqtCjvDkmaAyZ83hxoKh ouhQ== X-Gm-Message-State: AIVw113i8jpegH0Bm/T1ghJ8l/HPfUpERy2IPbJhxiJzsQj6jQ5VLXBS i4GgsLmJ8OGPLCFlDiSj494A X-Received: by 10.202.223.69 with SMTP id w66mr1614555oig.36.1499807897151; Tue, 11 Jul 2017 14:18:17 -0700 (PDT) Received: from localhost.localdomain (cpe-70-121-83-241.austin.res.rr.com. [70.121.83.241]) by smtp.gmail.com with ESMTPSA id x74sm720063oia.23.2017.07.11.14.18.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jul 2017 14:18:15 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 11 Jul 2017 16:18:12 -0500 Message-Id: <20170711211812.9348-2-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170711211812.9348-1-bill.fischofer@linaro.org> References: <20170711211812.9348-1-bill.fischofer@linaro.org> Subject: [lng-odp] [MONARCH_LTS PATCH 2/2] pktio: GCC 7 fixes X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Brian Brooks The GCC 7 series introduces changes that expose ODP compilation issues. These include case statement fall through warnings, and stricter checks on potential string overflows and other semantic analysis. Fixes: https://bugs.linaro.org/show_bug.cgi?id=3027 Signed-off-by: Brian Brooks Signed-off-by: Bill Fischofer --- test/validation/pktio/pktio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.11.0 diff --git a/test/validation/pktio/pktio.c b/test/validation/pktio/pktio.c index 4e93e9b4..1b73697a 100644 --- a/test/validation/pktio/pktio.c +++ b/test/validation/pktio/pktio.c @@ -1410,7 +1410,9 @@ int pktio_check_statistics_counters(void) void pktio_test_statistics_counters(void) { odp_pktio_t pktio_rx, pktio_tx; - odp_pktio_t pktio[MAX_NUM_IFACES]; + odp_pktio_t pktio[MAX_NUM_IFACES] = { + ODP_PKTIO_INVALID, ODP_PKTIO_INVALID + }; odp_packet_t pkt; odp_packet_t tx_pkt[1000]; uint32_t pkt_seq[1000];