mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Xavier Bestel <xavier.bestel@free.fr>
To: "Randy.Dunlap" <rdunlap@xenotime.net>
Cc: lkml <linux-kernel@vger.kernel.org>,
	rgooch@atnf.csiro.au, akpm <akpm@osdl.org>
Subject: Re: [PATCH] Doc; fix mtrr userspace programs to build cleanly
Date: Wed, 05 Apr 2006 12:22:24 +0200	[thread overview]
Message-ID: <1144232544.2874.101.camel@capoeira> (raw)
In-Reply-To: <20060404201511.6859070a.rdunlap@xenotime.net>

Hi,

On Wed, 2006-04-05 at 05:15, Randy.Dunlap wrote:
> +static char *mtrr_strings[MTRR_NUM_TYPES] =
> +{
> +    "uncachable",               /* 0 */
> +    "write-combining",          /* 1 */
> +    "?",                        /* 2 */
> +    "?",                        /* 3 */
> +    "write-through",            /* 4 */
> +    "write-protect",            /* 5 */
> +    "write-back",               /* 6 */
> +};

How about something like that ?

+static char *mtrr_strings[MTRR_NUM_TYPES] =
+{
+    [MTRR_TYPE_UNCACHABLE] = "uncachable",               /* 0 */
+    [MTRR_TYPE_WRCOMB]     = "write-combining",          /* 1 */
+                             "?",                        /* 2 */
+                             "?",                        /* 3 */
+    [MTRR_TYPE_WRTHROUGH]  = "write-through",            /* 4 */
+    [MTRR_TYPE_WRPROT]     = "write-protect",            /* 5 */
+    [MTRR_TYPE_WRBACK]     = "write-back",               /* 6 */
+};

(Dunno if it's that helpful though).

	Xav



      reply	other threads:[~2006-04-05 10:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-05  3:15 Randy.Dunlap
2006-04-05 10:22 ` Xavier Bestel [this message]

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=1144232544.2874.101.camel@capoeira \
    --to=xavier.bestel@free.fr \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    --cc=rgooch@atnf.csiro.au \
    /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

all inboxes | Powered by JetHome®