Commit dad7557e authored by Wanpeng Li's avatar Wanpeng Li Committed by Linus Torvalds

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: default avatarWanpeng Li <liwp@linux.vnet.ibm.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4fe7efdb
...@@ -540,9 +540,9 @@ int __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size) ...@@ -540,9 +540,9 @@ int __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size)
* __next_free_mem_range - next function for for_each_free_mem_range() * __next_free_mem_range - next function for for_each_free_mem_range()
* @idx: pointer to u64 loop variable * @idx: pointer to u64 loop variable
* @nid: nid: node selector, %MAX_NUMNODES for all nodes * @nid: nid: node selector, %MAX_NUMNODES for all nodes
* @p_start: ptr to phys_addr_t for start address of the range, can be %NULL * @out_start: ptr to phys_addr_t for start address of the range, can be %NULL
* @p_end: ptr to phys_addr_t for end address of the range, can be %NULL * @out_end: ptr to phys_addr_t for end address of the range, can be %NULL
* @p_nid: ptr to int for nid of the range, can be %NULL * @out_nid: ptr to int for nid of the range, can be %NULL
* *
* Find the first free area from *@idx which matches @nid, fill the out * Find the first free area from *@idx which matches @nid, fill the out
* parameters, and update *@idx for the next iteration. The lower 32bit of * 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, ...@@ -616,9 +616,9 @@ void __init_memblock __next_free_mem_range(u64 *idx, int nid,
* __next_free_mem_range_rev - next function for for_each_free_mem_range_reverse() * __next_free_mem_range_rev - next function for for_each_free_mem_range_reverse()
* @idx: pointer to u64 loop variable * @idx: pointer to u64 loop variable
* @nid: nid: node selector, %MAX_NUMNODES for all nodes * @nid: nid: node selector, %MAX_NUMNODES for all nodes
* @p_start: ptr to phys_addr_t for start address of the range, can be %NULL * @out_start: ptr to phys_addr_t for start address of the range, can be %NULL
* @p_end: ptr to phys_addr_t for end address of the range, can be %NULL * @out_end: ptr to phys_addr_t for end address of the range, can be %NULL
* @p_nid: ptr to int for nid of the range, can be %NULL * @out_nid: ptr to int for nid of the range, can be %NULL
* *
* Reverse of __next_free_mem_range(). * Reverse of __next_free_mem_range().
*/ */
......
...@@ -1234,7 +1234,7 @@ int mem_cgroup_inactive_file_is_low(struct lruvec *lruvec) ...@@ -1234,7 +1234,7 @@ int mem_cgroup_inactive_file_is_low(struct lruvec *lruvec)
/** /**
* mem_cgroup_margin - calculate chargeable space of a memory cgroup * mem_cgroup_margin - calculate chargeable space of a memory cgroup
* @mem: the memory cgroup * @memcg: the memory cgroup
* *
* Returns the maximum amount of memory @mem can be charged with, in * Returns the maximum amount of memory @mem can be charged with, in
* pages. * pages.
...@@ -1508,7 +1508,7 @@ static unsigned long mem_cgroup_reclaim(struct mem_cgroup *memcg, ...@@ -1508,7 +1508,7 @@ static unsigned long mem_cgroup_reclaim(struct mem_cgroup *memcg,
/** /**
* test_mem_cgroup_node_reclaimable * test_mem_cgroup_node_reclaimable
* @mem: the target memcg * @memcg: the target memcg
* @nid: the node ID to be checked. * @nid: the node ID to be checked.
* @noswap : specify true here if the user wants flle only information. * @noswap : specify true here if the user wants flle only information.
* *
......
...@@ -365,7 +365,7 @@ static struct task_struct *select_bad_process(unsigned int *ppoints, ...@@ -365,7 +365,7 @@ static struct task_struct *select_bad_process(unsigned int *ppoints,
/** /**
* dump_tasks - dump current memory state of all system tasks * dump_tasks - dump current memory state of all system tasks
* @mem: current's memory controller, if constrained * @memcg: current's memory controller, if constrained
* @nodemask: nodemask passed to page allocator for mempolicy ooms * @nodemask: nodemask passed to page allocator for mempolicy ooms
* *
* Dumps the current memory state of all eligible tasks. Tasks not in the same * Dumps the current memory state of all eligible tasks. Tasks not in the same
......
...@@ -392,7 +392,7 @@ static struct swap_cgroup *lookup_swap_cgroup(swp_entry_t ent, ...@@ -392,7 +392,7 @@ static struct swap_cgroup *lookup_swap_cgroup(swp_entry_t ent,
/** /**
* swap_cgroup_cmpxchg - cmpxchg mem_cgroup's id for this swp_entry. * swap_cgroup_cmpxchg - cmpxchg mem_cgroup's id for this swp_entry.
* @end: swap entry to be cmpxchged * @ent: swap entry to be cmpxchged
* @old: old id * @old: old id
* @new: new id * @new: new id
* *
...@@ -422,7 +422,7 @@ unsigned short swap_cgroup_cmpxchg(swp_entry_t ent, ...@@ -422,7 +422,7 @@ unsigned short swap_cgroup_cmpxchg(swp_entry_t ent,
/** /**
* swap_cgroup_record - record mem_cgroup for this swp_entry. * swap_cgroup_record - record mem_cgroup for this swp_entry.
* @ent: swap entry to be recorded into * @ent: swap entry to be recorded into
* @mem: mem_cgroup to be recorded * @id: mem_cgroup to be recorded
* *
* Returns old value at success, 0 at failure. * Returns old value at success, 0 at failure.
* (Of course, old value can be 0.) * (Of course, old value can be 0.)
......
...@@ -162,7 +162,6 @@ static int walk_hugetlb_range(struct vm_area_struct *vma, ...@@ -162,7 +162,6 @@ static int walk_hugetlb_range(struct vm_area_struct *vma,
/** /**
* walk_page_range - walk a memory map's page tables with a callback * walk_page_range - walk a memory map's page tables with a callback
* @mm: memory map to walk
* @addr: starting address * @addr: starting address
* @end: ending address * @end: ending address
* @walk: set of callbacks to invoke for each level of the tree * @walk: set of callbacks to invoke for each level of the tree
......
...@@ -360,7 +360,6 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk, int off, int size) ...@@ -360,7 +360,6 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk, int off, int size)
* @chunk: chunk to depopulate * @chunk: chunk to depopulate
* @off: offset to the area to depopulate * @off: offset to the area to depopulate
* @size: size of the area to depopulate in bytes * @size: size of the area to depopulate in bytes
* @flush: whether to flush cache and tlb or not
* *
* For each cpu, depopulate and unmap pages [@page_start,@page_end) * For each cpu, depopulate and unmap pages [@page_start,@page_end)
* from @chunk. If @flush is true, vcache is flushed before unmapping * from @chunk. If @flush is true, vcache is flushed before unmapping
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment