projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
919c2b5
)
drm/xe/vsec: Address static checker issue
author
Michael J. Ruhl
<michael.j.ruhl@intel.com>
Thu, 5 Dec 2024 18:36:49 +0000
(13:36 -0500)
committer
Rodrigo Vivi
<rodrigo.vivi@intel.com>
Thu, 5 Dec 2024 22:49:03 +0000
(17:49 -0500)
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>
drivers/gpu/drm/xe/xe_vsec.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/xe/xe_vsec.c
b/drivers/gpu/drm/xe/xe_vsec.c
index 17ebc3ffb573d120a472efe3868a37f96c923af8..edaec262ed0a5c7d3e759991d5b76ca7da742db3 100644
(file)
--- a/
drivers/gpu/drm/xe/xe_vsec.c
+++ b/
drivers/gpu/drm/xe/xe_vsec.c
@@
-180,7
+180,7
@@
static int xe_pmt_telem_read(struct pci_dev *pdev, u32 guid, u64 *data, loff_t u
return count;
}
-struct pmt_callbacks xe_pmt_cb = {
+st
atic st
ruct pmt_callbacks xe_pmt_cb = {
.read_telem = xe_pmt_telem_read,
};