diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-07-28 15:28:21 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-05 12:56:32 +1000 |
commit | f0b37fad9a63217c39997b2d2b31f44e3d8be727 (patch) | |
tree | ac98bee1b6f0a3d3c4f7907ddcbc11e81fd8c882 /include/linux/memblock.h | |
parent | 25818f0f288cd5333ba5a90ad6dde3def4c4ff58 (diff) | |
download | talos-op-linux-f0b37fad9a63217c39997b2d2b31f44e3d8be727.tar.gz talos-op-linux-f0b37fad9a63217c39997b2d2b31f44e3d8be727.zip |
memblock: Protect memblock.h with CONFIG_HAVE_MEMBLOCK
This should make it easier to catch/debug incorrect use when
the CONFIG_ option isn't set.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/memblock.h')
-rw-r--r-- | include/linux/memblock.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index dfa64494ced1..c24b27849096 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -2,6 +2,7 @@ #define _LINUX_MEMBLOCK_H #ifdef __KERNEL__ +#ifdef CONFIG_HAVE_MEMBLOCK /* * Logical memory blocks. * @@ -148,6 +149,8 @@ static inline unsigned long memblock_region_pages(const struct memblock_region * region++) +#endif /* CONFIG_HAVE_MEMBLOCK */ + #endif /* __KERNEL__ */ #endif /* _LINUX_MEMBLOCK_H */ |