[PATCH] drm/panel: fix kernel-doc warning for devm_drm_panel_add()

Dongyang Jin posted 1 patch 3 days, 10 hours ago
drivers/gpu/drm/drm_panel.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] drm/panel: fix kernel-doc warning for devm_drm_panel_add()
Posted by Dongyang Jin 3 days, 10 hours ago
Use the correct kernel-doc notation for struct members to eliminate
kernel-doc warnings:

Warning: drivers/gpu/drm/drm_panel.c:119 function parameter 'dev'
 not described in 'devm_drm_panel_add'
Warning: drivers/gpu/drm/drm_panel.c:119 function parameter 'dev'
 not described in 'devm_drm_panel_add'

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605210648.RI4ufD66-lkp@intel.com/
Signed-off-by: Dongyang Jin <jindongyang@kylinos.cn>
---
 drivers/gpu/drm/drm_panel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
index 04f4a31ed27a..2c5649e433df 100644
--- a/drivers/gpu/drm/drm_panel.c
+++ b/drivers/gpu/drm/drm_panel.c
@@ -108,6 +108,7 @@ static void drm_panel_add_release(void *data)
 
 /**
  * devm_drm_panel_add - add a panel to the global registry using devres
+ * @dev: device to which the panel is attached
  * @panel: panel to add
  *
  * Add a panel to the global registry so that it can be looked
-- 
2.25.1
Re: [PATCH] drm/panel: fix kernel-doc warning for devm_drm_panel_add()
Posted by neil.armstrong@linaro.org 3 days, 7 hours ago
On 5/21/26 11:45, Dongyang Jin wrote:
> Use the correct kernel-doc notation for struct members to eliminate
> kernel-doc warnings:
> 
> Warning: drivers/gpu/drm/drm_panel.c:119 function parameter 'dev'
>   not described in 'devm_drm_panel_add'
> Warning: drivers/gpu/drm/drm_panel.c:119 function parameter 'dev'
>   not described in 'devm_drm_panel_add'
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202605210648.RI4ufD66-lkp@intel.com/
> Signed-off-by: Dongyang Jin <jindongyang@kylinos.cn>
> ---
>   drivers/gpu/drm/drm_panel.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c
> index 04f4a31ed27a..2c5649e433df 100644
> --- a/drivers/gpu/drm/drm_panel.c
> +++ b/drivers/gpu/drm/drm_panel.c
> @@ -108,6 +108,7 @@ static void drm_panel_add_release(void *data)
>   
>   /**
>    * devm_drm_panel_add - add a panel to the global registry using devres
> + * @dev: device to which the panel is attached
>    * @panel: panel to add
>    *
>    * Add a panel to the global registry so that it can be looked

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Thanks,
Neil