Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2509302pxb; Mon, 11 Jan 2021 11:26:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJze/+PQ5WU+CztEW9ogy3CYs1316yW6LCvVfSDNPXeNghoIJHBIV03HDzw+q8gDp8hU2I1k X-Received: by 2002:a05:6402:a53:: with SMTP id bt19mr692894edb.104.1610393202012; Mon, 11 Jan 2021 11:26:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610393202; cv=none; d=google.com; s=arc-20160816; b=fd6EPLRoX1WV0gLAK3aiHdOD/k9hPJ8xQiZ8bnm3nlxy8ai0w1hHjhxY4mSvzL0pXt /68QVZrwhBzj8QlUP18VcyMRdRhK7p8luFERZko6++IZSYwFhPyKHTMhkyPnvkm1i4C0 uoIImJLxsajL6xMKf06bnYPGFIyzfxO8VVNTRbBI4yb7UJ0lzcNhA5CtConi4VkDqT9v 0WdruxZ42J2OYIvqj+kFADDqP3lMGyxbRiKqPDHj+JwpT5uOk6EjqMgp87RRvBjzsUev I+scEHfoyU/bET+AV0yA/TYHfbyNEGIE7b9DltOqJa2m6sx730NjUi6ssOxuiTHjvwp4 ojCQ== 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=XglR2B7+pPX3eYsluIvPfl6OG4j36ADswhuMOYNo3hg=; b=BgPaA57wKZOJY/20b+yQTPxwxWh9bviZcu5J/mdUmW2Bd1Djj8PtS9D0ZQuQKeGMF9 nPjjvW05mNmZoCTM84/MEm4HZNhDBPWemr4e20D97anq4JW6VNE4MHfHDFJgVidlhI8i gpcX9EISUQ1R01QSlMcUS9ntrrc+5NKcztdr/c6wQrmUZ3nRIJTEq7KRTgylovVPEDQa zwsRaNHO58lDdiaJzSUzMEWU0acmvfIsQDr8Q/IPR9ffLZb+HLW2EiXR7+cjvhT2pstO y3ZzyI2YkvRkDmWZsjcEHuNzwVSsKeBQNY4oZdJXNemVG3fEoD0nb1UVxi7Wa+M5aW4a BEwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v0kjp3b9; 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 a17si128747ejy.317.2021.01.11.11.26.18; Mon, 11 Jan 2021 11:26:42 -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=v0kjp3b9; 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 S2404155AbhAKTXO (ORCPT + 99 others); Mon, 11 Jan 2021 14:23:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391003AbhAKTVJ (ORCPT ); Mon, 11 Jan 2021 14:21:09 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00FAEC061388 for ; Mon, 11 Jan 2021 11:20:07 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id a6so247595wmc.2 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=czTIF/nebrw7/enq6oWYYHcg71I/0MUyE1VqkR/lVcLL9Q+yFxEVDaH1DXfcjEAnDJ 6Wv1QdHVHdCPb09imPAj5PWrp4DboS/s5zrsnwWonVpmVj1MSav9WMjkVpNcn2olFNOz O22j2DRZLko1hi47D+/NQTYpF2m9B6XYvloI7VhQnlzESkdrSAs5q6rk0FqtiXD/YUzZ NL9Yz08FvLqyZioZn7uzDJrnmRdPMT5KQnJxlmUiZz+Kp5v3o39eBppLMdVezy+7mRDG b6zrUtW/OlFxgjPOk+9l0ki+DdciKzkEQIP6bFUQ4oONoaG3zyh94zJk9N3fi3qqCMc5 mQnA== X-Gm-Message-State: AOAM5317A8i+n3GacPtl/KbNRi3Z86qM07F7k2FvdbQgtcuzR07qeXsr EzSfmFKqUzfQXXL++7RtbSLRwg== 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 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 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 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: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, -- 2.25.1