2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
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_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 drm/i915/pxp: limit drm-errors or warning on firmware API failures 2023-04-05 09:19:32 -07:00
intel_pxp_cmd.c
intel_pxp_cmd.h
intel_pxp_debugfs.c drm/i915/pxp: Enable PXP with MTL-GSC-CS 2023-05-11 17:26:32 -07:00
intel_pxp_debugfs.h
intel_pxp_gsccs.c Merge tag 'drm-intel-gt-next-2023-10-19' of git://anongit.freedesktop.org/drm/drm-intel into drm-next 2023-10-20 16:15:25 +10:00
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 drm/i915/pxp: Clean up zero initializers 2023-10-17 19:42:46 +03:00
intel_pxp_huc.h
intel_pxp_irq.c drm/i915/pxp: Add drm_dbgs for critical PXP events. 2023-11-29 15:03:55 -08:00
intel_pxp_irq.h
intel_pxp_pm.c drm/i915/pxp/mtl: intel_pxp_init_hw needs runtime-pm inside pm-complete 2023-08-15 13:28:13 -07:00
intel_pxp_pm.h drm/i915/pxp/mtl: intel_pxp_init_hw needs runtime-pm inside pm-complete 2023-08-15 13:28:13 -07:00
intel_pxp_regs.h drm/i915/pxp: Add MTL hw-plumbing enabling for KCR operation 2023-05-11 17:26:25 -07:00
intel_pxp_session.c drm/i915/pxp: Add drm_dbgs for critical PXP events. 2023-11-29 15:03:55 -08:00
intel_pxp_session.h
intel_pxp_tee.c drm: move i915_pxp_tee_interface.h under include/drm/intel 2024-05-31 16:11:25 +03:00
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
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