Commit 9d6ecac0 authored by Alex Shi's avatar Alex Shi Committed by Linus Torvalds

lib/genalloc: add parameter description to fix doc compile warning

Commit 52fbf113 ("lib/genalloc.c: fix allocation of aligned buffer
from non-aligned chunk") added a new parameter 'start_addr' w/o
description for it. That causes some doc compile warning:

  lib/genalloc.c:649: warning: Function parameter or member 'start_addr' not described in 'gen_pool_first_fit'
  lib/genalloc.c:667: warning: Function parameter or member 'start_addr' not described in 'gen_pool_first_fit_align'
  lib/genalloc.c:694: warning: Function parameter or member 'start_addr' not described in 'gen_pool_fixed_alloc'
  lib/genalloc.c:729: warning: Function parameter or member 'start_addr' not described in 'gen_pool_first_fit_order_align'
  lib/genalloc.c:752: warning: Function parameter or member 'start_addr' not described in 'gen_pool_best_fit'

This fixes it by adding a parameter descriptions.

Link: https://lkml.kernel.org/r/20210405132021.131231-1-alexs@kernel.orgSigned-off-by: default avatarAlex Shi <alexs@kernel.org>
Cc: Alexey Skidanov <alexey.skidanov@intel.com>
Cc: Huang Shijie <sjhuang@iluvatar.ai>
Cc: Alex Shi <alexs@kernel.org>
Cc: Bhaskar Chowdhury <unixbhaskar@gmail.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent db65a867
...@@ -642,6 +642,7 @@ EXPORT_SYMBOL(gen_pool_set_algo); ...@@ -642,6 +642,7 @@ EXPORT_SYMBOL(gen_pool_set_algo);
* @nr: The number of zeroed bits we're looking for * @nr: The number of zeroed bits we're looking for
* @data: additional data - unused * @data: additional data - unused
* @pool: pool to find the fit region memory from * @pool: pool to find the fit region memory from
* @start_addr: not used in this function
*/ */
unsigned long gen_pool_first_fit(unsigned long *map, unsigned long size, unsigned long gen_pool_first_fit(unsigned long *map, unsigned long size,
unsigned long start, unsigned int nr, void *data, unsigned long start, unsigned int nr, void *data,
...@@ -660,6 +661,7 @@ EXPORT_SYMBOL(gen_pool_first_fit); ...@@ -660,6 +661,7 @@ EXPORT_SYMBOL(gen_pool_first_fit);
* @nr: The number of zeroed bits we're looking for * @nr: The number of zeroed bits we're looking for
* @data: data for alignment * @data: data for alignment
* @pool: pool to get order from * @pool: pool to get order from
* @start_addr: start addr of alloction chunk
*/ */
unsigned long gen_pool_first_fit_align(unsigned long *map, unsigned long size, unsigned long gen_pool_first_fit_align(unsigned long *map, unsigned long size,
unsigned long start, unsigned int nr, void *data, unsigned long start, unsigned int nr, void *data,
...@@ -687,6 +689,7 @@ EXPORT_SYMBOL(gen_pool_first_fit_align); ...@@ -687,6 +689,7 @@ EXPORT_SYMBOL(gen_pool_first_fit_align);
* @nr: The number of zeroed bits we're looking for * @nr: The number of zeroed bits we're looking for
* @data: data for alignment * @data: data for alignment
* @pool: pool to get order from * @pool: pool to get order from
* @start_addr: not used in this function
*/ */
unsigned long gen_pool_fixed_alloc(unsigned long *map, unsigned long size, unsigned long gen_pool_fixed_alloc(unsigned long *map, unsigned long size,
unsigned long start, unsigned int nr, void *data, unsigned long start, unsigned int nr, void *data,
...@@ -721,6 +724,7 @@ EXPORT_SYMBOL(gen_pool_fixed_alloc); ...@@ -721,6 +724,7 @@ EXPORT_SYMBOL(gen_pool_fixed_alloc);
* @nr: The number of zeroed bits we're looking for * @nr: The number of zeroed bits we're looking for
* @data: additional data - unused * @data: additional data - unused
* @pool: pool to find the fit region memory from * @pool: pool to find the fit region memory from
* @start_addr: not used in this function
*/ */
unsigned long gen_pool_first_fit_order_align(unsigned long *map, unsigned long gen_pool_first_fit_order_align(unsigned long *map,
unsigned long size, unsigned long start, unsigned long size, unsigned long start,
...@@ -742,6 +746,7 @@ EXPORT_SYMBOL(gen_pool_first_fit_order_align); ...@@ -742,6 +746,7 @@ EXPORT_SYMBOL(gen_pool_first_fit_order_align);
* @nr: The number of zeroed bits we're looking for * @nr: The number of zeroed bits we're looking for
* @data: additional data - unused * @data: additional data - unused
* @pool: pool to find the fit region memory from * @pool: pool to find the fit region memory from
* @start_addr: not used in this function
* *
* Iterate over the bitmap to find the smallest free region * Iterate over the bitmap to find the smallest free region
* which we can allocate the memory. * which we can allocate the memory.
......
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