From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 98554A2EFC for ; Tue, 17 Sep 2019 09:58:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 96A611BFC6; Tue, 17 Sep 2019 09:58:09 +0200 (CEST) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id 630D21BFAB for ; Tue, 17 Sep 2019 09:58:00 +0200 (CEST) Received: by mail-lf1-f66.google.com with SMTP id c195so2067542lfg.9 for ; Tue, 17 Sep 2019 00:58:00 -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=suYL+g61S91+ez+WRDK5RAJrUEu0wqZlASipBrdcn/o=; b=hkLjb1dJdWd89+i5Us7jhbmz808HaUMSTPRpMeXqcSdhy2Eg97VHhzQRYHFaAs5mdl LTqdl6KdaywPcTQ/CpQFPM6XxM1D3rzYA+gCbVyZYojipZvvfPQF9n1Aknr46Hdk4QVd pKfDsPEbT7NtDo3+LcU7DDlqTfCB+cPj9WjVLjn93uHHRa1YfOUoULQEp7OmzNcC8pdX JbGQKsn8OW7i7L7HGEgyeFf5nWsJEJ8Pe0EKZEuapvEMcQyN75hLW3MCpegLfAefCxn1 LOx536lpEt3TEuIq+PXJ21EU9IJsjQYgJ81/TVZgd+ohF9+1SMBBwUYFgmvnFe17BBkF Z1oA== 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=suYL+g61S91+ez+WRDK5RAJrUEu0wqZlASipBrdcn/o=; b=Evwub7qDoXdBowrSiz4zLa22wb6MrWOzsfEIML5+Fwi+3oBG4GHEdCN8VSHAt6XdjR XDWANsAXiRuH3ygkEzRS/CJ5aBDYUPSwMiRRLY345dsmm78hfb/x6EE9D9tEsjoxD2yx zlycx/uZaTcApd02cGHe80mw66Od3zcmKvNPpmaabiANiZ6vmboKgkBI8rHb+ZCrIS9I rlOaLOxQVPCDDvognPNngpCJt3kjTCYdvU0ecN9UN4OvpzgUggGzpfGIBey994JU5dQi c8o/6QiasKizcm4ZGBYEABrCIRG+4qqpTQwjgIrcD40fLmfYv1gT7ab9VEFntgA+U8kN Ucwg== X-Gm-Message-State: APjAAAWKv87RxB7j2bAzf8lDrKVc63/zbkgkN+0hqitP/wSc0l9C25n9 jc1EHKRL+BKrGVyPCyUZG/16YzNkzsM= X-Google-Smtp-Source: APXvYqxvaccnoadBgD1Qe5JJr7ruG0eQI0AQlEEquMh2F7l58a7yyMvMK16e+tOfDEXXvf1v8HCPwQ== X-Received: by 2002:a19:c695:: with SMTP id w143mr1262192lff.162.1568707079934; Tue, 17 Sep 2019 00:57:59 -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 g1sm270659ljl.31.2019.09.17.00.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 00:57:59 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org, Pavan Nikhilesh , Jerin Jacob Cc: mattias.ronnblom@ericsson.com, stephen@networkplumber.org, Andrzej Ostruszka Date: Tue, 17 Sep 2019 09:57:48 +0200 Message-Id: <20190917075754.8310-5-amo@semihalf.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190917075754.8310-1-amo@semihalf.com> References: <20190917075754.8310-1-amo@semihalf.com> Subject: [dpdk-dev] [PATCH v2 04/10] event/octeontx2: 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 --- drivers/event/octeontx2/otx2_tim_worker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/octeontx2/otx2_tim_worker.h b/drivers/event/octeontx2/otx2_tim_worker.h index b193e2cab..50db6543c 100644 --- a/drivers/event/octeontx2/otx2_tim_worker.h +++ b/drivers/event/octeontx2/otx2_tim_worker.h @@ -337,7 +337,7 @@ tim_add_entry_brst(struct otx2_tim_ring * const tim_ring, const struct otx2_tim_ent *ents, const uint16_t nb_timers, const uint8_t flags) { - struct otx2_tim_ent *chunk; + struct otx2_tim_ent *chunk = NULL; struct otx2_tim_bkt *bkt; uint16_t chunk_remainder; uint16_t index = 0; -- 2.17.1