All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
To: "Patil, Harish" <Harish.Patil@cavium.com>
Cc: "liang.j.ma@intel.com" <liang.j.ma@intel.com>,
	"peter.mccarthy@intel.com" <peter.mccarthy@intel.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: Compilation errors in drivers/event/opdl/
Date: Sat, 20 Jan 2018 14:26:52 +0530	[thread overview]
Message-ID: <20180120085651.GA17077@jerin> (raw)
In-Reply-To: <D6881123.1A3A3D%Harish.Patil@cavium.com>

-----Original Message-----
> Date: Sat, 20 Jan 2018 05:18:30 +0000
> From: "Patil, Harish" <Harish.Patil@cavium.com>
> To: "liang.j.ma@intel.com" <liang.j.ma@intel.com>,
>  "peter.mccarthy@intel.com" <peter.mccarthy@intel.com>
> CC: "dev@dpdk.org" <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
> 
> 
> 
> 
> 

  parent reply	other threads:[~2018-01-20  8:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-20  5:18 Compilation errors in drivers/event/opdl/ Patil, Harish
2018-01-20  8:44 ` Thomas Monjalon
2018-01-21 17:34   ` Stephen Hemminger
2018-01-21 17:49     ` Thomas Monjalon
2018-01-26 17:39       ` Adrien Mazarguil
2018-01-20  8:56 ` Jerin Jacob [this message]
2018-01-22 18:38   ` Patil, Harish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180120085651.GA17077@jerin \
    --to=jerin.jacob@caviumnetworks.com \
    --cc=Harish.Patil@cavium.com \
    --cc=dev@dpdk.org \
    --cc=liang.j.ma@intel.com \
    --cc=peter.mccarthy@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.