Skip to content

Commit 5cc1ccb

Browse files
mjruhlrodrigovivi
authored andcommitted
drm/xe/vsec: Address static checker issue
The callback structure should be static. Add static attribute. Fixes: 0c45e76 ("drm/xe/vsec: Support BMG devices") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Michael J. Ruhl <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 919c2b5 commit 5cc1ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_vsec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static int xe_pmt_telem_read(struct pci_dev *pdev, u32 guid, u64 *data, loff_t u
180180
return count;
181181
}
182182

183-
struct pmt_callbacks xe_pmt_cb = {
183+
static struct pmt_callbacks xe_pmt_cb = {
184184
.read_telem = xe_pmt_telem_read,
185185
};
186186

0 commit comments

Comments
 (0)