diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2026-10-26 11:25:50 +0100 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-11-11 23:57:39 -0800 |
| commit | c1234293de147949bf9cf06e3ed59ad8766e29a0 (patch) | |
| tree | 69458384ad3856d3e247ddb108cbb73fe234e54d /rust/kernel/alloc/kvec/errors.rs | |
| parent | 557c7b4343781cae9725bf26122d29c26ea12f5d (diff) | |
drm: xe: select configfs
The original addition of configfs to xe missed a compile-time dependency,
which leads to a link failure when configfs is enabled as a loadable module:
ld.lld-21: error: undefined symbol: xe_configfs_get_survivability_mode
>>> referenced by xe_survivability_mode.c:224
>>> drivers/gpu/drm/xe/xe_survivability_mode.o:(xe_survivability_mode_is_requested) in archive vmlinux.a
A recent workaround added a 'IS_REACHABLE()' check around the calls into
configfs, which makes it link in this configuration, but this is generally
a bad idea because it makes the actual behavior inconsistent and confusing
to users that expect configfs to work if both xe and configfs are enabled.
Use 'select CONFIGFS_FS' instead, like every other configfs user does,
and remove the unnecessary stub functions. There is little practical
difference here as anyone using XE graphics is likely to have a complex
configuration that already selects configfs anyway, and the link error
or the IS_REACHABLE() would only manifest during randconfig testing.
Fixes: da475c094342 ("drm/xe: Fix build with DRM_XE=y and CONFIGFS_FS=m")
Fixes: 16280ded45fb ("drm/xe: Add configfs to enable survivability mode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20261026102603.2045493-1-arnd@kernel.org
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
(cherry picked from commit be73339dd9d70623b7dbc9c4e3b966824b771069)
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
