From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0065.outbound.protection.outlook.com [104.47.42.65]) by dpdk.org (Postfix) with ESMTP id CEF341B1A7 for ; Sat, 20 Jan 2018 09:57:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1DT5LstnVnNs9O5HTzW4Yy68BlteFws1deGTP0wmj+Q=; b=lBioYQpS6kAWN+cj7ZALXziaumgxZztaY+KMUcMmn5kTlTPLbZ9ZaQPj1J0TnjAnqrh9BrCH8/BG75nSkc1oFC7CJtGTUrZ4C0zBwggJCgUMuJeulvb3xXI3ptnnDAjX53mIRxEng8w+iEDsN3O/HhGTXYNpFlDEPG17wblzfAU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.76.84.188) by SN2PR07MB2528.namprd07.prod.outlook.com (10.167.15.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Sat, 20 Jan 2018 08:57:17 +0000 Date: Sat, 20 Jan 2018 14:26:52 +0530 From: Jerin Jacob To: "Patil, Harish" Cc: "liang.j.ma@intel.com" , "peter.mccarthy@intel.com" , "dev@dpdk.org" Message-ID: <20180120085651.GA17077@jerin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [171.76.84.188] X-ClientProxiedBy: BMXPR01CA0040.INDPRD01.PROD.OUTLOOK.COM (10.174.214.26) To SN2PR07MB2528.namprd07.prod.outlook.com (10.167.15.6) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 984057d3-3976-4490-4914-08d55fe3d033 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:SN2PR07MB2528; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 3:OtidSDabkIVPBHB258Ll0jmXpvXhzHfOm65y7e23NnAjgjNYXuTx3oADLSLi6VhIALA/1yiq/B0n4bMUNMd7Yid17LQLAMWEgBSoBaeI8c1lrr8dH9jKlfJcc3l6CtxKk1cqoL+vUtGntQQ42jYRZbrjqaDV2xtVZlY96KZM+KH9pVOCBtqdfBQ2mpeD4v+CZETpyhzq/bO8kXtWB7OW+2U0t9mGYr9ILgwP5rwzf48AL7Jl4vit5kVtUjwVggu2; 25:Ws+BRe08mbUwTWJpPe6awPOKz91AwEaWcMcPRnRprZQ92uLPfFxSl7yeQa20+OBjIh3/BV6Mzi2ZyZDfJcoQilVXQJfkzK6Ea7JN1PR5+aCf0aNjrw6PrA4XWDzQ1kdxRsBsvSdarZVSoopby7QNRBA5dJttv1F0Z/pWvoqYkkLSp1O2KwOrXjQDOqOacpXekdACVGsQiD7FszaDkBZVzDRyrikeKEjQtjRSw8+a81ZaFiFdJ0QQuYDJbb+jM7UXYqlkhZo122/1fOoZQ14OhiRN2ggp2rtXMB0VnKl5x68nWc/RUqpCs2OyjWwKgdmmhMt6MVlw+fpDlZoDsyM0dw==; 31:G9Xllk5ZMBZys0QrZRHokE9UbAiXJ6aW5Z6Qbez1Sf2FiSKUx9K6U9G/ocdkkqanBtgJtqgv8+hgznb/EkU8VOMXOJ+vy3JGhYKN6ELZrMHnUfOR+Dh6uUY9GqPIjwuQUq+MPmnGqpxZCN7sPv9ABn0kmDGT6ddrh9HUPiz0EGCnO955pb2mGgcfvlWRB0oswNf5td0Ko/UPUBs1HYdJdy1HIDdtTX3LdR4wzkW5klc= X-MS-TrafficTypeDiagnostic: SN2PR07MB2528: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 20:kptyD/KXwvTsLqCsKRI3OKpBPzu2MuuK41n6FiDx5YbQGYzsxzzdDPrQiZR8bTPheDmWZ9rHcBuukHvUw8YplCFuSb45TphxANM5VPGNtUvQVPAutZa9hnCE7GmTzWb57vmWKbxxAfRZJrZN9l1mnLwfzgn5XKc8EwZtWOpB84FfXyE1r292aayL5NDtgIDsDy91maYI1R6ymQksFRlnysOgP9vK8sU3wTnOGWhEScSL51Gc9KtzXVD4+mriGz+wW++uNHLv7N1CiMPuDQvSsSPysmi9/Iar6vIn1MOMGWw4WP94Rw2OwULBCFRW8YkJx1ubbbug/xAGdo1jc0y3IWQtTU/z3hmlRB/X6tkA4ag8GrmbFwtFlfXwBo3VjlrjX2B10LoTrE32XM0+YXY1NwZKpMaz5QKyl/SiZAVhbtp+dBLUEZZNH4x2vT9IJeQx0E6VaJ/nDIjjNQ/NFctbr9OugnE5JWcD2d0gcuncEkK5LaPpysnULSdXVcnTHV1m4+52yRRMXBZc9iOwXfg7fXpCjQSeJPV1Rrb4fR5HX3IsNhFmKMBO6xQ+ek+Znj8viDeVCome+RBDTCfHRZuA//VY3XbvTLTNQrANRjjWU+Q= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(265313219721884)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(93006095)(3231023)(2400081)(944501161)(10201501046)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:SN2PR07MB2528; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN2PR07MB2528; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2528; 4:ARwNSgvUnhE7Q4VOOaB9Lvscsf9ZMd8F7kKY6nAvDbKRqsuLyEIBclva7zM4CMwtUsZ0Zq5Vh8ByV/lgam4EonYsKSsh2/sxl5Dh2GWjBeRRjWDTFifF1QsUlcQyEoJSSee2VQXPOnnyf9zoa5KKQNIYpvtR0uNCqWvh/3OspxQAsnlrT4QCR6bT5p/VY6ELqo8n5oG/mmhGFb5iV8Uzd6ExT6AnJe84+Itv7cYn591xikBJ1Cj2C1Z3kf2DXOOncFqjv9quZgRr0uv9hdRgqzsLddgmpOJEOS5JiTHt0L6wHMtBxrKA4GM4eLnAlCk87ztqvSdVjhulDYgbE6q2615fq9dIJmoCpMQQB5YLXIc= X-Forefront-PRVS: 0558D3C5AC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39380400002)(39860400002)(346002)(199004)(189003)(13464003)(97736004)(966005)(42882006)(6496006)(50466002)(478600001)(6116002)(3846002)(33656002)(5660300001)(52116002)(2950100002)(8676002)(25786009)(2906002)(6862004)(72206003)(76176011)(6666003)(33716001)(53936002)(4326008)(106356001)(81166006)(23756003)(1076002)(68736007)(54906003)(16526018)(386003)(47776003)(66066001)(8936002)(6246003)(6306002)(2870700001)(53366004)(9686003)(105586002)(83506002)(55016002)(59450400001)(81156014)(305945005)(26005)(58126008)(229853002)(53376002)(316002)(7736002)(33896004)(18370500001)(10090945008); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2528; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1; SN2PR07MB2528; 23:lDXEzfnRVWFPNF2Xio/aM8YQmq15VxGMPfxOaWu?= =?iso-8859-1?Q?YlKToSuKQESS6SbF6fGTDDy+Ksu+X1I2ESZhZLSZeRwaZ9Ai92/jooFerH?= =?iso-8859-1?Q?pL4DQ9HlY+m1gFnnfsECw+EwDth6Zss+kCAm/PpGxqIuRS2UzQr9P/OWtD?= =?iso-8859-1?Q?Ej87z9kHUIK0nq3B2g9u0YfQ6FV8n1sB8hFVXjHGp7riUc85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rt+RnzPNqrCwY=; 24:Ac9rs7+lfn5iRj3S4X5LmTYOr0+wqjDqmvtTxR59xN/tz8oANOJAF2qsYMapnrT5tyUL1tAut3Kufg25iUbj1ieKS0xwgWYFRdHcouvGYTE=; 7:SS/tO1JrfbPNH37aXONm+KQ/2m5g0N/qF4sfG3l9AKbT0UJU9Wh42Wjkxscnn8Q6Cr0Px+k6f9wEHw9Mup1pSskAuKCzlIST4r2s2M0UA1P99BXbJR48xffoBStnmbtIXq1mmXJS6C2Zb2aLFDRoIVJp5S2XwG1kRtulhfC4eBJ54YozWGiZKevU/ewkXNNLi7O7ORDwbJcIN1AmrOJ+dYiTY6W1WaoY8kCk+aFEAdu0lxg58gB/cra7J3uKAcbM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2018 08:57:17.9436 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 984057d3-3976-4490-4914-08d55fe3d033 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2528 Subject: Re: [dpdk-dev] Compilation errors in drivers/event/opdl/ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 08:57:23 -0000 -----Original Message----- > Date: Sat, 20 Jan 2018 05:18:30 +0000 > From: "Patil, Harish" > To: "liang.j.ma@intel.com" , > "peter.mccarthy@intel.com" > CC: "dev@dpdk.org" > Subject: [dpdk-dev] Compilation errors in drivers/event/opdl/ > > [This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing] > > Hi, > > I am seeing below compilation errors in drivers/event/opdl/, this is with > cloned latest DPDK (git clone http://dpdk.org/git/dpdk). > > .. > .. > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c: In function ‘opdl_xstats_get_names’: > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c:89:2: error: ‘for’ loop initial declarations are only allowed in > C99 mode > for (uint32_t j = 0; j < max_num_port_xstat; j++) { > ^ > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c:89:2: note: use option -std=c99 or -std=gnu99 to compile your code > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c: In function ‘opdl_xstats_get’: > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c:124:2: error: ‘for’ loop initial declarations are only allowed in > C99 mode > for (uint32_t i = 0; i < n; i++) { > ^ > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c: In function ‘opdl_xstats_get_by_name’: > /home2/hpatil/e4/jan19-inbox-submit/dpdk/drivers/event/opdl/opdl_evdev_xsta > ts.c:145:2: error: ‘for’ loop initial declarations are only allowed in > C99 mode > for (uint32_t i = 0; i < max_index; i++) { Tested with gcc(7.2 and 5.3) and clang(5.0.1) versions. Found no issues. Which compiler you are using? > .. > .. > ^ > > Thanks, > Harish > > > > >