Messages in this thread | | | Subject | Re: [PATCH] Doc; fix mtrr userspace programs to build cleanly | From | Xavier Bestel <> | Date | Wed, 05 Apr 2006 12:22:24 +0200 |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |