From 46851a50c6e0d800c422af8696417b30d221da94 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Mon, 25 Jul 2016 18:43:42 +0200 Subject: [PATCH] Quote the correct enum values for the flags --- mm/linux-mm-1.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mm/linux-mm-1.md b/mm/linux-mm-1.md index 81ffa66..8c4ac85 100644 --- a/mm/linux-mm-1.md +++ b/mm/linux-mm-1.md @@ -55,9 +55,12 @@ struct memblock_region { `memblock_region` provides the base address and size of the memory region as well as a flags field which can have the following values: ```C -#define MEMBLOCK_ALLOC_ANYWHERE (~(phys_addr_t)0) -#define MEMBLOCK_ALLOC_ACCESSIBLE 0 -#define MEMBLOCK_HOTPLUG 0x1 +enum { + MEMBLOCK_NONE = 0x0, /* No special request */ + MEMBLOCK_HOTPLUG = 0x1, /* hotpluggable region */ + MEMBLOCK_MIRROR = 0x2, /* mirrored region */ + MEMBLOCK_NOMAP = 0x4, /* don't add to kernel direct mapping */ +}; ``` Also `memblock_region` provides an integer field - [numa](http://en.wikipedia.org/wiki/Non-uniform_memory_access) node selector, if the `CONFIG_HAVE_MEMBLOCK_NODE_MAP` configuration option is enabled.