Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/vsec: Address static checker issue

The callback structure should be static.

Add static attribute.

Fixes: 0c45e76fcc62 ("drm/xe/vsec: Support BMG devices")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412050418.8ecQxYXj-lkp@intel.com/
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241205183649.3120032-1-michael.j.ruhl@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

authored by

Michael J. Ruhl and committed by
Rodrigo Vivi
5cc1ccb6 919c2b58

+1 -1
+1 -1
drivers/gpu/drm/xe/xe_vsec.c
··· 180 180 return count; 181 181 } 182 182 183 - struct pmt_callbacks xe_pmt_cb = { 183 + static struct pmt_callbacks xe_pmt_cb = { 184 184 .read_telem = xe_pmt_telem_read, 185 185 }; 186 186