drm/i915/pxp: fix undefined reference to `intel_pxp_gsccs_is_ready_for_sessions'
[ Upstream commit 7e21ea8149a0e41c3666ee52cc063a6f797a7a2a ]
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 b484c1e225a6a582fc78c4d7af7b286408bb7d41)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
27a1efe21f
commit
c5a5de348c
@@ -25,6 +25,7 @@ int intel_pxp_gsccs_init(struct intel_pxp *pxp);
|
|||||||
|
|
||||||
int intel_pxp_gsccs_create_session(struct intel_pxp *pxp, int arb_session_id);
|
int intel_pxp_gsccs_create_session(struct intel_pxp *pxp, int arb_session_id);
|
||||||
void intel_pxp_gsccs_end_arb_fw_session(struct intel_pxp *pxp, u32 arb_session_id);
|
void intel_pxp_gsccs_end_arb_fw_session(struct intel_pxp *pxp, u32 arb_session_id);
|
||||||
|
bool intel_pxp_gsccs_is_ready_for_sessions(struct intel_pxp *pxp);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
static inline void intel_pxp_gsccs_fini(struct intel_pxp *pxp)
|
static inline void intel_pxp_gsccs_fini(struct intel_pxp *pxp)
|
||||||
@@ -36,8 +37,11 @@ static inline int intel_pxp_gsccs_init(struct intel_pxp *pxp)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool intel_pxp_gsccs_is_ready_for_sessions(struct intel_pxp *pxp)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool intel_pxp_gsccs_is_ready_for_sessions(struct intel_pxp *pxp);
|
|
||||||
|
|
||||||
#endif /*__INTEL_PXP_GSCCS_H__ */
|
#endif /*__INTEL_PXP_GSCCS_H__ */
|
||||||
|
Reference in New Issue
Block a user