linux/drivers/gpu/drm/i915/pxp
Chen Linxuan 7e21ea8149 drm/i915/pxp: fix undefined reference to `intel_pxp_gsccs_is_ready_for_sessions'
On x86_64 with gcc version 13.3.0, I compile kernel with:

  make defconfig
  ./scripts/kconfig/merge_config.sh .config <(
    echo CONFIG_COMPILE_TEST=y
  )
  make KCFLAGS="-fno-inline-functions -fno-inline-small-functions -fno-inline-functions-called-once"

Then I get a linker error:

  ld: vmlinux.o: in function `pxp_fw_dependencies_completed':
  kintel_pxp.c:(.text+0x95728f): undefined reference to `intel_pxp_gsccs_is_ready_for_sessions'

This is caused by not having a intel_pxp_gsccs_is_ready_for_sessions()
header stub for CONFIG_DRM_I915_PXP=n. Add it.

Signed-off-by: Chen Linxuan <chenlinxuan@uniontech.com>
Fixes: 99afb7cc8c ("drm/i915/pxp: Add ARB session creation and cleanup")
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20250415090616.2649889-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
(cherry picked from commit b484c1e225)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2025-04-22 10:55:38 +03:00
..
intel_pxp.c drm/i915/pxp & drm/xe/pxp: Figure out pxp instance from the gem object 2025-03-03 12:16:04 +02:00
intel_pxp.h drm/i915/pxp & drm/xe/pxp: Figure out pxp instance from the gem object 2025-03-03 12:16:04 +02:00
intel_pxp_cmd.c
intel_pxp_cmd.h
intel_pxp_cmd_interface_42.h
intel_pxp_cmd_interface_43.h drm/i915/pxp: fix typos in i915/pxp files 2025-01-23 05:48:23 -05:00
intel_pxp_cmd_interface_cmn.h
intel_pxp_debugfs.c
intel_pxp_debugfs.h
intel_pxp_gsccs.c
intel_pxp_gsccs.h drm/i915/pxp: fix undefined reference to `intel_pxp_gsccs_is_ready_for_sessions' 2025-04-22 10:55:38 +03:00
intel_pxp_huc.c
intel_pxp_huc.h
intel_pxp_irq.c
intel_pxp_irq.h
intel_pxp_pm.c
intel_pxp_pm.h
intel_pxp_regs.h
intel_pxp_session.c
intel_pxp_session.h
intel_pxp_tee.c
intel_pxp_tee.h
intel_pxp_types.h drm/i915/pxp: fix typos in i915/pxp files 2025-01-23 05:48:23 -05:00