From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 5C7876942 for ; Tue, 3 Mar 2015 16:24:35 +0100 (CET) Received: by widem10 with SMTP id em10so23560856wid.5 for ; Tue, 03 Mar 2015 07:24:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=s2TlO9C9aMzm1qM/XziyGKBjz/Mum79e7o/EJGLxTtM=; b=aTmqsaIafos/g8/5Ja255pqRbuBidEZ54TaWlurE6CxmTrbR/nZpQOJQ1BT1TdAZ2D 6fGLZJSh+A1RXoNSkZK+5m2wea8GcECOPTaCyJDuZ91/RnKVRMOEM468mufqYu3mzvhX umuuFlH3Fu03RISbBVTVv/terW+ZjQAAKhJFhH9CckOIT7CpWZbTN53m4qC3L3D2xBo7 SqRNmAa+ax84Ic8GKKfEkszoKR3B7PbvzgSMArm4f36gs5y4frGP18qV6HNpnHbku3zS 7KhYYPDrqK3O7l3OZCzDaJQLUQG/vAyYuqsMW6fplFUxCUpAbrDo0xHUwVnPjGKfAu0p YWLg== X-Gm-Message-State: ALoCoQkUtlPBTLp1U+8Tm6beiEWqMtKgZT0NcFVuHsr9QwErPAR8DdG5MCrrWQGrB1nkXX6sbT6/ X-Received: by 10.180.101.168 with SMTP id fh8mr3928319wib.74.1425396275237; Tue, 03 Mar 2015 07:24:35 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id gf11sm2889236wic.18.2015.03.03.07.24.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Mar 2015 07:24:34 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 3 Mar 2015 16:23:47 +0100 Message-Id: <1425396230-13379-5-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1425396230-13379-1-git-send-email-thomas.monjalon@6wind.com> References: <1425396230-13379-1-git-send-email-thomas.monjalon@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 4/7] virtio: fix build with debug enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 15:24:35 -0000 With CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_INIT=y: error: ‘devname’ undeclared (first use in this function) Fixes: da978dfdc43b ("virtio: use port IO to get PCI resource") Signed-off-by: Thomas Monjalon --- lib/librte_pmd_virtio/virtio_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c index 4bad1e4..d239083 100644 --- a/lib/librte_pmd_virtio/virtio_ethdev.c +++ b/lib/librte_pmd_virtio/virtio_ethdev.c @@ -971,7 +971,7 @@ static int virtio_resource_init_by_uio(struct rte_pci_device *pci_dev) pci_dev->intr_handle.fd = open(dirname, O_RDWR); if (pci_dev->intr_handle.fd < 0) { PMD_INIT_LOG(ERR, "Cannot open %s: %s\n", - devname, strerror(errno)); + dirname, strerror(errno)); return -1; } -- 2.2.2