[PATCH] drm/xe: make xe_pm_runtime_lockdep_map a static struct

Nilawar, Badal badal.nilawar at intel.com
Tue Apr 23 14:08:26 UTC 2024



On 23-04-2024 01:44, Rodrigo Vivi wrote:
> Fix the new sparse warning:
> 
>>> drivers/gpu/drm/xe/xe_pm.c:72:20: sparse: sparse: symbol
> 'xe_pm_runtime_lockdep_map' was not declared. Should it be static?
> 
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202404191329.EZzOTzwK-lkp@intel.com/
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar at intel.com>
> ---
>   drivers/gpu/drm/xe/xe_pm.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
> index 37fbeda12d3b..c1831106ea4b 100644
> --- a/drivers/gpu/drm/xe/xe_pm.c
> +++ b/drivers/gpu/drm/xe/xe_pm.c
> @@ -69,7 +69,7 @@
>    */
>   
>   #ifdef CONFIG_LOCKDEP
> -struct lockdep_map xe_pm_runtime_lockdep_map = {
> +static struct lockdep_map xe_pm_runtime_lockdep_map = {
>   	.name = "xe_pm_runtime_lockdep_map"
>   };
>   #endif


More information about the Intel-xe mailing list