Message ID | 20210111191926.3688443-4-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | 93e67af42d1920f5ef72f3bd0ed7bafb9e9b7e44 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139329jai; Mon, 11 Jan 2021 11:19:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlb7HfN0H9yDXhjgsYQiTZ+uexsM1NCG5P5EDPHPfBWGHd5hX/S4/QnXrNmPZST80r4fGo X-Received: by 2002:a62:fc4f:0:b029:19d:d060:27ca with SMTP id e76-20020a62fc4f0000b029019dd06027camr838470pfh.66.1610392789981; Mon, 11 Jan 2021 11:19:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392789; cv=none; d=google.com; s=arc-20160816; b=wO6LyrKeVRww/1kuejSVVayCoiLYEuhZy1QZwNHWeBav5SwEeBTni0B6LHfncnZD0Z BIbM8FMcnZPKb/JauPCAxrL6pNxT1IhadhjbZOrLDBEoZQFNj0LTeuH6+OYTLWE9tjPP yB453xM9I7+A9PZ7ZA+OElylVAlzdweAtQwU5Qj6XSTJ/vlddv+0CxG8qGDmkP56bUxS BdcKulmkb04wiG2f2xu00CFXwe8VUSxeyZI3y130tllC2aiWnvYcw+/RXwe9lX9V/u95 RbLFvM4YH9nOuQoUHApWrLc4rK6T7n2XGxJhO9j92wVEjRBtfQKKFGx58CmhkxbKKqPi 7zQA== 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=DA/Nb8euAwYIfpmi6PJ/AXXGrpQB8/h2wUmCGkswilQ=; b=EQjxJG1EuTsenQ+4bRB4Z61aIAFv4zB48tyh0dwYwDJNlxLHWolXh1XfKePp+e7Xjq WqIHKGUYK5/VXS6g4L7SdJqu8b5Kvyv/7J+jmjoce+1RIVHgRTtSbZCvpHFZQsPaHSPN 67jgpdQZIr8/1Lt9i3hw1NmRSBhJEop2aiPW8AXR6ijjXnNoGV5cCGDPYrV52KhwSyUh AEQ/1DmL7aP0mP2E3qANbRHWoMD8tKM/f6uA6xMxRC4cMCJ958mgWAYm4cmDpVaPA3RJ 5JJx917iPyZV1AaL+lSYxrQDBrbr7FuO0ZrXEVf9NcTwaQkKF9eG1CB+txo4nt2jxbjr 07wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=o1zswORD; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id u7si342267pga.593.2021.01.11.11.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:49 -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=o1zswORD; 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 A5F8D89DDD; Mon, 11 Jan 2021 19:19:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by gabe.freedesktop.org (Postfix) with ESMTPS id C32B289DD3 for <dri-devel@lists.freedesktop.org>; Mon, 11 Jan 2021 19:19:35 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id g8so4019wme.1 for <dri-devel@lists.freedesktop.org>; Mon, 11 Jan 2021 11:19:35 -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=deJgdJaEuReRAIxBvvkhhG4KqxPwTjkmLcBm6GGwPgM=; b=o1zswORDqJkgQ6gNl7NERNf4reA60BdU2ZMYXgFJFyEsZoX/97G3rNIhIAaBbqA7BW wAQihcz7N/lJ858SgzhqbfScg5rKcbAA/eIzLvb5dRZrI5oWl9oyx121Bo6pwxo3zEM8 D365DRl87k9MBs3ir5b92oiNs+I7Aav0Zo5MWYC3Y/pQ9f3haEh5qjqvyF9PM/vQ5JJ2 PwIP2HHcyxXUVnX/A9LIda9ej59Za2lBtPLW66k2Eoadbdw1cvSoM2LW3shjsvJup5Ah mNuMWNpCTVlLvSYtOynDvicygepHxRd32z39JWjhFv8Ra6ObdMdpgpcAhQNF5mN6Xv2D fN5g== 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=deJgdJaEuReRAIxBvvkhhG4KqxPwTjkmLcBm6GGwPgM=; b=GS3YKG7hwDlxYtZpfawfm3to/PLXjtRxUCQH2LxExUNq1cBouxl56jylCItYl2yvND mB0I6I42Amw2xDPKIBVHlwNP5bpbmC2yxRUzhRPLhS/hM8b+M61iuc8IqICetRDbZ0xe oknlR6eQ7yuG/dofinEW1g1+GtqSHgTvFvWlH3es8eCZRL/NFjCPURX/Xv2MXbbRJ1Sl Xos7ksoFotMOgPjSxTEItFuoqHYalVD73wkSAMSok48vWBqsjzE/Gbgf9s0fyKIclpto q8yS06kibk5EB9GQtB0Qo4pRITOnGGQEq0umUYTrjkxXJ/yb7uPPH+LcwsiqkBRG8vOd BdEg== X-Gm-Message-State: AOAM53364tq2ugKdfOt7vPMukqu2lypyXssR8E+TQoSFYdPbnNThWcUZ OXV853eIHG8fXIN1FiBFGLudzQ== X-Received: by 2002:a1c:b4c4:: with SMTP id d187mr295556wmf.38.1610392774477; Mon, 11 Jan 2021 11:19:34 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:33 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 03/40] drm/amd/display/dc/gpio/hw_ddc: Remove unused variable 'reg2' Date: Mon, 11 Jan 2021 19:18:49 +0000 Message-Id: <20210111191926.3688443-4-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Leo Li <sunpeng.li@amd.com>, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie <airlied@linux.ie>, dri-devel@lists.freedesktop.org, Alex Deucher <alexander.deucher@amd.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from GPU
|
expand
|
diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c index 1ae153eab31d7..7a8cec2d7a902 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c +++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c @@ -107,13 +107,12 @@ static enum gpio_result set_config( msleep(3); } } else { - uint32_t reg2; uint32_t sda_pd_dis = 0; uint32_t scl_pd_dis = 0; - reg2 = REG_GET_2(gpio.MASK_reg, - DC_GPIO_SDA_PD_DIS, &sda_pd_dis, - DC_GPIO_SCL_PD_DIS, &scl_pd_dis); + REG_GET_2(gpio.MASK_reg, + DC_GPIO_SDA_PD_DIS, &sda_pd_dis, + DC_GPIO_SCL_PD_DIS, &scl_pd_dis); if (sda_pd_dis) { REG_SET(gpio.MASK_reg, regval,
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_ddc.c: In function ‘set_config’: drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_ddc.c:110:13: warning: variable ‘reg2’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland <harry.wentland@amd.com> Cc: Leo Li <sunpeng.li@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/amd/display/dc/gpio/hw_ddc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)