Skip to content

Commit dad7557

Browse files
Wanpeng Litorvalds
Wanpeng Li
authored andcommitted
mm: fix kernel-doc warnings
Fix kernel-doc warnings such as Warning(../mm/page_cgroup.c:432): No description found for parameter 'id' Warning(../mm/page_cgroup.c:432): Excess function parameter 'mem' description in 'swap_cgroup_record' Signed-off-by: Wanpeng Li <liwp@linux.vnet.ibm.com> Cc: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4fe7efd commit dad7557

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

mm/memblock.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ int __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size)
540540
* __next_free_mem_range - next function for for_each_free_mem_range()
541541
* @idx: pointer to u64 loop variable
542542
* @nid: nid: node selector, %MAX_NUMNODES for all nodes
543-
* @p_start: ptr to phys_addr_t for start address of the range, can be %NULL
544-
* @p_end: ptr to phys_addr_t for end address of the range, can be %NULL
545-
* @p_nid: ptr to int for nid of the range, can be %NULL
543+
* @out_start: ptr to phys_addr_t for start address of the range, can be %NULL
544+
* @out_end: ptr to phys_addr_t for end address of the range, can be %NULL
545+
* @out_nid: ptr to int for nid of the range, can be %NULL
546546
*
547547
* Find the first free area from *@idx which matches @nid, fill the out
548548
* parameters, and update *@idx for the next iteration. The lower 32bit of
@@ -616,9 +616,9 @@ void __init_memblock __next_free_mem_range(u64 *idx, int nid,
616616
* __next_free_mem_range_rev - next function for for_each_free_mem_range_reverse()
617617
* @idx: pointer to u64 loop variable
618618
* @nid: nid: node selector, %MAX_NUMNODES for all nodes
619-
* @p_start: ptr to phys_addr_t for start address of the range, can be %NULL
620-
* @p_end: ptr to phys_addr_t for end address of the range, can be %NULL
621-
* @p_nid: ptr to int for nid of the range, can be %NULL
619+
* @out_start: ptr to phys_addr_t for start address of the range, can be %NULL
620+
* @out_end: ptr to phys_addr_t for end address of the range, can be %NULL
621+
* @out_nid: ptr to int for nid of the range, can be %NULL
622622
*
623623
* Reverse of __next_free_mem_range().
624624
*/

mm/memcontrol.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ int mem_cgroup_inactive_file_is_low(struct lruvec *lruvec)
12341234

12351235
/**
12361236
* mem_cgroup_margin - calculate chargeable space of a memory cgroup
1237-
* @mem: the memory cgroup
1237+
* @memcg: the memory cgroup
12381238
*
12391239
* Returns the maximum amount of memory @mem can be charged with, in
12401240
* pages.
@@ -1508,7 +1508,7 @@ static unsigned long mem_cgroup_reclaim(struct mem_cgroup *memcg,
15081508

15091509
/**
15101510
* test_mem_cgroup_node_reclaimable
1511-
* @mem: the target memcg
1511+
* @memcg: the target memcg
15121512
* @nid: the node ID to be checked.
15131513
* @noswap : specify true here if the user wants flle only information.
15141514
*

mm/oom_kill.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ static struct task_struct *select_bad_process(unsigned int *ppoints,
365365

366366
/**
367367
* dump_tasks - dump current memory state of all system tasks
368-
* @mem: current's memory controller, if constrained
368+
* @memcg: current's memory controller, if constrained
369369
* @nodemask: nodemask passed to page allocator for mempolicy ooms
370370
*
371371
* Dumps the current memory state of all eligible tasks. Tasks not in the same

mm/page_cgroup.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static struct swap_cgroup *lookup_swap_cgroup(swp_entry_t ent,
392392

393393
/**
394394
* swap_cgroup_cmpxchg - cmpxchg mem_cgroup's id for this swp_entry.
395-
* @end: swap entry to be cmpxchged
395+
* @ent: swap entry to be cmpxchged
396396
* @old: old id
397397
* @new: new id
398398
*
@@ -422,7 +422,7 @@ unsigned short swap_cgroup_cmpxchg(swp_entry_t ent,
422422
/**
423423
* swap_cgroup_record - record mem_cgroup for this swp_entry.
424424
* @ent: swap entry to be recorded into
425-
* @mem: mem_cgroup to be recorded
425+
* @id: mem_cgroup to be recorded
426426
*
427427
* Returns old value at success, 0 at failure.
428428
* (Of course, old value can be 0.)

mm/pagewalk.c

-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ static int walk_hugetlb_range(struct vm_area_struct *vma,
162162

163163
/**
164164
* walk_page_range - walk a memory map's page tables with a callback
165-
* @mm: memory map to walk
166165
* @addr: starting address
167166
* @end: ending address
168167
* @walk: set of callbacks to invoke for each level of the tree

mm/percpu-vm.c

-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk, int off, int size)
360360
* @chunk: chunk to depopulate
361361
* @off: offset to the area to depopulate
362362
* @size: size of the area to depopulate in bytes
363-
* @flush: whether to flush cache and tlb or not
364363
*
365364
* For each cpu, depopulate and unmap pages [@page_start,@page_end)
366365
* from @chunk. If @flush is true, vcache is flushed before unmapping

0 commit comments

Comments
 (0)