From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stephen@networkplumber.org>
Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com
 [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id 9D5151AFEE
 for <dev@dpdk.org>; Tue, 17 Apr 2018 18:22:26 +0200 (CEST)
Received: by mail-pf0-f179.google.com with SMTP id j11so5840233pff.10
 for <dev@dpdk.org>; Tue, 17 Apr 2018 09:22:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=networkplumber-org.20150623.gappssmtp.com; s=20150623;
 h=date:from:to:cc:subject:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=VDHTFcDlYdnz5J1v8+JF9UD4IjscFbVJqc7Nt3tXZVU=;
 b=PUiret667lividba2NFZbZ8GET46fy/m2viAy5zEAGs9sQG2wpbqN1EF8HKihBOTbv
 KFnAsmUQWRSNmvGQEAhIMLKTfJAE8zy7SVqLUCaiyctZyit/PA1hEunghubl9lQk6AhD
 Ikbmbnv50QNxaEQTkh9aL7H1FSe0reY1pSJTvFojHkNLsnbocUIQ307QXJFwNO03rWQJ
 ZkTnGYbGnQ143MDuJRRvI6TAFN9LB52Nbwi91fSFLH06NiD340bOQrIdGAFh+BmT1AIs
 MdpOBzLBMluRCzq4glwP0SuY/MADrO2LMKoiEUpfJJ27sCKb0TltoGJcW5d9z8QH5x7w
 gtVA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=VDHTFcDlYdnz5J1v8+JF9UD4IjscFbVJqc7Nt3tXZVU=;
 b=oUzxUyWMh60ZWQzdum3nx7eyGyw5qrl4k7R+LGFVH/DqOpY1eX/65D0OjyUCcAEC6E
 IhPS1DjWO3HsEba5V0RlbwgtrZV1H1BOBefqBOGD4E3JLZ9VjS/x28Cpnromul3Osdn9
 r6mvCjLQuu0/0nb4avSu+E1+NC08X6WyBqffDH+kHW8vQRyC4//UcqqkBqckk3KxBu8q
 CiafWW1u9Oj8+3KKtWuTQPKsa4KpFQa8vPD5deKm4gb+fS3HbPeCDeTJTCw7rn1FctvH
 4HuooXZbswsuGVFAhSxFBgAw2XIKukD3CdLTRMZ2Mhl5xr0zf85zHh3OpNxc2rIih4Ab
 rKFQ==
X-Gm-Message-State: ALQs6tC040UcSWkeWZYJ0vcrd59eCyli/uCLsacKHHVfV/MHuCCZY+//
 2V0PYUMj++ojxSs9frqwCCG6Mg==
X-Google-Smtp-Source: AIpwx482ws+jsOxkEySHyL5duAOJkWcO5M90PrSsvm0xVxg1ptjm/wQR6+CbdU+hLjXgSJv/S5ZNdg==
X-Received: by 10.99.115.69 with SMTP id d5mr2265566pgn.289.1523982145805;
 Tue, 17 Apr 2018 09:22:25 -0700 (PDT)
Received: from xeon-e3 (204-195-71-95.wavecable.com. [204.195.71.95])
 by smtp.gmail.com with ESMTPSA id g64sm38762027pfd.75.2018.04.17.09.22.25
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 17 Apr 2018 09:22:25 -0700 (PDT)
Date: Tue, 17 Apr 2018 09:22:22 -0700
From: Stephen Hemminger <stephen@networkplumber.org>
To: Raslan Darawsheh <rasland@mellanox.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, Stephen Hemminger
 <sthemmin@microsoft.com>, Thomas Monjalon <thomasm@mellanox.com>
Message-ID: <20180417092222.158cb849@xeon-e3>
In-Reply-To: <AM4PR05MB168410834752C9C8661075E0C2B70@AM4PR05MB1684.eurprd05.prod.outlook.com>
References: <20180416232439.8018-1-sthemmin@microsoft.com>
 <DB7PR05MB4426AA62F409236670510004C3B70@DB7PR05MB4426.eurprd05.prod.outlook.com>
 <AM4PR05MB168410834752C9C8661075E0C2B70@AM4PR05MB1684.eurprd05.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Subject: Re: [dpdk-dev] [PATCH v2 0/4] Hyper-V Netvsc PMD
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2018 16:22:26 -0000

On Tue, 17 Apr 2018 09:02:45 +0000
Raslan Darawsheh <rasland@mellanox.com> wrote:

> Hi Stephan,
> 
> I've just tried to apply your patches on top of current master branch and I have the following two issues:
> 1- compilation is failing with the following error when compiling with RTE_TARGET=x86_64-native-linuxapp-gcc:
> /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_common.h:122:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
>  #define RTE_PTR_ADD(ptr, x) ((void*)((uintptr_t)(ptr) + (x)))
>                               ^
> /root/dpdk/buildtools/pmdinfogen/pmdinfogen.c:99:9: note: in expansion of macro 'RTE_PTR_ADD'
>   return RTE_PTR_ADD(info->hdr,
>          ^
> 2- compilation is also failing with the following errors when compiling with RTE_TARGET=i686-native-linuxapp-gcc
> CC linux/vmbus_uio.o
> /root/dpdk/drivers/bus/vmbus/linux/vmbus_bus.c: In function 'rte_vmbus_map_device':
> /root/dpdk/drivers/bus/vmbus/linux/vmbus_bus.c:194:39: error: passing argument 2 of 'eal_parse_sysfs_value' from incompatible pointer type [-Werror=incompatible-pointer-types]
>    if (eal_parse_sysfs_value(filename, &res->len) < 0) {
>                                        ^
> In file included from /root/dpdk/drivers/bus/vmbus/linux/vmbus_bus.c:22:0:
> /root/dpdk/lib/librte_eal/common/eal_filesystem.h:123:5: note: expected 'long unsigned int *' but argument is of type 'uint64_t * {aka long long unsigned int *}'
>  int eal_parse_sysfs_value(const char *filename, unsigned long *val);
> 
> 
> I noticed one additional new dependency which is uuid-dev  and I think you might be missing the documentation of that.
> 
> Kindest regards,
> Raslan Darawsheh

I rebased against dpdk.org master yesterday.

What version of Gcc? I don't see this on Gcc 7.3.0 and build on 64 bit.

Will update the documentation and fix a couple of typos.