From patchwork Fri Mar 19 08:24:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 404754 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1170918jai; Fri, 19 Mar 2021 01:24:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy26mkbZ4ib1cYuqOIP5ChuX6OuEF4RPpDbcqh0opr+VwAzITefhgWpOJEhRVzGfvGAY9lx X-Received: by 2002:a05:6a00:14cc:b029:200:5f06:2ded with SMTP id w12-20020a056a0014ccb02902005f062dedmr7990405pfu.65.1616142284763; Fri, 19 Mar 2021 01:24:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616142284; cv=none; d=google.com; s=arc-20160816; b=x+9DAH1CrKAFj1Rfv/VsS2pSxBCw/ag9aoyB0ZUFRyqVtjY+NQNf504Qk8JpNoqLqe JHn/o+6+ht/vCbrmxuMvbxe37pek64zk9VZI/UhLsxqmAGwm4ifgBLbu8yAZTO8c0tUx UTvhJeNUC+KzVLrssSq3s2jRbz2vv0RAcEsB4qtWRIchjPIz7DuvzriAWAD5NteGgilY qSa3kw/hHPc/B1C6SxYbln7DMWaIOOuDzo1gv5AN2vVLFWg2tIK3Lmb9JJQpr2NW+lCL zlEFTcAm17EYpAdAi8Ahx076hZX57yCPiAppqv5/lF+ZdpmMtFy/lZeJ8/G+Bcqp7cRF bQqg== 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=W+/oroL3XD2YlYqTDQFkYDYCwajo9Zsx8Hh1KP2sDlo=; b=Oim+wYLgUb1bRSJtOiv0uR6iIjz8btx0e0SNgMTAJab4Rm6cM1nvQRTtzGCu78ki+Q 7w5E0Bj/4mDDk7KIYdyYljB/ElwsryAs0Ga3MuoY0CmzuA2LHh4Budyd7N+Opd3uMjQw qv3TBg/2aewPUoRVp6iwGhOIoZzGHodcjBtPA6tiQ7b2o8uC0HfUUr39gfbq26nRk8BK QZPzVjs4PiAh/YyUCzJjb2j8mGdFVUmAJ7w1VhlrCmfEFUmdkFNamRGgh53dE+1Dhxxx ZWmBgTnngVHtllvK3jVO/nRf7rJ2UaVziB9XDEKAoJytphP5tp8kutLtmKBh2VT5W4mL QKYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=T7L8hIGs; 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 r190si5124983pfc.5.2021.03.19.01.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:44 -0700 (PDT) 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=T7L8hIGs; 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 116F26E9A0; Fri, 19 Mar 2021 08:24:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5CD1F6E99D for ; Fri, 19 Mar 2021 08:24:36 +0000 (UTC) Received: by mail-ej1-x631.google.com with SMTP id ce10so8268826ejb.6 for ; Fri, 19 Mar 2021 01:24:36 -0700 (PDT) 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=/33rrW6tAmVtxRYoiv0PK1lc5LAomei+z6FwtqsCisM=; b=T7L8hIGs4NLk/w7APaYDVvRcg3YuQAFMJ6VNnBtnkcgSafK23nyyVPEa6rAZ67DJa6 pie6iammssw0VfjfNCtarEdfEjG4/U/n5u9AndJt0nPoS1aaj14s4oeZ4Mm8nVAPYNhF LWenRGRbEwS6ghyOL9m7rQnbW+Z6j9A4nqz2CMJYsHK7Uko4usWy0g03vRKHG8x2kKaF gVQA8ZliD3ZV5sE0fA9ypKCbfpjp2zKol0C01DZbjSGXr608SKX5AnAtdQz09PXvWxTD vzEUkxtsjdLRYM5gkzSBJ//Vd39nmkCvOJV8bUkQAlBGVLVXdJ443a6A4mX2jpRRD1da LFnw== 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=/33rrW6tAmVtxRYoiv0PK1lc5LAomei+z6FwtqsCisM=; b=Gu0+cxP76IJ+EgRhzZg7DJoFoyt2873KAXVi4UU/Q+CM9w6fi/ysc3+tkQ//KJ20hD HDnzOv6zmD5nPOC9LpEOm3bGOKHwWM8cmVusIWv2fukh0CTWAn4Q3pbrapW/xGtof7Rn ycn24bHuiaMyVGfmWMacN9E+0v8h/TSCovNKyi2G7BfFW2cfwGYxIHxou/pFv8qNGYDa eu1WxIrHEPcSMWwvnQ1iXjGmFc0RUviyQ5Vz/7KjpdaS5wX45mKDUh74oxb84xMtuMMr u8mZgBch7VqrLZy6YViMU0BpPjbInzgCacaS/sAS1PpaRVvqCAlSUZGcMXsAWsO6CAoK kkvA== X-Gm-Message-State: AOAM5337y5swVxw5pz2Hz/zA9lfjpz7pMHJ6vS0zrY6RIcn4Cewfwxpx Dw9sbeX9I0y0aaL/6igf7NQaFg== X-Received: by 2002:a17:906:71c3:: with SMTP id i3mr2938932ejk.391.1616142274996; Fri, 19 Mar 2021 01:24:34 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id b18sm3273727ejb.77.2021.03.19.01.24.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:34 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 03/19] drm/msm/dp/dp_display: Remove unused variable 'hpd' Date: Fri, 19 Mar 2021 08:24:12 +0000 Message-Id: <20210319082428.3294591-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210319082428.3294591-1-lee.jones@linaro.org> References: <20210319082428.3294591-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: freedreno@lists.freedesktop.org, David Airlie , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Kuogee Hsieh , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/dp/dp_display.c: In function ‘dp_display_usbpd_attention_cb’: drivers/gpu/drm/msm/dp/dp_display.c:496:19: warning: variable ‘hpd’ set but not used [-Wunused-but-set-variable] Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Kuogee Hsieh Cc: linux-arm-msm@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/msm/dp/dp_display.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 5a39da6e1eaf2..31bf2a40a9eb2 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -493,7 +493,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev) int rc = 0; u32 sink_request; struct dp_display_private *dp; - struct dp_usbpd *hpd; if (!dev) { DRM_ERROR("invalid dev\n"); @@ -507,8 +506,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev) return -ENODEV; } - hpd = dp->usbpd; - /* check for any test request issued by sink */ rc = dp_link_process_request(dp->link); if (!rc) {