]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Add configurable SPL namespace prefix
authorNavid Assadian <Navid.Assadian@amd.com>
Wed, 12 Nov 2025 19:35:12 +0000 (14:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:41 +0000 (13:56 -0500)
commit25888a46630875ea47024ee8d24614bf30f603a0
tree58eca50991e0ed74e975e4ff2fe88f55b8425cd7
parent0e7f7b3a20a8531463592086579f1db31b4a3483
drm/amd/display: Add configurable SPL namespace prefix

[WHY]
SPL is a shared library that is used both in kernel and userspace.
When multiple libraries use SPL as statically linked, namespace
collision occur.

[HOW]
Create a configurable namespace prefix.
Add the prefix to all the public functions of the library to
distinguish between the SPL functions in each library.

Reviewed-by: Samson Tam <samson.tam@amd.com>
Signed-off-by: Navid Assadian <Navid.Assadian@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
15 files changed:
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.h
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_filters.c
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_filters.h
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_isharp_filters.c
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_isharp_filters.h
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_scl_easf_filters.c
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_scl_easf_filters.h
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_scl_filters.c
drivers/gpu/drm/amd/display/dc/sspl/dc_spl_scl_filters.h
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.c
drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.h
drivers/gpu/drm/amd/display/dc/sspl/spl_fixpt31_32.c
drivers/gpu/drm/amd/display/dc/sspl/spl_fixpt31_32.h
drivers/gpu/drm/amd/display/dc/sspl/spl_os_types.h