From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4153716766745132227==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] drm/color: drm_get_color_space_name() can be static Date: Sat, 31 Jul 2021 11:47:44 +0800 Message-ID: <20210731034744.GA67884@b81a585761fe> In-Reply-To: <20210730204134.21769-6-harry.wentland@amd.com> List-Id: --===============4153716766745132227== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable drivers/gpu/drm/drm_color_mgmt.c:573:12: warning: symbol 'drm_get_color_spa= ce_name' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- drm_color_mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_color_mgmt.c b/drivers/gpu/drm/drm_color_m= gmt.c index 75e6dbbd00813..1ebd3fdb7717d 100644 --- a/drivers/gpu/drm/drm_color_mgmt.c +++ b/drivers/gpu/drm/drm_color_mgmt.c @@ -570,7 +570,7 @@ const char *drm_get_color_range_name(enum drm_color_ran= ge range) * In contrast to the other drm_get_*_name functions this one here returns= a * const pointer and hence is threadsafe. */ -const char *drm_get_color_space_name(enum drm_color_space space) +static const char *drm_get_color_space_name(enum drm_color_space space) { if (WARN_ON(space >=3D ARRAY_SIZE(color_space_name))) return "unknown"; --===============4153716766745132227==--