mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/amd/display: Export symbols for KUnit test modules
Add missing EXPORT_IF_KUNIT() calls for amdgpu_dm_psr_set_event, amdgpu_dm_ism_init, and amdgpu_dm_ism_fini so that the KUnit test modules can resolve these symbols when built as modules, i.e., CONFIG_DRM_AMD_DC_KUNIT_TEST=m. Fixes:34f2814899("drm/amd/display: Add KUnit tests for amdgpu_dm_psr_set_event") Fixes:a3142b13fe("drm/amd/display: Add more KUnit tests for amdgpu_dm_ism") Assisted-by: Copilot:Claude-Opus-4.6 Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
34f2814899
commit
bb3ab95ac7
|
|
@ -640,6 +640,7 @@ void amdgpu_dm_ism_init(struct amdgpu_dm_ism *ism,
|
|||
INIT_DELAYED_WORK(&ism->delayed_work, dm_ism_delayed_work_func);
|
||||
INIT_DELAYED_WORK(&ism->sso_delayed_work, dm_ism_sso_delayed_work_func);
|
||||
}
|
||||
EXPORT_IF_KUNIT(amdgpu_dm_ism_init);
|
||||
|
||||
|
||||
void amdgpu_dm_ism_fini(struct amdgpu_dm_ism *ism)
|
||||
|
|
@ -647,3 +648,4 @@ void amdgpu_dm_ism_fini(struct amdgpu_dm_ism *ism)
|
|||
cancel_delayed_work_sync(&ism->sso_delayed_work);
|
||||
cancel_delayed_work_sync(&ism->delayed_work);
|
||||
}
|
||||
EXPORT_IF_KUNIT(amdgpu_dm_ism_fini);
|
||||
|
|
|
|||
|
|
@ -194,3 +194,4 @@ bool amdgpu_dm_psr_set_event(struct amdgpu_display_manager *dm, struct dc_stream
|
|||
return mod_power_set_psr_event(dm->power_module, stream,
|
||||
set_event, event, wait_for_disable);
|
||||
}
|
||||
EXPORT_IF_KUNIT(amdgpu_dm_psr_set_event);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user