DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Ed Czeck <ed.czeck@atomicrules.com>
Cc: dev@dpdk.org, thomas@monjalon.net, olivier.matz@6wind.com,
	reshma.pattan@intel.com
Subject: Re: [dpdk-dev] [PATCH] mbuf: Initialize all fields in struct rte_mbuf_sched
Date: Fri, 25 Jan 2019 09:34:25 +1300	[thread overview]
Message-ID: <20190125093425.78dc24bd@shemminger-XPS-13-9360> (raw)
In-Reply-To: <1548340597-18556-1-git-send-email-ed.czeck@atomicrules.com>

On Thu, 24 Jan 2019 09:36:37 -0500
Ed Czeck <ed.czeck@atomicrules.com> wrote:

> g++ reports "error: missing initializer for member"
> Fixes: 5d3f72100904 (mbuf: implement generic format for sched field)
> 
> Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
> ---
>  lib/librte_mbuf/rte_mbuf.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
> index d716294..a7f6702 100644
> --- a/lib/librte_mbuf/rte_mbuf.h
> +++ b/lib/librte_mbuf/rte_mbuf.h
> @@ -2464,6 +2464,7 @@ rte_mbuf_sched_set(struct rte_mbuf *m, uint32_t queue_id,
>  				.queue_id = queue_id,
>  				.traffic_class = traffic_class,
>  				.color = color,
> +				.reserved = 0,
>  			};
>  }
>  

This only happens because C++ is picker than C.

  reply	other threads:[~2019-01-24 20:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-24 14:36 Ed Czeck
2019-01-24 20:34 ` Stephen Hemminger [this message]
2019-01-27 23:38 ` Thomas Monjalon

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=20190125093425.78dc24bd@shemminger-XPS-13-9360 \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=ed.czeck@atomicrules.com \
    --cc=olivier.matz@6wind.com \
    --cc=reshma.pattan@intel.com \
    --cc=thomas@monjalon.net \
    /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).