From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E8EAA0C45 for ; Mon, 13 Sep 2021 18:55:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35AEE40151; Mon, 13 Sep 2021 18:55:38 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2069.outbound.protection.outlook.com [40.107.243.69]) by mails.dpdk.org (Postfix) with ESMTP id C625240151; Mon, 13 Sep 2021 18:55:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HfsUhA3qYuXobC1K3kBxibd64sfg7rFdx7nN2KM64At6BF+U0vghNrTDPM8wwuH54aEPK0SDW47iPIP4OKgAsCwrGoHohfk2CiCSodyEgpqtqSlpZgzF40q1j9AaSKcUfVoayq3nzF33USUJBxr9mYRAcLD2KBqIU2zSp83MbItB324KqXeydbUU1SZhhfk7YN5+3JEk9otx3TlpllTvDXVD7v22eY1uLgIE9/ioD29dVr7EDG+f9c7Uo5bXteoeYY7ZA+VjMvdZoaf/4BuBtXPNMrg5LUmS0KCggm5aGSFFL24rpMWewjTh6QpYTwbvJ7jddD6VfNOYvuvMUlZjbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bYglQ7MPemlXdtkAy/8jQefIwbZv94+OHW/KYlBGCGs=; b=iPj86myg+BOZdIKCCOjxg5bmuupv97NJVU1ZBXyXmBuhkMSqaV2WcCGGTUGhJFcSN26ZuxdukoNGEeJpENGQDKcAWmSSSs2LCJGIkfk/DUVgCou3fTGSbd+qbpkhRY03XwcidEq2RvWufa4AWohp+HiCB782Cd6peo88thREInfKOmi0X6sy8KwhPk2h6q+TwS/wzZ5amOSHuna1o2xHhPIUsEUc7nXUM/dfS7Eb/OyrYWFSqqNYfX+1sgKVSZRg84ceO/OO6b4xtGKidVylECayunJZfMRehozsZFYQ4mmnFJ4aUM6p3WliYoKImORYaHG5TT1a+/y1/v1lzBcoFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bYglQ7MPemlXdtkAy/8jQefIwbZv94+OHW/KYlBGCGs=; b=WI2E30B7n85yr9VVvYxlkZr5YMWjJQQuYgEAsZ//SbWn/Cgdm6vWS7P97uqCq2q952Z3nJOhpaUCipfb/wc5Gw3EZLkIjqq5cT4OVXR2jM3bSE/ijv9BWA14U1OP5/11lZYnWol+SlbSWFkTHO2u8NjFaPs4If3IaS4PQ4kNQj1uFtUTkte/SmUypSRxDxR7Ljjkbkdf4aa+RFmR5PdhoGIF7ttpGGXPUgq4Li8cHO8pMfoazk0RoBccfs5Fy7cbezxfMsTwuWvg/BJ9VsDxVUbeZTnDrRlYT03yABOXdjZSI17vKyFxU0IglkfwFR7FTFUdG2mytFgSTfTNN3DRLQ== Received: from MW3PR06CA0010.namprd06.prod.outlook.com (2603:10b6:303:2a::15) by DM5PR12MB1132.namprd12.prod.outlook.com (2603:10b6:3:79::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Mon, 13 Sep 2021 16:55:34 +0000 Received: from CO1NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:303:2a:cafe::5a) by MW3PR06CA0010.outlook.office365.com (2603:10b6:303:2a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17 via Frontend Transport; Mon, 13 Sep 2021 16:55:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT045.mail.protection.outlook.com (10.13.175.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4500.14 via Frontend Transport; Mon, 13 Sep 2021 16:55:34 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 13 Sep 2021 16:55:34 +0000 Received: from nvidia.com (172.20.187.6) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 13 Sep 2021 16:55:31 +0000 From: Tal Shnaiderman To: CC: , , , , , Date: Mon, 13 Sep 2021 19:55:00 +0300 Message-ID: <20210913165500.21636-1-talshn@nvidia.com> X-Mailer: git-send-email 2.16.1.windows.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d51da0c-b5f5-458b-b8f1-08d976d74df3 X-MS-TrafficTypeDiagnostic: DM5PR12MB1132: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OwbFKMo3ihM/B3QVInNY7zN0dJ+X/Dc2d/EikU8hwEHBaK+9dugHSiHiPYjpc2LU/L43YKOtedmIRsV60GEQCTEbCvqd1kTIZNqAdAff7jR4QvXj+JgPLcefUYE6plua8J5mW02mZEKgv0K0uT1ZkZz/zmM+HRjRIdQ3YrCieSMPrisK5wqhD7ift7NHFefLw09yy4DMHJx1s/qoGI0O0MUuJ94BiSbB2oGhHxyvzhiAETZCC0uR1X06p4CcjzQS/tKAB7RE2KJ6ymhH5BCZyMZI0n/5OO4uKKe4K91g13MdDpENdT3bBH2xW61nhHYKzcOEFISgw5rj2ldmP/SybgFDiOej3O2ZEHErV94f+ePKdWAr9zpiIXjbj8dMAexIODDnRPZJr2ee9vdETL6/dp2gfvR+ucOQRYs6DJYPVPMjFgEdUkcg17EtMARLhS9NunjaI72lhPhyLR8ONvqzVRcHhLNey24KdeNeJ0Gu5VMaEE78wBOeLj7CmtUjlyIjsZ9C+hckzuwMm89RtL5RUx3tTlOnPPHWaG29W2nVfGxO/fjs6WPwivyYLK7E4145zyfy4dJaNQaXa+LY0GzDRMrKjkk7Knal54wwgR/R8XtDlvINO7GmsygBlCvQlU8W6qqzxGewnr6yrVEyRsHzbWNOJRz7Fbvh80Wke4+67UZwKL08ekC7RHNn4alFdU6Fi/AvIqV4si7lB8UDkXQe1Q== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(346002)(396003)(376002)(39860400002)(36840700001)(46966006)(82310400003)(4326008)(2906002)(36860700001)(6916009)(36906005)(2616005)(316002)(426003)(6286002)(86362001)(55016002)(54906003)(83380400001)(6666004)(36756003)(1076003)(8936002)(5660300002)(356005)(26005)(47076005)(7636003)(336012)(7696005)(70206006)(186003)(16526019)(82740400003)(70586007)(478600001)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 16:55:34.6260 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d51da0c-b5f5-458b-b8f1-08d976d74df3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1132 Subject: [dpdk-stable] [PATCH] eal/windows: fix token pasting build warning X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" When building DPDK on Windows in debug mode the following warning appear: warning: token pasting of ',' and __VA_ARGS__ is a GNU extension [-Wgnu-zero-variadic-macro-arguments] #define open(path, flags, ...) _open(path, flags, ##__VA_ARGS__) Modified the 'open' macro to avoid it. Fixes: 45d62067c237 ("eal: make OS shims internal") Cc: stable@dpdk.org Signed-off-by: Tal Shnaiderman --- lib/eal/windows/include/rte_os_shim.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eal/windows/include/rte_os_shim.h b/lib/eal/windows/include/rte_os_shim.h index 33619745ab..eda8113662 100644 --- a/lib/eal/windows/include/rte_os_shim.h +++ b/lib/eal/windows/include/rte_os_shim.h @@ -25,7 +25,7 @@ #define strncasecmp(s1, s2, count) _strnicmp(s1, s2, count) #endif -#define open(path, flags, ...) _open(path, flags, ##__VA_ARGS__) +#define open(...) _open(__VA_ARGS__) #define read(fd, buf, n) _read(fd, buf, n) #define write(fd, buf, n) _write(fd, buf, n) #define close(fd) _close(fd) -- 2.16.1.windows.4