From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 7DE891B270 for ; Mon, 30 Oct 2017 16:37:48 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id r196so17330085wmf.2 for ; Mon, 30 Oct 2017 08:37:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NMYTq4f9YzoRrfw9CbDcPuCYzwNi9Qnc+qoU4+9NCac=; b=Xgu5x+y5UAv/4VgpdfVgCugfC95p5nYJ4paVCRfyYIpihl4Tv9yCi1oYIdXT4PR78l OtPH5vozIbe5xIG8wphDm9rn5xf9CUSrMWgJEeREJQgQzBmlkr17iie/nf1nLitAprH5 NsUVuTKjDs/CP10GfSn4UN+Yyvbu9KMbeiD1nqg9BiiDZnGL8ANv46mVF3NvdL3/n6L5 SoTPI0PAfHm65n0Jj7uMqf+o5vgwnNKUm+ZTGT9InWcuwopfK95gmoa23hoDqUYXynyl zfEnu4j1SSyLds23jP4N54ZGVJZrOnvSdDeAMUUInNsK5Frs7It72Ho6eRrAB+gNUNnr F3nA== 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:mime-version:content-transfer-encoding; bh=NMYTq4f9YzoRrfw9CbDcPuCYzwNi9Qnc+qoU4+9NCac=; b=lP9VubnOFDOObD6/B8CNaBenCzUUbP4qwKvaDBCWIlC2U4raD+9BCW61KJyAcNYwxF JpQe5KGSkUBFFdMVPPn8grtneMSEoqFp6eGjkm++4g/rFu8JN6okCYDsWyf8h/l+fxfD iqvJTZHranTYE0I+G1OHxOR6hkKpxITLeuta3+dpA1eGP4HfKsYStNvk2+TZpQWCL02K 8pLp4LuwlUMTdQGzKfqvpx9lejG+dMs686MGyn5It3NTlZl26k6swGO0T/9VJcAHXG7M b/GZxZxmzj+mFtY7x3MWYRDGe2rsbsbRIaQEj/gfTHFfc4RJ6ns2WPaO0wp5on3voP7J /vVQ== X-Gm-Message-State: AMCzsaVxyTyy5yarEOsAvXaPCuisddyvwSzjwvQHP4ta7sTXO2RlnSSS BmRJ615H8wVkGJYFn2VFhf4= X-Google-Smtp-Source: ABhQp+SZUibqYqmthaWhRtTqdnxCeHpcvOvNX/9vNDSd2K+A5TG/K9dNqcYKcBRv/89j9oga6p1aYQ== X-Received: by 10.28.111.203 with SMTP id c72mr4565542wmi.42.1509377867841; Mon, 30 Oct 2017 08:37:47 -0700 (PDT) Received: from localhost ([2a00:23c5:bef3:400:4a51:b7ff:fe0b:4749]) by smtp.gmail.com with ESMTPSA id v76sm5247449wmd.35.2017.10.30.08.37.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Oct 2017 08:37:47 -0700 (PDT) From: luca.boccassi@gmail.com To: Olivier Matz Cc: dpdk stable Date: Mon, 30 Oct 2017 15:34:40 +0000 Message-Id: <20171030153511.13322-37-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171030153511.13322-1-luca.boccassi@gmail.com> References: <20171030153511.13322-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'uio: fix compilation with -Og' has been queued to LTS release 16.11.4 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 15:37:48 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/01/17. So please shout if anyone has objections. Thanks. Kind regards, Luca Boccassi --- >>From fc95cbe18bcbbadd2e581fb49610659e06704b27 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Mon, 11 Sep 2017 17:13:28 +0200 Subject: [PATCH] uio: fix compilation with -Og MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 84585f330fc3d5296d9b660bb639ebc8c7bf2aff ] The compilation with gcc-6.3.0 and EXTRA_CFLAGS=-Og gives the following error: CC eal_pci_uio.o eal_pci_uio.c: In function ‘pci_get_uio_de ’: eal_pci_uio.c:221:9: error: ‘uio_num’ may be used uninitialized in this function [-Werror=maybe-uninitialized] return uio_num; ^~~~~~~ This is a false positive: gcc is not able to see that when e != NULL, uio_num is always set. Fix the warning by initializing uio_num to -1, and by the way, change the type to int. Signed-off-by: Olivier Matz --- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c index aac05d7aa..42280678f 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c @@ -154,7 +154,7 @@ pci_get_uio_dev(struct rte_pci_device *dev, char *dstbuf, unsigned int buflen, int create) { struct rte_pci_addr *loc = &dev->addr; - unsigned int uio_num; + int uio_num = -1; struct dirent *e; DIR *dir; char dirname[PATH_MAX]; -- 2.11.0