From patchwork Fri Jan 8 20:14:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359049 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp855886jai; Fri, 8 Jan 2021 12:15:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7vVsZAuM5pz6nspIyEbCmV/xD6TDNJ8aXnFRPRqtFSDAQX/lNSbO7ilU/whjHbt8livW5 X-Received: by 2002:aa7:8d12:0:b029:1ae:4344:3b4f with SMTP id j18-20020aa78d120000b02901ae43443b4fmr5269552pfe.16.1610136947057; Fri, 08 Jan 2021 12:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136947; cv=none; d=google.com; s=arc-20160816; b=WnLgx9poZksOtg1EC39ycSJEFwNJzRHKTOpdFO/3/S7CVUy+pGQ4rF6b+t0ihEy33x 2MXGk+4mOmhhzBdHuUR+K7+NxEQtD451esvzFCc6dNwyGTrAmXhO9SXEKJ1ACx7NtplE AX/IuEYr2p0/qAvkK4CUq12yjJrPiwlOYLJoTlazoG9gyJkrVGapYNpLx3DwG7QayPvN vynpsaPFLchX27LL2b5PdHvhyIP7dh3j2lIPIEUqLTGGNj9etI9U00BNQG9I8UXB3IlN wX9TcNRgG6E7dqm2OAQIbCR3Q+3xBy2n0/ReZRLAY51cWqzxKaZ6Vy8Q8FmhvQeKNT2E UqBQ== 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=UwQz7nXCPnpFcgC4u4J5aZ+4VkEFdno9DCB58C9pzSQ=; b=j3RlwZbrgFclqL1V13eH+Pn9Lx9WCmc0n1jQCQ8Li54AL45tquwvuvOtJtkP0yz0Ih sMYIMXL1v0hYTDYeiD0UuBoTS1A3nvkPuPg5lH1zioIuL+oGaqJ2Y1MWl5gb3FbphUBa CBJGgsRg+FrUVd/93soh/KmDsfmj7ULwUWHEhylpyHNPYlacejXYKClD3sIE9PjZfs64 H6BAal8OR/hTabF0iPR93J8PXiE0ZBnGMg+VuSq6LFdPykwfq9pHWtAQunmdG8xfZbCI QKUp7JYmnse/UvzHCQvhO3/B+usX484VvRa8I2yCGQK6OqXdVJ/KhnSXEaDlYX5FAl+C W/yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="oLM/pC+r"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id w191si5303188pfd.105.2021.01.08.12.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="oLM/pC+r"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 1FEC96E8E1; Fri, 8 Jan 2021 20:15:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id 327916E8E1 for ; Fri, 8 Jan 2021 20:15:41 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id i9so10169355wrc.4 for ; Fri, 08 Jan 2021 12:15:41 -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=B0vgdR8naA6iZCQ4IL55g07H1SHyqDXPDametYwo0Pg=; b=oLM/pC+rSUDP4ZUfp3a6s6i/HWBsHp9Du8iTI2RGZXxY1NVI07AaFBnwpdJlHwG0ri VQWy/Y4lQ4XMyQj7vkEB2ONHZswhsBNlxrWqZDqKyDwMCsD0tvwyuGX5oCvKMYmbJvDb K39uYXCmZbZuRkO4RkxnD88hGmVCmzqPdBvnFKoWaghzSw40LfLtM0F52BlernQZy5A7 0+LUMRcbxP334bSPiCN3m1gjS8U5YoMbdS1BgCd6DO48LnFmd+Q+V4szxYZkFUmqmOix BGN6f5dDtv1T46Dye2RikAAdhcILtMNFQNof7yhedF7tFiwrW4S39SWbEhIwsG5JY1Mu bfog== 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=B0vgdR8naA6iZCQ4IL55g07H1SHyqDXPDametYwo0Pg=; b=fvlQ2Vl8ii9W+aS8FNqDtkSANJ4m+BVLUIU8lBIPK+1h4jpbvMfUJ8JiMu0XnlvGV7 6KC/FQI1R/HGAc2sDkvwQOhWrpnvLUhpjHhZJLZW+aKhNiIzsLLfjlP8mZP4yXpgHgGJ 9P5X5p+5zA70wewkSgHUNsGNJqdjSI4w9fnbSNMwCtAWyYsgkvDdf+RlHAkXzF/nhtn1 05ZpCjdCw93+QkF8BdJf02ezGakb9biONIh7CDtp+fqNO9ikBfqXbC45XwHnMb5mcQcE AkBhofE3caEGBcDpwaIOBywiocuymxH00b6r47lFlru3UsP0uhP4qG8327cA/tSY/ZUT mYow== X-Gm-Message-State: AOAM530w80myiQF9Q3a+RWxnPXXqk3ZJWZlYtG1GnU4yvOJboIVJFPe/ MnYLKgi56tLouYoHxfEFXwoZKQ== X-Received: by 2002:a5d:6751:: with SMTP id l17mr5243954wrw.73.1610136939823; Fri, 08 Jan 2021 12:15:39 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:39 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 24/40] drm/amd/display/dc/dce/dce_stream_encoder: Remove unused variable 'regval' Date: Fri, 8 Jan 2021 20:14:41 +0000 Message-Id: <20210108201457.3078600-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-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 , Eric Bernstein , dri-devel@lists.freedesktop.org, George Shen , Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= 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/dce/dce_stream_encoder.c: In function ‘dce110_update_generic_info_packet’: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:70:11: warning: variable ‘regval’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: George Shen Cc: Eric Bernstein Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c index ada57f745fd76..265eaef30a519 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c @@ -67,7 +67,6 @@ static void dce110_update_generic_info_packet( uint32_t packet_index, const struct dc_info_packet *info_packet) { - uint32_t regval; /* TODOFPGA Figure out a proper number for max_retries polling for lock * use 50 for now. */ @@ -99,7 +98,7 @@ static void dce110_update_generic_info_packet( } /* choose which generic packet to use */ { - regval = REG_READ(AFMT_VBI_PACKET_CONTROL); + REG_READ(AFMT_VBI_PACKET_CONTROL); REG_UPDATE(AFMT_VBI_PACKET_CONTROL, AFMT_GENERIC_INDEX, packet_index); }