[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240815185629.65725-1-kdipendra88@gmail.com>
Date: Thu, 15 Aug 2024 18:56:27 +0000
From: Dipendra Khadka <kdipendra88@...il.com>
To: harry.wentland@....com,
sunpeng.li@....com,
hRodrigo.Siqueira@....com,
alexander.deucher@....com,
Xinhui.Pan@....com,
airlied@...il.com,
daniel@...ll.ch
Cc: Dipendra Khadka <kdipendra88@...il.com>,
amd-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] Fix warning: symbol 'dcn3_14_ip' was not declared. Should it be static? in dcn314_fpu.c
Sparse reported following warning:
'''
drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/dcn314_fpu.c:36:30: warning: symbol 'dcn3_14_ip' was not declared. Should it be static?
'''
Since the symbol dcn3_14_ip is not exported,it is declared as static.
Signed-off-by: Dipendra Khadka <kdipendra88@...il.com>
---
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
index 21f637ae4add..b7463e70b6e1 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c
@@ -33,7 +33,7 @@
#include "dml/display_mode_vba.h"
#include "dml/dml_inline_defs.h"
-struct _vcs_dpi_ip_params_st dcn3_14_ip = {
+static struct _vcs_dpi_ip_params_st dcn3_14_ip = {
.VBlankNomDefaultUS = 668,
.gpuvm_enable = 1,
.gpuvm_max_page_table_levels = 1,
--
2.43.0
Powered by blists - more mailing lists