mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next 0/5] drm/amd/display: Make some symobols static
@ 2024-08-21  6:40 Jinjie Ruan
  2024-08-21  6:40 ` [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static Jinjie Ruan
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Jinjie Ruan @ 2024-08-21  6:40 UTC (permalink / raw)
  To: chaitanya.dhere, jun.lei, harry.wentland, sunpeng.li,
	Rodrigo.Siqueira, alexander.deucher, christian.koenig,
	Xinhui.Pan, airlied, daniel, alex.hung, aurabindo.pillai,
	colin.i.king, dillon.varone, amd-gfx, dri-devel, linux-kernel
  Cc: ruanjinjie

Make some symobols static.

Jinjie Ruan (5):
  drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static
  drm/amd/display: Make core_dcn4_ip_caps_base static
  drm/amd/display: Make dcn35_hubp_funcs static
  drm/amd/display: Make dcn401_dsc_funcs static
  drm/amd/display: Make dcn35_fpga_funcs static

 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c   | 2 +-
 .../amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c   | 2 +-
 .../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c | 3 ++-
 drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c         | 2 +-
 drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c         | 2 +-
 5 files changed, 6 insertions(+), 5 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static
  2024-08-21  6:40 [PATCH -next 0/5] drm/amd/display: Make some symobols static Jinjie Ruan
@ 2024-08-21  6:40 ` Jinjie Ruan
  2024-08-21 20:29   ` Alex Deucher
  2024-08-21  6:40 ` [PATCH -next 2/5] drm/amd/display: Make core_dcn4_ip_caps_base static Jinjie Ruan
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Jinjie Ruan @ 2024-08-21  6:40 UTC (permalink / raw)
  To: chaitanya.dhere, jun.lei, harry.wentland, sunpeng.li,
	Rodrigo.Siqueira, alexander.deucher, christian.koenig,
	Xinhui.Pan, airlied, daniel, alex.hung, aurabindo.pillai,
	colin.i.king, dillon.varone, amd-gfx, dri-devel, linux-kernel
  Cc: ruanjinjie

The sparse tool complains as follows:

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c:6853:56: warning:
	symbol 'core_dcn4_g6_temp_read_blackout_table' was not declared. Should it be static?

This symbol is not used outside of dml2_core_dcn4_calcs.c, so marks it static.

And not want to change it, so mark it const.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
---
 .../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
index c3c4d8d9525c..0c24f15d5067 100644
--- a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
+++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
@@ -6850,7 +6850,8 @@ struct dml2_core_internal_g6_temp_read_blackouts_table {
 	} entries[DML_MAX_CLK_TABLE_SIZE];
 };
 
