diff options
author | Arnd Bergmann <[email protected]> | 2023-06-16 11:31:47 +0200 |
---|---|---|
committer | Tvrtko Ursulin <[email protected]> | 2023-06-19 10:11:02 +0100 |
commit | 8084c63743a88472af0a34ba209eebf9caea1dae (patch) | |
tree | a1228210ee303c04322daf38d659f8a59e2f65ca /lib/mpi/mpi-sub-ui.c | |
parent | ce432fd34cc6c7b7af06d1403ec0be19d1e518dc (diff) |
drm/i915: make i915_drm_client_fdinfo() reference conditional again
The function is only defined if CONFIG_PROC_FS is enabled:
ld.lld: error: undefined symbol: i915_drm_client_fdinfo
>>> referenced by i915_driver.c
>>> drivers/gpu/drm/i915/i915_driver.o:(i915_drm_driver) in archive vmlinux.a
Use the PTR_IF() helper to make the reference NULL otherwise.
Fixes: e894b724c316d ("drm/i915: Use the fdinfo helper")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]> # build-tested
Signed-off-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions