DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Raslan Darawsheh <rasland@mellanox.com>
Cc: Slava Ovsiienko <viacheslavo@mellanox.com>,
	"dev@dpdk.org" <dev@dpdk.org>,
	"kirankumark@marvell.com" <kirankumark@marvell.com>
Subject: Re: [dpdk-dev] [PATCH] ethdev: fix compilation with gcc 4.8
Date: Wed, 23 Oct 2019 14:29:28 +0100	[thread overview]
Message-ID: <bcc3f38d-4291-42e2-06cf-d32a98d09524@intel.com> (raw)
In-Reply-To: <1571832859-12659-1-git-send-email-rasland@mellanox.com>

On 10/23/2019 1:14 PM, Raslan Darawsheh wrote:
> gcc 4.8 is considering bit filed as extention rather than
> c11 std with pedantic, which cause compilation failure.
> 
> This adds extention keyword exceplicitly to the struct
> to avoid compilation issue on gcc 4.8
> 
> Fixes: a7658a86 ("ethdev: add HIGIG2 key field to flow API")
> 
> Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
> ---
>  lib/librte_net/rte_higig.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/librte_net/rte_higig.h b/lib/librte_net/rte_higig.h
> index 44df666..b9cdfef 100644
> --- a/lib/librte_net/rte_higig.h
> +++ b/lib/librte_net/rte_higig.h
> @@ -103,7 +103,7 @@ struct rte_higig2_ppt_type0 {
>   *
>   * higig2 ppt type1 header.
>   */
> -RTE_STD_C11
> +__extension__
>  struct rte_higig2_ppt_type1 {
>  	uint16_t classification;
>  	uint16_t resv;
> 

Why other structs in this file with bit-field doesn't cause problem with gcc4.8,
is the problem only for "uint16_t" ?

  reply	other threads:[~2019-10-23 13:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 12:14 Raslan Darawsheh
2019-10-23 13:29 ` Ferruh Yigit [this message]
2019-10-23 15:00 ` Ferruh Yigit

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=bcc3f38d-4291-42e2-06cf-d32a98d09524@intel.com \
    --to=ferruh.yigit@intel.com \
    --cc=dev@dpdk.org \
    --cc=kirankumark@marvell.com \
    --cc=rasland@mellanox.com \
    --cc=viacheslavo@mellanox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).