Skip to content

Commit d30b554

Browse files
ffainellitorvalds
authored andcommitted
include/linux/memblock.h: fix ordering of 'flags' argument in comments
for_each_free_mem_range() and for_each_free_mem_range_reverse() both accept a 'flags' argument, the comment surrounding the macro placed the 'flags' documentation at the very end, while 'flags' is in fact the 3rd argument to the macro, so let's preserve natural ordering here. Fixes: fc6daaf ("mm/memblock: add extra "flags" to memblock to allow selection of memory based on attribute") Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent d72ee91 commit d30b554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/memblock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn,
216216
* for_each_free_mem_range - iterate through free memblock areas
217217
* @i: u64 used as loop variable
218218
* @nid: node selector, %NUMA_NO_NODE for all nodes
219+
* @flags: pick from blocks based on memory attributes
219220
* @p_start: ptr to phys_addr_t for start address of the range, can be %NULL
220221
* @p_end: ptr to phys_addr_t for end address of the range, can be %NULL
221222
* @p_nid: ptr to int for nid of the range, can be %NULL
222-
* @flags: pick from blocks based on memory attributes
223223
*
224224
* Walks over free (memory && !reserved) areas of memblock. Available as
225225
* soon as memblock is initialized.
@@ -232,10 +232,10 @@ void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn,
232232
* for_each_free_mem_range_reverse - rev-iterate through free memblock areas
233233
* @i: u64 used as loop variable
234234
* @nid: node selector, %NUMA_NO_NODE for all nodes
235+
* @flags: pick from blocks based on memory attributes
235236
* @p_start: ptr to phys_addr_t for start address of the range, can be %NULL
236237
* @p_end: ptr to phys_addr_t for end address of the range, can be %NULL
237238
* @p_nid: ptr to int for nid of the range, can be %NULL
238-
* @flags: pick from blocks based on memory attributes
239239
*
240240
* Walks over free (memory && !reserved) areas of memblock in reverse
241241
* order. Available as soon as memblock is initialized.

0 commit comments

Comments
 (0)