drm: ttm: correct ttm_range_manager kernel-doc notation
Subsystems (3)
PATCH 1/1 drm: ttm: correct ttm_range_manager kernel-doc notation
Fix kernel-doc warnings in ttm_range_manager.c:
drivers/gpu/drm/ttm/ttm_range_manager.c:144: warning: expecting prototype for ttm_range_man_init(). Prototype was for ttm_range_man_init_nocheck() instead drivers/gpu/drm/ttm/ttm_range_manager.c:178: warning: expecting prototype for ttm_range_man_fini(). Prototype was for ttm_range_man_fini_nocheck() instead
Also fix subsequent warnings from scripts/kernel-doc.
--- drivers/gpu/drm/ttm/ttm_range_manager.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
drivers/gpu/drm/ttm/ttm_range_manager.c +7 -4
@@ -128,15 +128,17 @@ static const struct ttm_resource_manager };/** -* ttm_range_man_init +* ttm_range_man_init_nocheck - Initialise a generic range manager for the +* selected memory type. * * @bdev: ttm device * @type: memory manager type * @use_tt: if the memory manager uses tt * @p_size: size of area to be managed in pages. * -* Initialise a generic range manager for the selected memory type. * The range manager is installed for this device in the type slot. +* +* Return: %0 on success or a negative error code on failure */ int ttm_range_man_init_nocheck(struct ttm_device *bdev, unsigned type, bool use_tt,
@@ -166,12 +168,13 @@ int ttm_range_man_init_nocheck(struct ttEXPORT_SYMBOL (ttm_range_man_init_nocheck);/** -* ttm_range_man_fini +* ttm_range_man_fini_nocheck - Remove the generic range manager from a slot +* and tear it down. * * @bdev: ttm device * @type: memory manager type * -* Remove the generic range manager from a slot and tear it down. +* Return: %0 on success or a negative error code on failure */ int ttm_range_man_fini_nocheck (struct ttm_device *bdev,unsigned type)
Quoted 5 lines · Randy Dunlap
Fix kernel-doc warnings in
ttm_range_manager.c:
drivers/gpu/drm/ttm/ttm_range_manager.c:144: warning: expecting prototype forttm_range_man_init(). Prototype was forttm_range_man_init_nocheck()insteaddrivers/gpu/drm/ttm/ttm_range_manager.c:178: warning: expecting prototype forttm_range_man_fini(). Prototype was forttm_range_man_fini_nocheck()instead
Quoted 7 lines
Also fix subsequent warnings from
scripts/kernel-doc.Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Christian König <[email protected]>Cc Huang Rui <[email protected]>
Quoted 42 lines
--- drivers/gpu/drm/ttm/ttm_range_manager.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)drivers/gpu/drm/ttm/ttm_range_manager.c +7
-4@@ -128,15 +128,17 @@ static const struct ttm_resource_manager };/** -* ttm_range_man_init +* ttm_range_man_init_nocheck - Initialise a generic range manager for the +* selected memory type. * * @bdev: ttm device * @type: memory manager type * @use_tt: if the memory manager uses tt * @p_size: size of area to be managed in pages. * -* Initialise a generic range manager for the selected memory type. * The range manager is installed for this device in the type slot. +* +* Return: %0 on success or a negative error code on failure */ int ttm_range_man_init_nocheck(struct ttm_device *bdev, unsigned type, bool use_tt,@@ -166,12 +168,13 @@ int ttm_range_man_init_nocheck(struct ttEXPORT_SYMBOL (ttm_range_man_init_nocheck);/** -* ttm_range_man_fini +* ttm_range_man_fini_nocheck - Remove the generic range manager from a slot +* and tear it down. * * @bdev: ttm device * @type: memory manager type * -* Remove the generic range manager from a slot and tear it down. +* Return: %0 on success or a negative error code on failure */ int ttm_range_man_fini_nocheck (struct ttm_device *bdev,unsigned type)
Christian König
Reviewed-byAm 22.11.21 um 04:14 schrieb Huang Rui:
Quoted 6 lines · Randy Dunlap
Quoted 5 lines
Fix kernel-doc warnings in
ttm_range_manager.c:
drivers/gpu/drm/ttm/ttm_range_manager.c:144: warning: expecting prototype forttm_range_man_init(). Prototype was forttm_range_man_init_nocheck()insteaddrivers/gpu/drm/ttm/ttm_range_manager.c:178: warning: expecting prototype forttm_range_man_fini(). Prototype was forttm_range_man_fini_nocheck()instead
Quoted 8 lines
Quoted 7 lines
Also fix subsequent warnings from
scripts/kernel-doc.Signed-off-by Randy Dunlap <[email protected]>Reported-by kernel test robot <[email protected]>Cc Christian König <[email protected]>Cc Huang Rui <[email protected]>Reviewed-by Huang Rui <[email protected]>
Thanks for the help,
Christian.
Quoted 43 lines
Quoted 43 lines
--- drivers/gpu/drm/ttm/ttm_range_manager.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)drivers/gpu/drm/ttm/ttm_range_manager.c +7
-4@@ -128,15 +128,17 @@ static const struct ttm_resource_manager };/** -* ttm_range_man_init +* ttm_range_man_init_nocheck - Initialise a generic range manager for the +* selected memory type. * * @bdev: ttm device * @type: memory manager type * @use_tt: if the memory manager uses tt * @p_size: size of area to be managed in pages. * -* Initialise a generic range manager for the selected memory type. * The range manager is installed for this device in the type slot. +* +* Return: %0 on success or a negative error code on failure */ int ttm_range_man_init_nocheck(struct ttm_device *bdev, unsigned type, bool use_tt,@@ -166,12 +168,13 @@ int ttm_range_man_init_nocheck(struct ttEXPORT_SYMBOL (ttm_range_man_init_nocheck);/** -* ttm_range_man_fini +* ttm_range_man_fini_nocheck - Remove the generic range manager from a slot +* and tear it down. * * @bdev: ttm device * @type: memory manager type * -* Remove the generic range manager from a slot and tear it down. +* Return: %0 on success or a negative error code on failure */ int ttm_range_man_fini_nocheck (struct ttm_device *bdev,unsigned type)