Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11d35db

Browse files
Perry YuanAlexandru Tudor
Perry Yuan
authored and
Alexandru Tudor
committed
drm/amdkcl: fix suballoc helper availability for distro kernels
Some distribution kernels include drm/drm_suballoc.h header but haveCONFIG_DRM_SUBALLOC_HELPER disabled. This causes build failures as thesuballoc symbols are unavailable from the main DRM subsystem.Move the #endif directive for HAVE_DRM_DRM_SUBALLOC_H to properly exposeKCL suballoc fallback implementations when the main DRM suballoc helperis not available. This ensures amdgpu can use kcl_drm_suballoc functionsas fallback and resolves DKMS build failures on such configurations.Signed-off-by: Perry Yuan <perry.yuan@amd.com>Reviewed-by: Bob Zhou <Bob.Zhou@amd.com>(cherry picked from commit f72c0179d8407660cdbfb3af96723d1b477d09ed)Change-Id: I67fd4b4ba50674791d1e07dd7fc1a900886af253
1 parent6ff5abe commit11d35db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎include/kcl/kcl_drm_suballoc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ struct drm_suballoc {
5151
size_teoffset;
5252
structdma_fence*fence;
5353
};
54+
#endif/*HAVE_DRM_DRM_SUBALLOC_H*/
5455

5556
#ifndefHAVE_DRM_SUBALLOC_MANAGER_INIT
5657
voidkcl_drm_suballoc_manager_init(structdrm_suballoc_manager*sa_manager,
@@ -119,6 +120,5 @@ kcl_drm_suballoc_dump_debug_info(struct drm_suballoc_manager *sa_manager,
119120
#definedrm_suballoc_dump_debug_info kcl_drm_suballoc_dump_debug_info
120121
#endif/* HAVE_DRM_SUBALLOC_MANAGER_INIT */
121122

122-
#endif/*HAVE_DRM_DRM_SUBALLOC_H*/
123123

124124
#endif/* _KCL_DRM_SUBALLOC_H_ */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp