From patchwork Thu Sep 5 09:32:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Ostruszka X-Patchwork-Id: 58629 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 CC5351EF27; Thu, 5 Sep 2019 11:32:53 +0200 (CEST) Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by dpdk.org (Postfix) with ESMTP id 148D11EDD0 for ; Thu, 5 Sep 2019 11:32:44 +0200 (CEST) Received: by mail-lf1-f65.google.com with SMTP id u29so1407090lfk.7 for ; Thu, 05 Sep 2019 02:32:44 -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=Zp41z/O8N93QsO2iipWG+FzVAejLIAS3evu0C6kGzhlb2Bp9Gr46j7e1zf36aCNmJL s2SYXVCSJZPYMifMZAazkM3qIJjwI8JcWL25EjcKBJV4uHDFvjL1buUdr7TGjl3h3xjK y0JdA0/az6G6MncFEv8xn0nM/vNfrHtvtcFr/Z4PkR22TXny5A6jIbb8wCjmkZpz8ybl Fc4dDftm+mjv1JSW1w9mVGv2xddY4uXqT2QtizHrYl45dKsCNRVxaYn303o1bM6nI88Q tXdnMt/KMUyqiQNpOuILtLEy1YrCgmB6wc6E4sC8iHL/RvC+m4sCWOML8l4oafhtcRpA DPpA== 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=i9EuF5DrKJWdRnhoa2/oQKGCTXt5voov18pZlo9nySjpQwhwUMcF3FU+NgGfFuGY8T 0pLd03h6uUjctjD2jenOOSDlYYeTzmY5wxjA4jly9ZSr8Xwbry7SJLrPF372aikvrB7p KL5cP4nGZiETXbZHz8KOKcji5qU/x9qGKP+iQGJU75sYK1tIOwjp+kGwC9syKqRod52i mn4EjQGqs4J9iIzEOMORUZIY7Q0nxXNtjHX8XRR+2fOJaa3lK9LlbvfWx9BU0dJCrWe2 z1m8YGR7uObayPP4FHwkIxGg+8es3wsvzDCMe10z9thQa7FokBvIQm+qVC6FGcL5nuGZ 1BnQ== X-Gm-Message-State: APjAAAVC6qIPOIF3udDnAjJvTolS686h9DI75tNZ0+9obzWUl4cnWdYi yVCH5YqEYXVCnIWdzDPbZvnU8LC74oZ9Nw== X-Google-Smtp-Source: APXvYqyjaTiCCT5BuHpiTo9EnnJwA2j3Rl3V3azCWaq/GY7k6WNOs9XthayJLKVUf2g/oOrmjCnrBg== X-Received: by 2002:a19:c002:: with SMTP id q2mr1740436lff.62.1567675963577; Thu, 05 Sep 2019 02:32:43 -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:43 -0700 (PDT) From: Andrzej Ostruszka To: dev@dpdk.org Cc: Andrzej Ostruszka Date: Thu, 5 Sep 2019 11:32:33 +0200 Message-Id: <20190905093239.27187-5-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 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;