From nobody Sun Feb 8 21:32:16 2026 Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6C5716E86F for ; Wed, 21 Aug 2024 06:33:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222015; cv=none; b=M6cAyVHeZaVhgrFnE/oSM8TGGhBaVhhNHAsRJmR2Z6cbLVx9P3Rn0czH0DYLP0/Re23nT7qqSti+cNBIlmUbcnTAde/iNKoMNTxRMRUT9L9ZSEp/VIKQ2bL4JLoGkRC02JQkw1L5NUqgpyUH7O4h/nZHQhfX5yzqvww0ZZXDbn4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222015; c=relaxed/simple; bh=7DkuXzSr/qwppCrdDSX1LNvus7p8EM8yAVqhCae8yTc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qFKa73bmZm3oosS19yIBBSBshduzze+xsfWK7/QB3zgzxEbyWlxKG1SNxkc+orE9/cS73EVFtRzz89OHfE+Y5kYu4aWdGkLtHgfY885T+Bm/kYQTTOspoEsFDUeoYNAXi7uQRTQX+tpJOmlwx2/L7Lrt/eiwygNL2Zb37O6MvyI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Wpc1H0j0jz1xvdD; Wed, 21 Aug 2024 14:31:31 +0800 (CST) Received: from kwepemh500013.china.huawei.com (unknown [7.202.181.146]) by mail.maildlp.com (Postfix) with ESMTPS id 843731401F3; Wed, 21 Aug 2024 14:33:25 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemh500013.china.huawei.com (7.202.181.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 21 Aug 2024 14:33:24 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , , , , CC: Subject: [PATCH -next 1/5] drm/amd/display: Make core_dcn4_g6_temp_read_blackout_table static Date: Wed, 21 Aug 2024 14:40:36 +0800 Message-ID: <20240821064040.2292969-2-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821064040.2292969-1-ruanjinjie@huawei.com> References: <20240821064040.2292969-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemh500013.china.huawei.com (7.202.181.146) Content-Type: text/plain; charset="utf-8" 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 stat= ic. And not want to change it, so mark it const. Signed-off-by: Jinjie Ruan --- .../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_c= ore_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_dcn= 4_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn= 4_calcs.c @@ -6850,7 +6850,8 @@ struct dml2_core_internal_g6_temp_read_blackouts_tabl= e { } entries[DML_MAX_CLK_TABLE_SIZE]; }; =20 -struct dml2_core_internal_g6_temp_read_blackouts_table core_dcn4_g6_temp_r= ead_blackout_table =3D { +static const struct dml2_core_internal_g6_temp_read_blackouts_table + core_dcn4_g6_temp_read_blackout_table =3D { .entries =3D { { .uclk_khz =3D 96000, --=20 2.34.1 From nobody Sun Feb 8 21:32:16 2026 Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7DC516DC1F for ; Wed, 21 Aug 2024 06:33:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222010; cv=none; b=gOye+doqEbtBsslVpuunHCQh4uZR7qGfK9r2Sfh6+ofp0xE5KvXkXEv3z3fCoqUqRTMaYyXa7AaNZ2rWZ6ijSG6Q3iwcrYe/02LqghgdAmRwyS9/CDJG/v3//BrdcUGHBXormrCn/sRVHn0mNW8vQPggoGrO5XC990v+LB/1sTE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222010; c=relaxed/simple; bh=lkC0Zh/UiGJ0JD60GYFAYNb1xNMY9+35a/qu9kH9FzQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Wd2blkxudYufHBoZOEOG2OeXGbLPUNKy0vxlifftqgAHJcC9TSnqvsn2STnxdlFiRV1tkDwdyoSYBTHi5KlfRy7LhRrmaa80X8sQieYpcm8KOZZPzstm99OTCOPFGjXj3jsNtROf7RHw8aQE5+QHERMxDb3CzGPd6nBJdda3M+c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Wpc3S15BKz2Cmct; Wed, 21 Aug 2024 14:33:24 +0800 (CST) Received: from kwepemh500013.china.huawei.com (unknown [7.202.181.146]) by mail.maildlp.com (Postfix) with ESMTPS id 38FF81401F3; Wed, 21 Aug 2024 14:33:26 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemh500013.china.huawei.com (7.202.181.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 21 Aug 2024 14:33:25 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , , , , CC: Subject: [PATCH -next 2/5] drm/amd/display: Make core_dcn4_ip_caps_base static Date: Wed, 21 Aug 2024 14:40:37 +0800 Message-ID: <20240821064040.2292969-3-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821064040.2292969-1-ruanjinjie@huawei.com> References: <20240821064040.2292969-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemh500013.china.huawei.com (7.202.181.146) Content-Type: text/plain; charset="utf-8" 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 --- .../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_c= ore_dcn4.c b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_c= ore_dcn4.c index 9375c6ae1147..c5ef29596ffd 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn= 4.c +++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn= 4.c @@ -9,7 +9,7 @@ #include "dml2_debug.h" #include "lib_float_math.h" =20 -struct dml2_core_ip_params core_dcn4_ip_caps_base =3D { +static const struct dml2_core_ip_params core_dcn4_ip_caps_base =3D { // Hardcoded values for DCN3x .vblank_nom_default_us =3D 668, .remote_iommu_outstanding_translations =3D 256, --=20 2.34.1 From nobody Sun Feb 8 21:32:16 2026 Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE0A016EB4C for ; Wed, 21 Aug 2024 06:33:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222014; cv=none; b=OYWvook938h2dW1ExqFQ0d6qomWTKIoxJteww/BGHZbMql/QUQKRMEB93x64sPurgoXEZkdDcr0hPPLRktuZhfpqmXwRZiyQEjrurFYW6OsAG4flxE2hehQsjkyAKJkbIeS0EUfos8FtIHD2rV98VqizkPZWtQxIVkXG6AzeJ6g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222014; c=relaxed/simple; bh=PWTf8UijejMlRKS7sKs/5eMUgE0pYuR+BKx0IE2J2NA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eCuAFXw7A7xO+hM6e7VWL/d9TX9ArVeNIRzm3Sq/wKS59ecx5/EWVAiOrQjJw4biUzr4axed4DRiwyo46QTqKALAuNSNxE8RcNgJw/I8l06uTShLef2l1Xe7xUaRiYPM8e2s2NYwt4kJxZOHAC5mJhYSLlcH8h47brfVQ4xbUMI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Wpc3S1MNTz1S8Dh; Wed, 21 Aug 2024 14:33:24 +0800 (CST) Received: from kwepemh500013.china.huawei.com (unknown [7.202.181.146]) by mail.maildlp.com (Postfix) with ESMTPS id D0ECB1A016C; Wed, 21 Aug 2024 14:33:26 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemh500013.china.huawei.com (7.202.181.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 21 Aug 2024 14:33:26 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , , , , CC: Subject: [PATCH -next 3/5] drm/amd/display: Make dcn35_hubp_funcs static Date: Wed, 21 Aug 2024 14:40:38 +0800 Message-ID: <20240821064040.2292969-4-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821064040.2292969-1-ruanjinjie@huawei.com> References: <20240821064040.2292969-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemh500013.china.huawei.com (7.202.181.146) Content-Type: text/plain; charset="utf-8" The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/hubp/dcn35/dcn35_hubp.c:191:19: wa= rning: 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 --- 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/drive= rs/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); } =20 -struct hubp_funcs dcn35_hubp_funcs =3D { +static struct hubp_funcs dcn35_hubp_funcs =3D { .hubp_enable_tripleBuffer =3D hubp2_enable_triplebuffer, .hubp_is_triplebuffer_enabled =3D hubp2_is_triplebuffer_enabled, .hubp_program_surface_flip_and_addr =3D hubp3_program_surface_flip_and_ad= dr, --=20 2.34.1 From nobody Sun Feb 8 21:32:16 2026 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42A1D16EBE7 for ; Wed, 21 Aug 2024 06:33:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222014; cv=none; b=jjfExALIMSzMWodAHEXxBZlqfLe9h/1y2xvbmjGFG5FvfpFneFWc17knfJy+PhyeKCz+grs98wXYCLaEjqXEQ/FBolQB/M955YM8yoqlZCob8pF4+9jrEe+WJSLNqDjRfDkxE/mwlXCP55+9A5s90LXVHEhbFpNCbajs5scCiV0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222014; c=relaxed/simple; bh=vC5cyqq06VbM2r6qxqNojYU0cF7NclfVRFwc761ZWI4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EDEQq5CbgZ3F5IJMtuwxXTVXNDQOhQq4o/+D071oFdp+JNbboxYbtnm56ADq6RfBVDpvy3aYNQlYsjE5Ee2xw5iitFCTjpuSDuI9tqLNfgNC98JTqTBJtk182G5LgGX4o5apKf9sVIdAUeFNEOkkgRxFHuqtnMTAVyL+DDTdqT8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Wpc3T4SCwz1j6gm; Wed, 21 Aug 2024 14:33:25 +0800 (CST) Received: from kwepemh500013.china.huawei.com (unknown [7.202.181.146]) by mail.maildlp.com (Postfix) with ESMTPS id 7E9F5180019; Wed, 21 Aug 2024 14:33:27 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemh500013.china.huawei.com (7.202.181.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 21 Aug 2024 14:33:26 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , , , , CC: Subject: [PATCH -next 4/5] drm/amd/display: Make dcn401_dsc_funcs static Date: Wed, 21 Aug 2024 14:40:39 +0800 Message-ID: <20240821064040.2292969-5-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821064040.2292969-1-ruanjinjie@huawei.com> References: <20240821064040.2292969-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemh500013.china.huawei.com (7.202.181.146) Content-Type: text/plain; charset="utf-8" The sparse tool complains as follows: drivers/gpu/drm/amd/amdgpu/../display/dc/dsc/dcn401/dcn401_dsc.c:30:24: war= ning: 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 --- 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/drive= rs/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_compr= essor *dsc); static void dsc401_wait_disconnect_pending_clear(struct display_stream_com= pressor *dsc); static void dsc401_get_enc_caps(struct dsc_enc_caps *dsc_enc_caps, int pix= el_clock_100Hz); =20 -const struct dsc_funcs dcn401_dsc_funcs =3D { +static const struct dsc_funcs dcn401_dsc_funcs =3D { .dsc_get_enc_caps =3D dsc401_get_enc_caps, .dsc_read_state =3D dsc401_read_state, .dsc_validate_stream =3D dsc401_validate_stream, --=20 2.34.1 From nobody Sun Feb 8 21:32:16 2026 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E99EE16DECC for ; Wed, 21 Aug 2024 06:33:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222013; cv=none; b=eaSFfkJEiWss0a9EhxSCdGRRePID8JTwPUHcuVoYtzYmQxP7CW19uLlRGIo6c+/od4FlWEDJSInRvB82Um3YCo6bv8zG9mE3BWKvS8UVIzguw9pn8ItbRcU0kDS5Xpgfk8MquLxjI8HCNo1G73DlT8i37aV+TilXW9MzS+5tnYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724222013; c=relaxed/simple; bh=n4qTaEnJmRR1a/IaWznZZyPTdSqc5a8nM77EVdf7WXw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eNoHXTSJr7FQw9vab+Farye6azSETxS7gCX3gUeXM+9z6FgEsm0MEVAxZYzOVwayG4y4Piw469mc3Cjg9+qmsDedyF3WMGyRDeOkbKFKGZk2+gHpj2uO7DvMdQBQzXP8nzj/uou71FCczRrR060JKIrsWoir0SbH0hyLYe+z8MQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Wpc1C56JXzhY0P; Wed, 21 Aug 2024 14:31:27 +0800 (CST) Received: from kwepemh500013.china.huawei.com (unknown [7.202.181.146]) by mail.maildlp.com (Postfix) with ESMTPS id 2E4961401F2; Wed, 21 Aug 2024 14:33:28 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemh500013.china.huawei.com (7.202.181.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 21 Aug 2024 14:33:27 +0800 From: Jinjie Ruan To: , , , , , , , , , , , , , , , , CC: Subject: [PATCH -next 5/5] drm/amd/display: Make dcn35_fpga_funcs static Date: Wed, 21 Aug 2024 14:40:40 +0800 Message-ID: <20240821064040.2292969-6-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821064040.2292969-1-ruanjinjie@huawei.com> References: <20240821064040.2292969-1-ruanjinjie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemh500013.china.huawei.com (7.202.181.146) Content-Type: text/plain; charset="utf-8" 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 --- 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 =3D { .is_ips_supported =3D dcn35_is_ips_supported, }; =20 -struct clk_mgr_funcs dcn35_fpga_funcs =3D { +static struct clk_mgr_funcs dcn35_fpga_funcs =3D { .get_dp_ref_clk_frequency =3D dce12_get_dp_ref_freq_khz, .update_clocks =3D dcn35_update_clocks_fpga, .init_clocks =3D dcn35_init_clocks_fpga, --=20 2.34.1