From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by dpdk.org (Postfix) with ESMTP id 7348247D2 for ; Tue, 4 Feb 2014 16:53:44 +0100 (CET) Received: by mail-we0-f182.google.com with SMTP id u57so4279001wes.41 for ; Tue, 04 Feb 2014 07:55:05 -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; bh=GDJjaS+OqlbKMLMLY3ffF9la4zMi5p5XT7a67RXUb5I=; b=g0AUWhR/31a7iVBbZQMm4TKG/6hhb3i0MNVIpiAt8s1kXqEb7h/smSV+BJBFkfleAJ Uy8nhUT9J07pnkpeu/9OzoQ2znHWR9d9wbRvtgQSRMQjXGJXfBp2La0kyR7EV6qVO56q tNMSAi2gNEA4bYpbwmoRCstL/fPCWaPGFGHHxc6mdMTT6iNV6a6nGiJOtnwnZhzy39/5 WeJh7ZsiobmztiMXvEDd40eSuPL415WGLeTLuvvdv9f7kRr0doq2n3ofZzAElo8xaphy aaTidjEzbmST0Rr3uNOYWUp0PU8FqYy/9PtRcaH2/VK93L23SXN+wVh53FFc/Dzp0dES suUw== X-Gm-Message-State: ALoCoQkIrl+J1a6C6NW4ozQck2JnmzBUakD47upfnUjH5pOktn9lNljsHPQZfSRNyWwaoeV2BQYA X-Received: by 10.180.91.164 with SMTP id cf4mr6535770wib.37.1391529305192; Tue, 04 Feb 2014 07:55:05 -0800 (PST) Received: from angus.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id q2sm53639203wjq.0.2014.02.04.07.55.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Feb 2014 07:55:04 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 4 Feb 2014 16:54:23 +0100 Message-Id: <1391529271-24606-9-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> References: <1391529271-24606-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [virtio-net-pmd PATCH 08/16] pmd: fix initialization of Tx queue header 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, 04 Feb 2014 15:53:44 -0000 A typo was found by gcc-4.8: virtio_user.c:744:15: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] sizeof(tq->tx_hdrs[sz - 1].header)); ^ Signed-off-by: Thomas Monjalon --- virtio_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtio_user.c b/virtio_user.c index 1074bd8..a5f81df 100644 --- a/virtio_user.c +++ b/virtio_user.c @@ -1,5 +1,5 @@ /* - * Copyright 2013 6WIND S.A. + * Copyright 2013-2014 6WIND S.A. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -741,7 +741,7 @@ virtio_alloc_txq(struct virtio_net_vring* tq, int sz) } /* Reserve a NULL header for NO OP on hypervisor side. */ memset(tq->tx_hdrs[sz - 1].header, 0, - sizeof(tq->tx_hdrs[sz - 1].header)); + sizeof(*tq->tx_hdrs[sz - 1].header)); return 0; } -- 1.7.10.4