diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-06-16 11:31:47 +0200 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2023-06-20 09:54:43 +0200 |
commit | d57ba095e4f170963ec420d6cd780aa19459bc65 (patch) | |
tree | 19fa4fef77ac3d3a28e89c6647ae104be03ceca1 /drivers/gpu/drm/i915/gem | |
parent | drm/i915/huc: Fix missing error code in intel_huc_init() (diff) | |
download | linux-d57ba095e4f170963ec420d6cd780aa19459bc65.tar.xz linux-d57ba095e4f170963ec420d6cd780aa19459bc65.zip |
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 <arnd@arndb.de>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230616093158.3568480-1-arnd@kernel.org
(cherry picked from commit 8084c63743a88472af0a34ba209eebf9caea1dae)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gem')
0 files changed, 0 insertions, 0 deletions