From patchwork Mon Jan 11 19:19:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360563 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139841jai; Mon, 11 Jan 2021 11:20:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWWKLfmevXaPJB3baUl0EZT/n/f2YSP1ofNPlIa+yn1HafrPasVGGFoJe9MwqoYStG3xd2 X-Received: by 2002:a62:7693:0:b029:19d:92fb:4ec1 with SMTP id r141-20020a6276930000b029019d92fb4ec1mr916056pfc.4.1610392830593; Mon, 11 Jan 2021 11:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392830; cv=none; d=google.com; s=arc-20160816; b=bjL2kDZe/FoMcTqP5QzuFd5BJtNsdXkCICkgy9Br+SehlRELQFtHdWxg63RukVjlGK WooAbRqv2l4C4D03hfra0IkUvj6BrOMn8HUwoJFPJjwWLE8Gdcv8O9KjjxDP4RsptHY7 0sOoV8Hk+ILhfBz+1P0jRs8FZUADWx0j/Hbv8lKBnBgaeoAnJItRMpZKjsimNfOi89mz sN0T+vjZIEetQQHPu/HfCVSVmgvik659NbYMo5npoj3sjx3DcoT4QZwRX75Jm5hkGDip 9zAngyo+iHCP9mkY5Mqjxym6OuJnVHaWhguJ2BDo1gTBwgiRl7Sqc3L4L3oWO1Fvk+Zv QJAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=ifQa93w1xzgj9HPQK1zyVB7ZOF2UiGCx6csL7A62fjY=; b=01I2IKLyW4s9UxhWuVCqkNDCgGIChfRWJJjwy4hDVaubeSPDxN9WkzH+5VaNiEWh6N WidPoDbztYwB4XDM+KGnBBszfHo4qeEe/NzjLym34FY1tmnWTOB6HG2n5wAzHj+MqWXY AJToNgKdJObhiVkhdDCM1feb/vOsmD79lF2PqCfeOkpATv5EZbMMXKLdAEoaiW17ofGB ns4mIO5AxY8nXCaT9U+JyRrDqB5lpNkQtRZda49cg1B23I1KIzIuu1AO9/ed/bUpJBhm ThUYJIhs4HLk9tn9G1WlKvEEqOk6yp4/85n71CQ6YKctpV5qPR2iPRq55HViRgwz+Drs 0zBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=v0kjp3b9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id e2si447674pfn.190.2021.01.11.11.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=v0kjp3b9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 60FA489EB7; Mon, 11 Jan 2021 19:20:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 160D489F03 for ; Mon, 11 Jan 2021 19:20:07 +0000 (UTC) Received: by mail-wm1-x32c.google.com with SMTP id y23so302882wmi.1 for ; Mon, 11 Jan 2021 11:20:06 -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=XglR2B7+pPX3eYsluIvPfl6OG4j36ADswhuMOYNo3hg=; b=v0kjp3b9BaCSWh+eLTY3X+pT+IYILY46vX6ifaGyGDT4awOaro0c1mcQedYno+827R h2JPqlkQdJOPKtsGqOoglgZOGPuy30u57Cqrb+yeSlnNpGlAHVF8hWryXYe++utM/zuB oYiWKcEfOaXyiPPEVAVAFQNkBFiFOIZ75IZn6vjnKgTrY1R1vhUrIMfq33GPHSW3keAs mOXBVzx5IwmblOpa4CkOoHe/FchcKQuDsp4rN77Duvj4fUia2n5Op5mvjzayQYLh1B5V deS7OhtDpRCIyFCXJWMDePGeNg4xcOWPGrdkECr9T0ED9vbDU+yEOTk49KT8TDfvmG7a A0Yw== 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=XglR2B7+pPX3eYsluIvPfl6OG4j36ADswhuMOYNo3hg=; b=WojsAqTsIHQwoXk8O6OjMU8O8etLum/dkUGEyMmipBOiSNWch2FuUYYhB4U8ZwpAuU QYRAv1T6qLG9vs5DMUdwSRMeoBPZilPOyGLFuOVzLJUf2gt/6gjHX+symwKK22lnKMMJ bfVskv2gArZJ9c8hAgqPeIhLOieD0cRnD8PuHi4ES7nKxHeVcBWajHw1Db+htCp18xl1 cIa0ohDW5DqGfvVv4l995FbQ1AmNCCunU22VbttCO/s94FPdEF7JWmiqOglY9Do87b/B Ts94tYKpHgUlGsoWVN4C/TFXrBIvc+OKh+ypolxm9SiQiH1kEwP193A1E0FnTMROv5bT +Lsw== X-Gm-Message-State: AOAM530I0sV/filf5glDAsnI6PnRWgj5sAGiXREE1UpYbTcwMMYNAOTQ X0F1AjbixkHwdfN/PT8NKa/vk5YN3s4h1tC/ X-Received: by 2002:a7b:c306:: with SMTP id k6mr294573wmj.52.1610392805783; Mon, 11 Jan 2021 11:20:05 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:20:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/40] drm/amd/display/dc/dce110/dce110_compressor: Strip out unused function 'controller_id_to_index' Date: Mon, 11 Jan 2021 19:19:13 +0000 Message-Id: <20210111191926.3688443-28-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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_compressor.c:429:14: warning: no previous prototype for ‘controller_id_to_index’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Lee Jones Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../amd/display/dc/dce110/dce110_compressor.c | 25 ------------------- 1 file changed, 25 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 18b0a69b0b1e8..44564a4742b52 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c @@ -425,31 +425,6 @@ void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y) */ } - -unsigned int controller_id_to_index(enum controller_id controller_id) -{ - unsigned int index = 0; - - switch (controller_id) { - case CONTROLLER_ID_D0: - index = 0; - break; - case CONTROLLER_ID_D1: - index = 1; - break; - case CONTROLLER_ID_D2: - index = 2; - break; - case CONTROLLER_ID_D3: - index = 3; - break; - default: - break; - } - return index; -} - - static const struct compressor_funcs dce110_compressor_funcs = { .power_up_fbc = dce110_compressor_power_up_fbc, .enable_fbc = dce110_compressor_enable_fbc,