All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH 2/2] x86/MTRR: optionally print boot time state
Date: Mon, 17 Mar 2014 15:29:19 +0000	[thread overview]
Message-ID: <532714CF.60305@linaro.org> (raw)
In-Reply-To: <531DAB2E020000780012250B@nat28.tlf.novell.com>

Hi Jan,

On 03/10/2014 11:08 AM, Jan Beulich wrote:
> +static bool_t __initdata mtrr_show;
> +boolean_param("mtrr.show", mtrr_show);
> +
> +static const char *__init mtrr_attrib_to_str(mtrr_type x)
> +{
> +	static const char __initconst strings[MTRR_NUM_TYPES][16] =
> +	{
> +		[0 ... MTRR_NUM_TYPES - 1] = "?",
> +		[MTRR_TYPE_UNCACHABLE]     = "uncachable",
> +		[MTRR_TYPE_WRCOMB]         = "write-combining",
> +		[MTRR_TYPE_WRTHROUGH]      = "write-through",
> +		[MTRR_TYPE_WRPROT]         = "write-protect",
> +		[MTRR_TYPE_WRBACK]         = "write-back",
> +	};

This patch is breaking compilation with clang 3.0:

generic.c:95:32: error: initializer overrides prior initialization of this subobject [-Werror,-Winitializer-overrides]
                [MTRR_TYPE_UNCACHABLE]     = "uncachable",
                                             ^~~~~~~~~~~~
generic.c:94:32: note: previous initialization is here
                [0 ... MTRR_NUM_TYPES - 1] = "?",
                                             ^~~

Do you mind if I send a patch to replace by something like:
	[2] = "?"
        [3] = "?"

Regards,

-- 
Julien Grall

  reply	other threads:[~2014-03-17 15:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-10 10:57 [PATCH 0/2] x86: further MTRR changes Jan Beulich
2014-03-10 11:07 ` [PATCH 1/2] x86/MTRR: consolidation Jan Beulich
2014-03-10 11:08 ` [PATCH 2/2] x86/MTRR: optionally print boot time state Jan Beulich
2014-03-17 15:29   ` Julien Grall [this message]
2014-03-17 15:36     ` Jan Beulich
2014-03-17 16:15       ` Julien Grall
2014-03-17 16:32         ` Jan Beulich
2014-03-10 13:26 ` [PATCH 0/2] x86: further MTRR changes Keir Fraser

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=532714CF.60305@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.