-struct dml2_core_internal_g6_temp_read_blackouts_table core_dcn4_g6_temp_read_blackout_table = {
+static const struct dml2_core_internal_g6_temp_read_blackouts_table
+	core_dcn4_g6_temp_read_blackout_table = {
 	.entries = {
 		{
 			.uclk_khz = 96000,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH -next 2/5] drm/amd/display: Make core_dcn4_ip_caps_base static
  2024-08-21  6:40 [PATCH -next 0/5] drm/amd/display: Make some symobols static Jinjie Ruan
  2024-08-21  6:40 ` [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static Jinjie Ruan
@ 2024-08-21  6:40 ` Jinjie Ruan
  2024-08-21  6:40 ` [PATCH -next 3/5] drm/amd/display: Make dcn35_hubp_funcs static Jinjie Ruan
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Jinjie Ruan @ 2024-08-21  6:40 UTC (permalink / raw)
  To: chaitanya.dhere, jun.lei, harry.wentland, sunpeng.li,
	Rodrigo.Siqueira, alexander.deucher, christian.koenig,
	Xinhui.Pan, airlied, daniel, alex.hung, aurabindo.pillai,
	colin.i.king, dillon.varone, amd-gfx, dri-devel, linux-kernel
  Cc: ruanjinjie

The sparse tool complains as follows:

drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c:12:28: warning:
	symbol 'core_dcn4_ip_caps_base' was not declared. Should it be static?

This symbol is not used outside of dcn35_hubp.c, so marks it static.

And do not want to change it, so mark it const.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
---
 .../amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
index 9375c6ae1147..c5ef29596ffd 100644
--- a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
+++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4.c
@@ -9,7 +9,7 @@
 #include "dml2_debug.h"
 #include "lib_float_math.h"
 
-struct dml2_core_ip_params core_dcn4_ip_caps_base = {
+static const struct dml2_core_ip_params core_dcn4_ip_caps_base = {
 	// Hardcoded values for DCN3x
 	.vblank_nom_default_us = 668,
 	.remote_iommu_outstanding_translations = 256,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH -next 3/5] drm/amd/display: Make dcn35_hubp_funcs static
  2024-08-21  6:40 [PATCH -next 0/5] drm/amd/display: Make some symobols static Jinjie Ruan
  2024-08-21  6:40 ` [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static Jinjie Ruan
  2024-08-21  6:40 ` [PATCH -next 2/5] drm/amd/display: Make core_dcn4_ip_caps_base static Jinjie Ruan
@ 2024-08-21  6:40 ` Jinjie Ruan
  2024-08-21  6:40 ` [PATCH -next 4/5] drm/amd/display: Make dcn401_dsc_funcs static Jinjie Ruan
  2024-08-21  6:40 ` [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static Jinjie Ruan
  4 siblings, 0 replies; 10+ messages in thread
From: Jinjie Ruan @ 2024-08-21  6:40 UTC (permalink / raw)
  To: chaitanya.dhere, jun.lei, harry.wentland, sunpeng.li,
	Rodrigo.Siqueira, alexander.deucher, christian.koenig,
	Xinhui.Pan, airlied, daniel, alex.hung, aurabindo.pillai,
	colin.i.king, dillon.varone, amd-gfx, dri-devel, linux-kernel
  Cc: ruanjinjie

The sparse tool complains as follows:

drivers/gpu/drm/amd/amdgpu/../display/dc/hubp/dcn35/dcn35_hubp.c:191:19: warning:
	symbol 'dcn35_hubp_funcs' was not declared. Should it be static?

This symbol is not used outside of dcn35_hubp.c, so marks it static.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
---
 drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c b/drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
index 771fcd0d3b99..d1f05b82b3dd 100644
--- a/drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
+++ b/drivers/gpu/drm/amd/display/dc/hubp/dcn35/dcn35_hubp.c
@@ -188,7 +188,7 @@ void hubp35_program_surface_config(
 	hubp35_program_pixel_format(hubp, format);
 }
 
-struct hubp_funcs dcn35_hubp_funcs = {
+static struct hubp_funcs dcn35_hubp_funcs = {
 	.hubp_enable_tripleBuffer = hubp2_enable_triplebuffer,
 	.hubp_is_triplebuffer_enabled = hubp2_is_triplebuffer_enabled,
 	.hubp_program_surface_flip_and_addr = hubp3_program_surface_flip_and_addr,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH -next 4/5] drm/amd/display: Make dcn401_dsc_funcs static
  2024-08-21  6:40 [PATCH -next 0/5] drm/amd/display: Make some symobols static Jinjie Ruan
                   ` (2 preceding siblings ...)
  2024-08-21  6:40 ` [PATCH -next 3/5] drm/amd/display: Make dcn35_hubp_funcs static Jinjie Ruan
@ 2024-08-21  6:40 ` Jinjie Ruan
  2024-08-21  6:40 ` [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static Jinjie Ruan
  4 siblings, 0 replies; 10+ messages in thread
From: Jinjie Ruan @ 2024-08-21  6:40 UTC (permalink / raw)
  To: chaitanya.dhere, jun.lei, harry.wentland, sunpeng.li,
	Rodrigo.Siqueira, alexander.deucher, christian.koenig,
	Xinhui.Pan, airlied, daniel, alex.hung, aurabindo.pillai,
	colin.i.king, dillon.varone, amd-gfx, dri-devel, linux-kernel
  Cc: ruanjinjie

The sparse tool complains as follows:

drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dcn401/dcn401_dsc.c:30:24: warning:
	symbol 'dcn401_dsc_funcs' was not declared. Should it be static?

This symbol is not used outside of dcn401_dsc.c, so marks it static.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
---
 drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c b/drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c
index 6acb6699f146..61678b0a5a1e 100644
--- a/drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c
+++ b/drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c
@@ -27,7 +27,7 @@ static void dsc401_disconnect(struct display_stream_compressor *dsc);
 static void dsc401_wait_disconnect_pending_clear(struct display_stream_compressor *dsc);
 static void dsc401_get_enc_caps(struct dsc_enc_caps *dsc_enc_caps, int pixel_clock_100Hz);
 
-const struct dsc_funcs dcn401_dsc_funcs = {
+static const struct dsc_funcs dcn401_dsc_funcs = {
 	.dsc_get_enc_caps = dsc401_get_enc_caps,
 	.dsc_read_state = dsc401_read_state,
 	.dsc_validate_stream = dsc401_validate_stream,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static
  2024-08-21  6:40 [PATCH -next 0/5] drm/amd/display: Make some symobols static Jinjie Ruan
                   ` (3 preceding siblings ...)
  2024-08-21  6:40 ` [PATCH -next 4/5] drm/amd/display: Make dcn401_dsc_funcs static Jinjie Ruan
@ 2024-08-21  6:40 ` Jinjie Ruan
  2024-08-21 20:28   ` Alex Deucher
                     ` (2 more replies)
  4 siblings, 3 replies; 10+ messages in thread
From: Jinjie Ruan @ 2024-08-21  6:40 UTC (permalink / raw)
  To: chaitanya.dhere, jun.lei, harry.wentland, sunpeng.li,
	Rodrigo.Siqueira, alexander.deucher, christian.koenig,
	Xinhui.Pan, airlied, daniel, alex.hung, aurabindo.pillai,
	colin.i.king, dillon.varone, amd-gfx, dri-devel, linux-kernel
  Cc: ruanjinjie

The sparse tool complains as follows:

drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1071:22: warning:
	symbol 'dcn35_fpga_funcs' was not declared. Should it be static?

This symbol is not used outside of dcn35_clk_mgr.c, so marks it static.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
---
 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
index e2d906327e2e..818a9b0933a5 100644
--- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
+++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
@@ -1068,7 +1068,7 @@ static struct clk_mgr_funcs dcn35_funcs = {
 	.is_ips_supported = dcn35_is_ips_supported,
 };
 
-struct clk_mgr_funcs dcn35_fpga_funcs = {
+static struct clk_mgr_funcs dcn35_fpga_funcs = {
 	.get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz,
 	.update_clocks = dcn35_update_clocks_fpga,
 	.init_clocks = dcn35_init_clocks_fpga,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static
  2024-08-21  6:40 ` [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static Jinjie Ruan
@ 2024-08-21 20:28   ` Alex Deucher
  2024-08-24  9:27   ` kernel test robot
  2024-08-24 19:49   ` kernel test robot
  2 siblings, 0 replies; 10+ messages in thread
From: Alex Deucher @ 2024-08-21 20:28 UTC (permalink / raw)
  To: Jinjie Ruan
  Cc: chaitanya.dhere, jun.lei, harry.wentland, sunpeng.li,
	Rodrigo.Siqueira, alexander.deucher, christian.koenig,
	Xinhui.Pan, airlied, daniel, alex.hung, aurabindo.pillai,
	colin.i.king, dillon.varone, amd-gfx, dri-devel, linux-kernel

On Wed, Aug 21, 2024 at 2:33 AM Jinjie Ruan <ruanjinjie@huawei.com> wrote:
>
> The sparse tool complains as follows:
>
> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1071:22: warning:
>         symbol 'dcn35_fpga_funcs' was not declared. Should it be static?
>
> This symbol is not used outside of dcn35_clk_mgr.c, so marks it static.
>
> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
> ---
>  drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
> index e2d906327e2e..818a9b0933a5 100644
> --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
> +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c
> @@ -1068,7 +1068,7 @@ static struct clk_mgr_funcs dcn35_funcs = {
>         .is_ips_supported = dcn35_is_ips_supported,
>  };
>
> -struct clk_mgr_funcs dcn35_fpga_funcs = {
> +static struct clk_mgr_funcs dcn35_fpga_funcs = {
>         .get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz,
>         .update_clocks = dcn35_update_clocks_fpga,
>         .init_clocks = dcn35_init_clocks_fpga,

This structure is not used and could be removed.  Making it static
will create a warning.

Alex


> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static
  2024-08-21  6:40 ` [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static Jinjie Ruan
@ 2024-08-21 20:29   ` Alex Deucher
  0 siblings, 0 replies; 10+ messages in thread
From: Alex Deucher @ 2024-08-21 20:29 UTC (permalink / raw)
  To: Jinjie Ruan
  Cc: chaitanya.dhere, jun.lei, harry.wentland, sunpeng.li,
	Rodrigo.Siqueira, alexander.deucher, christian.koenig,
	Xinhui.Pan, airlied, daniel, alex.hung, aurabindo.pillai,
	colin.i.king, dillon.varone, amd-gfx, dri-devel, linux-kernel

Applied 1-4.

Alex

On Wed, Aug 21, 2024 at 2:33 AM Jinjie Ruan <ruanjinjie@huawei.com> wrote:
>
> The sparse tool complains as follows:
>
> drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c:6853:56: warning:
>         symbol 'core_dcn4_g6_temp_read_blackout_table' was not declared. Should it be static?
>
> This symbol is not used outside of dml2_core_dcn4_calcs.c, so marks it static.
>
> And not want to change it, so mark it const.
>
> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
> ---
>  .../display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
> index c3c4d8d9525c..0c24f15d5067 100644
> --- a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
> +++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
> @@ -6850,7 +6850,8 @@ struct dml2_core_internal_g6_temp_read_blackouts_table {
>         } entries[DML_MAX_CLK_TABLE_SIZE];
>  };
>
> -struct dml2_core_internal_g6_temp_read_blackouts_table core_dcn4_g6_temp_read_blackout_table = {
> +static const struct dml2_core_internal_g6_temp_read_blackouts_table
> +       core_dcn4_g6_temp_read_blackout_table = {
>         .entries = {
>                 {
>                         .uclk_khz = 96000,
> --
> 2.34.1
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static
  2024-08-21  6:40 ` [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static Jinjie Ruan
  2024-08-21 20:28   ` Alex Deucher
@ 2024-08-24  9:27   ` kernel test robot
  2024-08-24 19:49   ` kernel test robot
  2 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2024-08-24  9:27 UTC (permalink / raw)
  To: Jinjie Ruan, chaitanya.dhere, jun.lei, harry.wentland,
	sunpeng.li, Rodrigo.Siqueira, alexander.deucher,
	christian.koenig, Xinhui.Pan, airlied, daniel, alex.hung,
	aurabindo.pillai, colin.i.king, dillon.varone, amd-gfx,
	dri-devel, linux-kernel
  Cc: llvm, oe-kbuild-all, ruanjinjie

Hi Jinjie,

kernel test robot noticed the following build warnings:

[auto build test WARNING on next-20240821]

url:    https://github.com/intel-lab-lkp/linux/commits/Jinjie-Ruan/drm-amd-display-Make-core_dcn4_g6_temp_read_blackout_table-static/20240821-143421
base:   next-20240821
patch link:    https://lore.kernel.org/r/20240821064040.2292969-6-ruanjinjie%40huawei.com
patch subject: [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240824/202408241600.uHrTIx7j-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240824/202408241600.uHrTIx7j-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408241600.uHrTIx7j-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1071:29: warning: unused variable 'dcn35_fpga_funcs' [-Wunused-variable]
    1071 | static struct clk_mgr_funcs dcn35_fpga_funcs = {
         |                             ^~~~~~~~~~~~~~~~
   1 warning generated.


vim +/dcn35_fpga_funcs +1071 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c

  1070	
> 1071	static struct clk_mgr_funcs dcn35_fpga_funcs = {
  1072		.get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz,
  1073		.update_clocks = dcn35_update_clocks_fpga,
  1074		.init_clocks = dcn35_init_clocks_fpga,
  1075		.get_dtb_ref_clk_frequency = dcn31_get_dtb_ref_freq_khz,
  1076	};
  1077	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static
  2024-08-21  6:40 ` [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static Jinjie Ruan
  2024-08-21 20:28   ` Alex Deucher
  2024-08-24  9:27   ` kernel test robot
@ 2024-08-24 19:49   ` kernel test robot
  2 siblings, 0 replies; 10+ messages in thread
From: kernel test robot @ 2024-08-24 19:49 UTC (permalink / raw)
  To: Jinjie Ruan, chaitanya.dhere, jun.lei, harry.wentland,
	sunpeng.li, Rodrigo.Siqueira, alexander.deucher,
	christian.koenig, Xinhui.Pan, airlied, daniel, alex.hung,
	aurabindo.pillai, colin.i.king, dillon.varone, amd-gfx,
	dri-devel, linux-kernel
  Cc: oe-kbuild-all, ruanjinjie

Hi Jinjie,

kernel test robot noticed the following build warnings:

[auto build test WARNING on next-20240821]

url:    https://github.com/intel-lab-lkp/linux/commits/Jinjie-Ruan/drm-amd-display-Make-core_dcn4_g6_temp_read_blackout_table-static/20240821-143421
base:   next-20240821
patch link:    https://lore.kernel.org/r/20240821064040.2292969-6-ruanjinjie%40huawei.com
patch subject: [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static
config: i386-randconfig-003-20240824 (https://download.01.org/0day-ci/archive/20240825/202408250235.XZ6zToZY-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240825/202408250235.XZ6zToZY-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408250235.XZ6zToZY-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c:1071:29: warning: 'dcn35_fpga_funcs' defined but not used [-Wunused-variable]
    1071 | static struct clk_mgr_funcs dcn35_fpga_funcs = {
         |                             ^~~~~~~~~~~~~~~~


vim +/dcn35_fpga_funcs +1071 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c

  1070	
> 1071	static struct clk_mgr_funcs dcn35_fpga_funcs = {
  1072		.get_dp_ref_clk_frequency = dce12_get_dp_ref_freq_khz,
  1073		.update_clocks = dcn35_update_clocks_fpga,
  1074		.init_clocks = dcn35_init_clocks_fpga,
  1075		.get_dtb_ref_clk_frequency = dcn31_get_dtb_ref_freq_khz,
  1076	};
  1077	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-08-24 19:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-21  6:40 [PATCH -next 0/5] drm/amd/display: Make some symobols static Jinjie Ruan
2024-08-21  6:40 ` [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static Jinjie Ruan
2024-08-21 20:29   ` Alex Deucher
2024-08-21  6:40 ` [PATCH -next 2/5] drm/amd/display: Make core_dcn4_ip_caps_base static Jinjie Ruan
2024-08-21  6:40 ` [PATCH -next 3/5] drm/amd/display: Make dcn35_hubp_funcs static Jinjie Ruan
2024-08-21  6:40 ` [PATCH -next 4/5] drm/amd/display: Make dcn401_dsc_funcs static Jinjie Ruan
2024-08-21  6:40 ` [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static Jinjie Ruan
2024-08-21 20:28   ` Alex Deucher
2024-08-24  9:27   ` kernel test robot
2024-08-24 19:49   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®