From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1537BFD45F9 for ; Thu, 26 Feb 2026 00:02:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A652910E0AD; Thu, 26 Feb 2026 00:02:22 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="rE95hla7"; dkim-atps=neutral Received: from DM1PR04CU001.outbound.protection.outlook.com (mail-centralusazon11010071.outbound.protection.outlook.com [52.101.61.71]) by gabe.freedesktop.org (Postfix) with ESMTPS id 989BB10E0AD for ; Thu, 26 Feb 2026 00:02:20 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mCn7PRoCJZTRGqPGtDoKheo5Zvx6US06F8PZEQC+SKd+RCOSW0yYWYlnZYi9wOEPAc7x10KWieihRuWCwH278v+QxsIyePcM4vq3NsnoTkRB5JXBRkxda4MGGPcVUmjrK/jCK39iHWEjuE58ACaITj+K+Gg3kuAb9mNO5osFKmx/6jeaeWgsboYPAfrj+XAV76Mw56cpxpPkjPPxaMQnJ9IuOIOn4rg9V7Yrj5VYjRa2WO/cNkhduy9R5aa52bnO5f/q0QFDquRUvhaMINISZAqBOiY1A+wfMvuOFwnRISRJMbDIWVDw/fOlPwi43v9IBjxChx1rJScSXqNkOk9mAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7wNR2orlwh0gBgHjHx6eDbIgMZmxmEPe+9QBurqhDiM=; b=rZn7NXn2+Xn8aRZYfsRUppkYj3IXRRfGs4peKxCACMUq2FES+8krrQdJJMV3SZ73YPzl9CndWVYKNmxlMktkPqqL3p4/Z7mW6iWB+Q7a7jBJn/X/Lw+co8YE2+fhhE/Sc/z1TBNJsQ5b+zsKkkI6+RjEyFnvMjbSnTZC10uxMGpT7QtGi3MjCopbhGOZhko6/H3F1CACP8NShWNaKHd1rQ5Sd6rL/lzCHHgLhztsO7IX2lXJtIISywoF8ASXvXxdusSLndV37JlcC9mwZjuymhXRHPCjE/EXXtCcqkKFWA692zSPkLF+ck5mOlo1GvsMC43VdHSijGN3kY3S9E9HwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7wNR2orlwh0gBgHjHx6eDbIgMZmxmEPe+9QBurqhDiM=; b=rE95hla7f1QltVp6DOixQ4ifTzJmQfozV+A+H7nvBoHmW49kYoTCXGyiBjZJr/djGb1C2rjwxU0R7BPHhbnimt3drVU/Y5P4vRIj/bDkEUuAZfre3pDjAyu1hglJOrjS5PONgi591GsPEEJcYnzoLL/V2ioTZmHwTdnSwkvS5Uk= Received: from PH8P221CA0050.NAMP221.PROD.OUTLOOK.COM (2603:10b6:510:346::11) by CY1PR12MB9581.namprd12.prod.outlook.com (2603:10b6:930:fe::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9654.13; Thu, 26 Feb 2026 00:02:17 +0000 Received: from SA2PEPF000015CB.namprd03.prod.outlook.com (2603:10b6:510:346:cafe::cc) by PH8P221CA0050.outlook.office365.com (2603:10b6:510:346::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9632.23 via Frontend Transport; Thu, 26 Feb 2026 00:02:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by SA2PEPF000015CB.mail.protection.outlook.com (10.167.241.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9632.12 via Frontend Transport; Thu, 26 Feb 2026 00:02:17 +0000 Received: from kylin.lan (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Wed, 25 Feb 2026 18:02:15 -0600 From: Alex Hung To: CC: Harry Wentland , Leo Li , Aurabindo Pillai , Roman Li , Wayne Lin , Tom Chung , "Fangzhi Zuo" , Dan Wheeler , Ray Wu , Ivan Lipski , Alex Hung , Clay King , Austin Zheng Subject: [PATCH 4/8] drm/amd/display: Silence unused variable warning Date: Wed, 25 Feb 2026 16:57:43 -0700 Message-ID: <20260226000048.68030-5-alex.hung@amd.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260226000048.68030-1-alex.hung@amd.com> References: <20260226000048.68030-1-alex.hung@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: satlexmb08.amd.com (10.181.42.217) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF000015CB:EE_|CY1PR12MB9581:EE_ X-MS-Office365-Filtering-Correlation-Id: 30c0a1a7-1bb2-48a0-7346-08de74ca4dec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: wgnzfcK4dTbpKQOUAgNMcCTpBtT4urSbIi5w5/gOE/qDQreCp+zparX6wHXFwPWKo4SDMZiUVTDTotZspdBP8U/gVM3BW9oa/POzCaQXhqRyO/piaM6SRvn4PbSRodfKJNgxDlMuSI+RMI+U7U48C5hol59/CYyC7U/1Bg/3nMBL0bTKnVs9eJeDTPcrLzW0NkPjVJgKByIlKrnWbqDnOAwCuNaFORh9HLtuFPEjbVrGcmcnZJ+/Pm8gu0NZVfBAeeqrPGSsB648ZfHi7RDZ8KyWm0HgSHhwdOiDI29g98h214rcHspCUN5vvVFrNxYHYHhmfS6mA/yM69c01/SbkhsKkjZUnsvt/ka8AZp0/DyR6+xzh46rcWWfDttqOuzyDXUqwlr9JA+Y2WMoj/7a1BNe4nOqYP4GVbZ68tIawXctx6J2GywbCQPqrTcRCyDgngDtfFAkTbyagBT6VvCxbpjuL0EaSKXqR/9MF8P+yOJ1pgl/ujZ3VLbSc0ff7InO5fVM9NbhQxDkRkyadBpbCIhHMFoqOjw4u+H5JqfWMpxd1qNq5BUyezJt4bAROu+oyZAWk1TBPim9GLuhuoAE19SFVJuro/LcWaXuMwYOyMce/8w5hDKdetB4L5eC/ftzSt/ogTeayM8/Yi/GxCa7d0eIaqlgifjh3q11BR3Ijgjk4xHUqeqD5bPT2KcZ1DPfjAfcRylZRVcr76fPl3uGTiqaJBpJdOkMj9OimRrGrhSpyjsFDW1A09k7LilNnUVGrB5S2EzF2TbejcVmP6WI8hbIZcx26fgMXLoVt1mo6khXupNAeN1IjxhzoeTGAAQZY+cNQjJ2uBSmoA/ZIcNCTA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:satlexmb07.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(82310400026)(36860700013)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ft9n23bW8hkJQfJMSPgiPRPQPLPwr0R3fUIrEExxcTCcxMRhOTgsq30mQJNSsm3nVeiez1yEmoD3SgVAIFeGocEMwloDzy3mXnkTZXyl4Cx4qqlQCvdL4cOC+S/gVN9QLT/PjQmd98tYKnmCaMKzWmTOEL6UgkjgipknJVFvzPwxxRkS2b4Tet9vEb6OzF0CHuhgEt6eT9OD2FuLdQN+hWZ2Z7xxy/eR9kiWl5Ln738ET5JdXhxqqayujcT0qdXh7JCoS3JZ/HJSWMGBrXLE1d2kw/PgGUBjCEvMPSlRwiHweqtiIZE1mPoqf0jyptFR4pJu4OVGq8Xs+x4YrLhAexSeOyPK022e5Fxb+sfOEiNm3DJbjnLn3hlXlxb34u2gKcwI35nbFqj5HRAgfctDyjZJWGhA3cwyucEeQvtRbaOZw+tdOHdorrE6SkKENfmo X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2026 00:02:17.2086 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 30c0a1a7-1bb2-48a0-7346-08de74ca4dec X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF000015CB.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR12MB9581 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" From: Clay King [WHY & HOW] Remove unused dpp_pipe_count variable. Reviewed-by: Austin Zheng Signed-off-by: Clay King Signed-off-by: Alex Hung --- .../gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c b/drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c index 4cfe64aa8492..74812a7d5e28 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c +++ b/drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.c @@ -909,10 +909,10 @@ static unsigned int get_source_mpc_factor(const struct dml2_context *ctx, const struct dc_plane_state *plane) { struct pipe_ctx *dpp_pipes[MAX_PIPES] = {0}; - int dpp_pipe_count = ctx->config.callbacks.get_dpp_pipes_for_plane(plane, - &state->res_ctx, dpp_pipes); - ASSERT(dpp_pipe_count > 0); + if (ctx->config.callbacks.get_dpp_pipes_for_plane(plane, &state->res_ctx, dpp_pipes) <= 0) + ASSERT(false); + return ctx->config.callbacks.get_mpc_slice_count(dpp_pipes[0]); } -- 2.43.0