Skip to content

Commit

Permalink
memhp-add-hot-added-memory-ranges-to-memblock-before-allocate-node_da…
Browse files Browse the repository at this point in the history
…ta-for-a-node-checkpatch-fixes

WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line)
torvalds#16: 
|--> memblock_add_node(start, size, nid)    --------    Here, just too late.

WARNING: line over 80 characters
torvalds#54: FILE: mm/memory_hotplug.c:1252:
+	 * Add new range to memblock so that when hotadd_new_pgdat() is called to

WARNING: line over 80 characters
torvalds#56: FILE: mm/memory_hotplug.c:1254:
+	 * new range and calculate total pages correctly. The range will be remove

total: 0 errors, 3 warnings, 28 lines checked

./patches/memhp-add-hot-added-memory-ranges-to-memblock-before-allocate-node_data-for-a-node.patch has style problems, please review.

NOTE: If any of the 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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 authored and hnaz committed Aug 25, 2015
1 parent 9afdc42 commit 0a5344f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,10 +1249,10 @@ int __ref add_memory(int nid, u64 start, u64 size)
mem_hotplug_begin();

/*
* Add new range to memblock so that when hotadd_new_pgdat() is called to
* allocate new pgdat, get_pfn_range_for_nid() will be able to find this
* new range and calculate total pages correctly. The range will be remove
* at hot-remove time.
* Add new range to memblock so that when hotadd_new_pgdat() is called
* to allocate new pgdat, get_pfn_range_for_nid() will be able to find
* this new range and calculate total pages correctly. The range will
* be removed at hot-remove time.
*/
memblock_add_node(start, size, nid);

Expand Down

0 comments on commit 0a5344f

Please sign in to comment.