From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f51.google.com (mail-pa0-f51.google.com [209.85.220.51]) by dpdk.org (Postfix) with ESMTP id F173858D7 for ; Fri, 13 Jun 2014 03:32:38 +0200 (CEST) Received: by mail-pa0-f51.google.com with SMTP id ey11so1557186pad.38 for ; Thu, 12 Jun 2014 18:32:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=Muu+HZOzmJcWYUeNkZ/1Cjy3IGgdp1Ia7U5NJZUDFz4=; b=JeGqhg3D4HIgzqUe+X2r2UrdU7MEvSTbzBmdk/L0nfiKAe6Ya6BcBhiY9H2Gv9Gzyr 7//uyyYCHkVgk0g0qkzLPVwa0HkDZLH+JYjbVSuPDfDy1oF+GGZp1X+YsBCx5lv1sAfo jZsO+lIf/gccKWAZZDI7gyZzAJSDQE6bTh44Pu2i2OenR0MXkTlsoYzP2iP1AAa+44r2 efjyq6QYGgX5sWMf13w5xB7k2RRqHbqCS9HlnXfiujlhTDyh3s0pJ1S23ao3Tzn7RyhM EU2HCXabgokBkw0fKwTqoeeKhUWiOEE1pyRAs/LiHQOStpS4DDFhcILcUxTP6p7yaJXe c3sg== X-Gm-Message-State: ALoCoQm9Bl8aL3uKQQ/E7ZsOw7ZrQikpLFGxKbE1hOi9nfuTpR/ktApUwuVEwueuN0ZtgLRjBPfq X-Received: by 10.67.4.169 with SMTP id cf9mr24790045pad.45.1402623173601; Thu, 12 Jun 2014 18:32:53 -0700 (PDT) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id no9sm393701pbc.83.2014.06.12.18.32.52 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 12 Jun 2014 18:32:53 -0700 (PDT) Date: Thu, 12 Jun 2014 18:32:50 -0700 From: Stephen Hemminger To: Stephen Hemminger Message-ID: <20140612183250.106f8d87@nehalam.linuxnetplumber.net> In-Reply-To: <20140612183045.19dfa1ef@nehalam.linuxnetplumber.net> References: <20140612183045.19dfa1ef@nehalam.linuxnetplumber.net> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH 2/2] 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: Fri, 13 Jun 2014 01:32:39 -0000 Remove useless message that breaks if VIRTIO_DEBUG_DRIVER is defined. virtio_ethdev.c:224:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] Signed-off-by: Stephen Hemminger --- a/lib/librte_pmd_virtio/virtio_ethdev.c 2014-06-10 15:30:23.440093214 -0700 +++ b/lib/librte_pmd_virtio/virtio_ethdev.c 2014-06-10 15:30:23.436093187 -0700 @@ -213,8 +213,6 @@ virtio_set_multiple_queues(struct rte_et ctrl.hdr.cmd = VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET; memcpy(ctrl.data, &nb_queues, sizeof(uint16_t)); - PMD_INIT_LOG(DEBUG, "ctrl.data=%d\n", *(int *)ctrl.data); - dlen[0] = sizeof(uint16_t); ret = virtio_send_command(hw->cvq, &ctrl, dlen, 1);