From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6448438692974958664==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] drm/color: drm_get_transfer_function_name() can be static Date: Sat, 31 Jul 2021 09:18:40 +0800 Message-ID: <20210731011840.GA50339@b81a585761fe> In-Reply-To: <20210730204134.21769-3-harry.wentland@amd.com> List-Id: --===============6448438692974958664== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable drivers/gpu/drm/drm_color_mgmt.c:526:12: warning: symbol 'drm_get_transfer_= function_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 daf62fb090a63..a48b616cf802e 100644 --- a/drivers/gpu/drm/drm_color_mgmt.c +++ b/drivers/gpu/drm/drm_color_mgmt.c @@ -523,7 +523,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_transfer_function_name(enum drm_transfer_function tf) +static const char *drm_get_transfer_function_name(enum drm_transfer_functi= on tf) { if (WARN_ON(tf >=3D ARRAY_SIZE(tf_name))) return "unknown"; --===============6448438692974958664==--