Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2507749pxb; Mon, 11 Jan 2021 11:23:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlS9mcUlH4PBKRuO7RJwhJ0vEKVQBkxQL6bIre7PzuNQ3iaW65x3Z7nskyja3a2aQOT8j3 X-Received: by 2002:a17:906:3101:: with SMTP id 1mr673074ejx.115.1610393038783; Mon, 11 Jan 2021 11:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610393038; cv=none; d=google.com; s=arc-20160816; b=lBtRWC7vWCotxEZGYg1pGNPq+nxk3W4mn82IkZ9WwVasWgRWlY59xbMnl98g6P7km+ W5uFm1oXLo1f1rYKzM5Om/9dnT5qQ4pCa2MKio+6fiKSAKmETIMe8lriNWQNt8pC2l1v ouNYpzJKukS0xK9mTL0a/jc6I9tP1/6qFbEDfXV2bsKcn9TOz1fjKxUely5pHeJ/BScI 6MHZm215T2HxxavGJan29akm/pJwzQdjMi1DLd7woyr0dba8uxj158Y3OYL93PR42EE9 rGmXdeLdByfBvetO0tjKvmdNzD7evNlgMKFyWy5Tk9wbPFsbmp8TZXdOzIvFe216HY7t H/3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qbOdfw74w6tzF/CbpPUTEI04qCMhfubS6U9e1XZIp68=; b=RjjZ1i3vArE2bFP6AfuMMGoZ9AwFADskmmZTWLMOxb5GemdvF34sYrn36/grAORxpV BWK88gR1Bm5Wz55iIlqBAL2ciZXPQjGq2vS/Pdjq7WywWSfLrku0jGk3uQBbLd09Rsqm h5TVKFUnge/hcWFrf525VaNLcS8WGPoXaDutgAiQXLb6vj2Rb9eeYIt/bmAkfYWKdN7I KiH9z2PZOVV4y7KKtsx2q4TgW0oVmwPAjDARkkHBpycDrvjGROehv2a5rZfHB2k1odWW chmX7wd08r0kbYdG1ooJk0SiY64D1OCvXI7oEekIQYXB9sQsffWW1QKj3Dffc0vVvwOl I8nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SY9uAV9V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si262076ede.501.2021.01.11.11.23.35; Mon, 11 Jan 2021 11:23:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SY9uAV9V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403974AbhAKTVb (ORCPT + 99 others); Mon, 11 Jan 2021 14:21:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403930AbhAKTV1 (ORCPT ); Mon, 11 Jan 2021 14:21:27 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26FF4C061382 for ; Mon, 11 Jan 2021 11:19:59 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id w5so893427wrm.11 for ; Mon, 11 Jan 2021 11:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qbOdfw74w6tzF/CbpPUTEI04qCMhfubS6U9e1XZIp68=; b=SY9uAV9V59fYWcmoaIsdXl0k7TXOs4fLfBDFwyidnaBs3Z6B+orrrsAEx5TJwydBzJ K8nX3NxXBy5TrL6hieK2vO+NXgHYwhgnT+23Y0dN7lnBpdRCqhPOoRySIRjAXZ+rIblf Ih2hh/pbvvd8bVpxE+ZPG57im+0H1wWIzoXVmp0cf7XbY4i6DXuotgud1SXh0lVA2wjc 8evdy55Ymtzme9Ud/0rATBl2ennpYYn6FzdMnZMcZpSqs7qXa1FcDXhidzIO33tvGmW4 kOvFJ5cYIEZbrVt0CAMRlPatHx1if33AoandcvoJk5eWivKdkS+aswgmoTX0U9jYD+kL 7XyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qbOdfw74w6tzF/CbpPUTEI04qCMhfubS6U9e1XZIp68=; b=sOq33i9EHQD/LNDxejUsAWhAMMSPPiKgu4At6pYZ8+ZY5ACsa33FFZn5M9UVvx3/NH YAZl67qPKyebBVA+02uagw2RqZT+xS5HPluXr0lczwU+b8m4QJ1FYSjgKz2APpCJ2Eax 8qvDPBdrQTz69vu8vxwhBC3sga4LIr6Q3hLKYKbj6a4RILwXOSm3tw31UEhtvCTDr0+2 f1y31EDRzYEsDbIO3mejHg+q3YN9VwH2BSvQ4bwIfC5f58DvK9PAfirasHXAubNn4pII uwhxM+1mjo9TQ8l7fC88sWiBeKbs4WJJJ+y/xOSh5nbtEVOWy9BG46Ig+lhtL5Z54ebg yL7A== X-Gm-Message-State: AOAM532SGtnAZsJuN+iIl1/+FKPHH4scOF3n6brUjU3a+tBeHBhA2jFt FADciqK+NuK5HCwLqhaJgx7vug== X-Received: by 2002:adf:c454:: with SMTP id a20mr595775wrg.314.1610392797924; Mon, 11 Jan 2021 11:19:57 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:57 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 21/40] drm/amd/display/dc/dce110/dce110_compressor: Remove unused function 'dce110_get_required_compressed_surfacesize Date: Mon, 11 Jan 2021 19:19:07 +0000 Message-Id: <20210111191926.3688443-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_compressor.c:415:6: warning: no previous prototype for ‘dce110_get_required_compressed_surfacesize’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../amd/display/dc/dce110/dce110_compressor.c | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c index 72b580a4eb856..18b0a69b0b1e8 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c @@ -412,36 +412,6 @@ void dce110_compressor_destroy(struct compressor **compressor) *compressor = NULL; } -bool dce110_get_required_compressed_surfacesize(struct fbc_input_info fbc_input_info, - struct fbc_requested_compressed_size size) -{ - bool result = false; - - unsigned int max_x = FBC_MAX_X, max_y = FBC_MAX_Y; - - get_max_support_fbc_buffersize(&max_x, &max_y); - - if (fbc_input_info.dynamic_fbc_buffer_alloc == 0) { - /* - * For DCE11 here use Max HW supported size: HW Support up to 3840x2400 resolution - * or 18000 chunks. - */ - size.preferred_size = size.min_size = align_to_chunks_number_per_line(max_x) * max_y * 4; /* (For FBC when LPT not supported). */ - size.preferred_size_alignment = size.min_size_alignment = 0x100; /* For FBC when LPT not supported */ - size.bits.preferred_must_be_framebuffer_pool = 1; - size.bits.min_must_be_framebuffer_pool = 1; - - result = true; - } - /* - * Maybe to add registry key support with optional size here to override above - * for debugging purposes - */ - - return result; -} - - void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y) { *max_x = FBC_MAX_X; -- 2.25.1