drm/xe: make xe_pm_runtime_lockdep_map a static struct
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 22 Apr 2024 20:14:54 +0000 (16:14 -0400)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 23 Apr 2024 14:43:22 +0000 (10:43 -0400)
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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404191329.EZzOTzwK-lkp@intel.com/
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240422201454.699089-1-rodrigo.vivi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pm.c

index 37fbeda12d3bdca6392798e52d3d634a13d40514..c1831106ea4b7e91aa79bd85b3e0e28565fc7bfd 100644 (file)
@@ -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