lkml.org 
[lkml]   [2006]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Doc; fix mtrr userspace programs to build cleanly
From
Date
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/

\
 
 \ /
  Last update: 2006-04-05 12:25    [W:0.054 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site