From patchwork Thu Sep 5 09:32:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Ostruszka X-Patchwork-Id: 58628 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E96731EE5B; Thu, 5 Sep 2019 11:32:51 +0200 (CEST) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) by dpdk.org (Postfix) with ESMTP id 47BDA1EDA9 for ; Thu, 5 Sep 2019 11:32:43 +0200 (CEST) Received: by mail-lj1-f173.google.com with SMTP id d5so1684507lja.10 for ; Thu, 05 Sep 2019 02:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z5DzTIxEt5+ANVdQni1kRcJ+xYX6pxDF0HUGiUlFpcM=; b=cZafQPBacW/9Brsq0NFycuNDaf9tnY01Jl2yRE/+pHVETvcje7SWfMDzzwyAFOVafL kowzg1vWoIb+i/u5X1fNSW3Lfk1wm466VXH15YgGpOJagbhKUreoH7wVvJ39I1SO9mWR 57+ZPbtDmZI6/t4mXjw7raxDMOATt9xkwO/ozYIhrXdJzr4EoVcBycMUh1wNJepxopC7 cllzstL5ld04chjs21rjPQ1gyp90Uo1JboB9aJNpmx5kDXoXa+jHFcqcD+zvYDqd1Gwg XIz28Q7+zVhFEvBSMp5tlWH4rXh2Y7zY+5swZ/7SsZ7MfU7eOhUd7K6wRdJbRr1IFYN+ J0+g== 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=Z5DzTIxEt5+ANVdQni1kRcJ+xYX6pxDF0HUGiUlFpcM=; b=GggMiGHJ6MgPpdr//3RMZcMLcUfXS2hol/Yz/+RkhRCcD24D9fkQ8Gj/ZFYJtVJdmZ kO1r3jg/0WvnmF9p16H+Tn5MZQr6FA1kEpdNG4F8okdai6KWCHkPeHD4uRaen03AKyC8 soxxZgH+s3a8DSvgj1gv6sPmuxYSm0tNl6pmbNB6jSjn2AC9qjb9nNsmfFMhFwFxiqTy XCjQFCPVhNjFuUJNO4pdOxqq5pEunNMsQ4EQqxAcPT5PHAx9B0wR12AfRBGH6/H1J84a dIM3k5IyVt3IuUXy/Qpgg0dpFH/Of0kuo8fTU/bt2b0tiFR+aVaOxwOkaNPlRQgsn/to ozvA== X-Gm-Message-State: APjAAAVePYoLBTbUSlbwj2NR0H5o89D5GO/7X6pi5vsT43/ocy9hEK12 h5eR1Q6+MCwqeiDH3nd1Ym6PAxl+g8oMvQ== X-Google-Smtp-Source: APXvYqzTfe9/nYYFmG3V24G4fryoHEzTouvrpUJBHjk8/o3GKouOqM6RpmttuunsP9bczLMoc8nfgQ== X-Received: by 2002:a2e:5418:: with SMTP id i24mr1401234ljb.126.1567675962839; Thu, 05 Sep 2019 02:32:42 -0700 (PDT) Received: from localhost.localdomain (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.googlemail.com with ESMTPSA id b25sm363060lfa.90.2019.09.05.02.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2019 02:32:42 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org Cc: Andrzej Ostruszka Date: Thu, 5 Sep 2019 11:32:32 +0200 Message-Id: <20190905093239.27187-4-amo@semihalf.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190905093239.27187-1-amo@semihalf.com> References: <20190905093239.27187-1-amo@semihalf.com> Subject: [dpdk-dev] [PATCH 03/10] app/eventdev: fix maybe-uninitialized warnings for LTO build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" During LTO build compiler reports some 'false positive' warnings about variables being possibly used uninitialized. This patch silences these warnings. Signed-off-by: Andrzej Ostruszka --- app/test-eventdev/test_perf_common.c | 2 +- app/test-eventdev/test_pipeline_common.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index aa925a7ef..a974685cb 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -439,7 +439,7 @@ perf_event_timer_adapter_setup(struct test_perf *t) if (!(adapter_info.caps & RTE_EVENT_TIMER_ADAPTER_CAP_INTERNAL_PORT)) { - uint32_t service_id; + uint32_t service_id = -1U; rte_event_timer_adapter_service_id_get(wl, &service_id); diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c index 16c49b860..813d0cf44 100644 --- a/app/test-eventdev/test_pipeline_common.c +++ b/app/test-eventdev/test_pipeline_common.c @@ -306,7 +306,7 @@ pipeline_event_rx_adapter_setup(struct evt_options *opt, uint8_t stride, } if (!(cap & RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT)) { - uint32_t service_id; + uint32_t service_id = -1U; rte_event_eth_rx_adapter_service_id_get(prod, &service_id); @@ -358,7 +358,7 @@ pipeline_event_tx_adapter_setup(struct evt_options *opt, } if (!(cap & RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT)) { - uint32_t service_id; + uint32_t service_id = -1U; rte_event_eth_tx_adapter_service_id_get(consm, &service_id);