summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorLouis Chauvet <louis.chauvet@bootlin.com>2025-04-15 15:55:36 +0200
committerLouis Chauvet <louis.chauvet@bootlin.com>2025-05-28 16:19:14 +0200
commit11d435b81e5dd2cc48daa2d3d71a19bcbc46e807 (patch)
tree53ab88ee088147e95b926bac81143c750f6e8ba2 /drivers/gpu
parentf776e5cef757927b038a9c07c0c68f34d35f7787 (diff)
downloadlinux-11d435b81e5dd2cc48daa2d3d71a19bcbc46e807.tar.gz
linux-11d435b81e5dd2cc48daa2d3d71a19bcbc46e807.zip
drm: Export symbols to use in tests
The functions drm_get_color_encoding_name and drm_get_color_range_name are useful for clarifying test results. Therefore, export them so they can be used in tests built as modules. Reviewed-by: José Expósito <jose.exposito89@gmail.com> Acked-by: Maxime Ripard <mripard@kernel.org> Link: https://lore.kernel.org/r/20250415-yuv-v18-5-f2918f71ec4b@bootlin.com Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/drm_color_mgmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_color_mgmt.c b/drivers/gpu/drm/drm_color_mgmt.c
index dd3e06605180..5399c111c51f 100644
--- a/drivers/gpu/drm/drm_color_mgmt.c
+++ b/drivers/gpu/drm/drm_color_mgmt.c
@@ -28,6 +28,7 @@
#include <drm/drm_device.h>
#include <drm/drm_drv.h>
#include <drm/drm_print.h>
+#include <kunit/visibility.h>
#include "drm_crtc_internal.h"
@@ -494,6 +495,7 @@ const char *drm_get_color_encoding_name(enum drm_color_encoding encoding)
return color_encoding_name[encoding];
}
+EXPORT_SYMBOL_IF_KUNIT(drm_get_color_encoding_name);
/**
* drm_get_color_range_name - return a string for color range
@@ -509,6 +511,7 @@ const char *drm_get_color_range_name(enum drm_color_range range)
return color_range_name[range];
}
+EXPORT_SYMBOL_IF_KUNIT(drm_get_color_range_name);
/**
* drm_plane_create_color_properties - color encoding related plane properties