diff options
| author | Lucas De Marchi <[email protected]> | 2025-07-22 19:52:08 +0000 |
|---|---|---|
| committer | Thomas Hellström <[email protected]> | 2025-07-24 19:06:52 +0000 |
| commit | 99e91521cef80d74e4fefed16a156848052b13df (patch) | |
| tree | 6bf4bf1ee50e5afb96e8a6fc3ebdc34e05fbe6bf /drivers/gpio/gpio-mpc5200.c | |
| parent | drm/xe/pf: Resend PF provisioning after GT reset (diff) | |
| download | kernel-99e91521cef80d74e4fefed16a156848052b13df.tar.gz kernel-99e91521cef80d74e4fefed16a156848052b13df.zip | |
drm/xe: Fix build without debugfs
When CONFIG_DEBUG_FS is off, drivers/gpu/drm/xe/xe_gt_debugfs.o
is not built and build fails on some setups with:
ld: drivers/gpu/drm/xe/xe_gt.o: in function `xe_fault_inject_gt_reset':
drivers/gpu/drm/xe/xe_gt.h:27:(.text+0x1659): undefined reference to `gt_reset_failure'
ld: drivers/gpu/drm/xe/xe_gt.h:27:(.text+0x1c16): undefined reference to `gt_reset_failure'
collect2: error: ld returned 1 exit status
Do not use the gt_reset_failure attribute if debugfs is not enabled.
Fixes: 8f3013e0b222 ("drm/xe: Introduce fault injection for gt reset")
Cc: Himal Prasad Ghimiray <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Reviewed-by: Himal Prasad Ghimiray <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
(cherry picked from commit 4d3bbe9dd28c0a4ca119e4b8823c5f5e9cb3ff90)
Signed-off-by: Thomas Hellström <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-mpc5200.c')
0 files changed, 0 insertions, 0 deletions
