summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2014-01-10 12:41:07 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2014-01-10 12:41:07 +1100
commit6efa4da2fb1fae68e8e9a7f5c5bcbac98c25133e (patch)
tree9ff2e67e680c442b177101967a0aa2a9493e83bd /include
parentf0d6afc13fbcdae0e7df70f3cf62836227a65b0a (diff)
memblock-mem_hotplug-make-memblock-skip-hotpluggable-regions-if-needed-checkpatch-fixes
Cc: "H. Peter Anvin" <hpa@zytor.com> WARNING: line over 80 characters #83: FILE: include/linux/memblock.h:83: +static inline bool memblock_is_hotpluggable(struct memblock_region *m){ return false; } ERROR: space required before the open brace '{' #83: FILE: include/linux/memblock.h:83: +static inline bool memblock_is_hotpluggable(struct memblock_region *m){ return false; } total: 1 errors, 1 warnings, 67 lines checked ./patches/memblock-mem_hotplug-make-memblock-skip-hotpluggable-regions-if-needed.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Tang Chen <tangchen@cn.fujitsu.com> Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/memblock.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h
index bfc1dbad0414..2f52c8c492bd 100644
--- a/include/linux/memblock.h
+++ b/include/linux/memblock.h
@@ -80,8 +80,14 @@ static inline bool movable_node_is_enabled(void)
return movable_node_enabled;
}
#else
-static inline bool memblock_is_hotpluggable(struct memblock_region *m){ return false; }
-static inline bool movable_node_is_enabled(void) { return false; }
+static inline bool memblock_is_hotpluggable(struct memblock_region *m)
+{
+ return false;
+}
+static inline bool movable_node_is_enabled(void)
+{
+ return false;
+}
#endif
#ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP