From patchwork Mon Nov 16 17:33:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324431 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3500814ils; Mon, 16 Nov 2020 09:34:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwSgybbGwqiU/95euMMNAfhfhVFRM22nMeNpKNDw3OJGmqIeXdWszDgvKnC5LvelW0g64E X-Received: by 2002:a17:90a:460b:: with SMTP id w11mr15902pjg.12.1605548050380; Mon, 16 Nov 2020 09:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548050; cv=none; d=google.com; s=arc-20160816; b=uzc3Yc4pyClBHHMzfQsPtFIH6pD6xKZdey0pJUnWDqk367i0PUFMVVceqSk0WaBR+d yI5OIseQudjpC7Er9djLOYhWzaKrTO33aDy/DDMnkDS8DL+dasbj0I5rwGI9PHy3IdOM swjfgl6LqJmAqJuLvL2zaro9xYnMpSP+8VWrXBsTJdLhjSRGieIEBIUprFDdooY2ZQq5 GapMHiqCG62C6gjFB9OzUE1WP91C6T0dr6XXZM/y5SlG1/IiPrnFuUCnoQSaHAaTzn2g TqKNcDonaEfhNvlgtIBePG7KFxpIwCQC4zuZmkeQvlhyT5uiF3m4Z/X2G8wgiIBji0cU qjPg== 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=v64TEXhhWGMb/caDvLF4xSoAvofsrOynkYw4Gw1iaUo=; b=0hh7pIIZumgCKJVf+yFAGdI2mtA/VHsvpaXueOmgzZJIT3IsZW7pE4ut25Fh/Ukzg3 mxxHo6WUXKzhJvvOA4RBvbUIPJ7htZmU1E5o24O4Uz2dV3ssVfp5uHWnIrB723JSvD7n Q2iFuRpIPweOnhz9tECz/BBCcbW3+Vt12UiEa6ZkoAwQtMkzCMcduHArmyHuqFrcrYAD krsp1QBk2IC8aFgeG7DYmHXeL4IVf6rzB2dRXewGtPqNLLwRknLPcbrxzBQ8OrnpGhcf ADw3U+8abUCKUolfJbUJHQJHT/Ci1AMHSWFRlV/Ww9m1VY9dffT8I8Q5aA5x805CCmuo NFWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OPtujtuU; 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 r6si15906904pgm.338.2020.11.16.09.34.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:34:10 -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=OPtujtuU; 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 30DD66E03A; Mon, 16 Nov 2020 17:34:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 217926E03A for ; Mon, 16 Nov 2020 17:34:05 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id o15so19620958wru.6 for ; Mon, 16 Nov 2020 09:34:05 -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=qEyPNgqrCvgW7yAtw6B6vQyE222bBpFcTf7vHkr21Ko=; b=OPtujtuUIiaHPXrwEHhBFdgesbmCfs+lQzSA9SMtgIcwEdph0SW0wllmS/L3kUHbce Y24r/TzNwhqkpzekveoWb2t/h8FdnLBdgOlMPfvBjCMe8Jm6tixGksZAvVCDSNvZllNX Awv7Cl117cA02/Z5UmFgwEmfpwAq22KGcXm07IXFwhz5WMOBfD1wfNjs1S31Sb5Sk4WT egyPpwERRQ/nrOL0xiS7btKXz53rGfcr/yv6NK8GkUlxkkvZ1jjLphtmn8iqqVCH9QkQ IxUTqhA9CNRLEmHcxm8l3EE8sPji/wzUvnULxrXfhBd3BS97mQjTD01EQKD4MprDzcPn m4PQ== 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=qEyPNgqrCvgW7yAtw6B6vQyE222bBpFcTf7vHkr21Ko=; b=Tgs4WzFHySqnPDKYBruvmHi66IByYCfluo0KJt/X2w8sCqbw1oXsNJdjClQThbbo5X k7P4pQ2HyEQwrLidV4QcfmZAgkc7ilh9/mUUltVPvg4dnKSt4TwqkfnKq8scLysgG/zM BCExJSSvx90PvgbodDYz5pWVxBUfRNJ5x4MqenY81Y/hF8AqxBMbqa/6JfZtioIOIG00 gBPKuwQUWtQO0rnAM1QgO341P9YhtjrWweWgDHSYl6Ypa6KH3G3yzM72gFsz826g2GhV IEhnNZo6aftmLQtpqAZ2EXqJ5oBO7VijBrWXoFASV7kUMbhm1XF3vvuQNPX13MbFSEEN UxNw== X-Gm-Message-State: AOAM533TGnuD7QHirYmxn9dZEDiEe1wyUhPabMEH46esesPHXJE6eDgg NrQZI923ddQHbCCl3x65paDSGA== X-Received: by 2002:adf:9e48:: with SMTP id v8mr21978405wre.55.1605548043787; Mon, 16 Nov 2020 09:34:03 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k22sm20178562wmi.34.2020.11.16.09.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:34:03 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 01/42] drm/amd/amdgpu/atombios_encoders: Remove set but unused variable 'backlight_level' Date: Mon, 16 Nov 2020 17:33:15 +0000 Message-Id: <20201116173356.1828478-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116173356.1828478-1-lee.jones@linaro.org> References: <20201116173356.1828478-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: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Luben Tuikov , 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" Also removing the call to amdgpu_atombios_encoder_get_backlight_level_from_reg() since, according to Alex Deucher, "We call it again below indirectly". Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/atombios_encoders.c: In function ‘amdgpu_atombios_encoder_init_backlight’: drivers/gpu/drm/amd/amdgpu/atombios_encoders.c:174:5: warning: variable ‘backlight_level’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Luben Tuikov Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c index fa817ebff9804..6134ed9640279 100644 --- a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c +++ b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c @@ -171,7 +171,6 @@ void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encode struct backlight_properties props; struct amdgpu_backlight_privdata *pdata; struct amdgpu_encoder_atom_dig *dig; - u8 backlight_level; char bl_name[16]; /* Mac laptops with multiple GPUs use the gmux driver for backlight @@ -207,8 +206,6 @@ void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encode pdata->encoder = amdgpu_encoder; - backlight_level = amdgpu_atombios_encoder_get_backlight_level_from_reg(adev); - dig = amdgpu_encoder->enc_priv; dig->bl_dev = bd; From patchwork Mon Nov 16 17:33:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324433 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3500850ils; Mon, 16 Nov 2020 09:34:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5MnpqVcpei3qNWbAj7My1+CyM+coC15h+pN441vHDEe8BJ4WWW+fSR2xeU5BWOswHUYqL X-Received: by 2002:a17:90a:a090:: with SMTP id r16mr17012350pjp.179.1605548054901; Mon, 16 Nov 2020 09:34:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548054; cv=none; d=google.com; s=arc-20160816; b=jsH3XhW/u0WtlG3zwsfrxBaayOk3BcrarSCRo1yfEK62tBSTUYDv0zYIYaUv+h/OLU G0ik2PlUwOBaxZtPIcViTuzKnMKMR0vbhAv9nu4dkR+UNrmfRYf9SrLe0L7BnRpfin8Q ZAel/8UJJMd/GEc4B0u6+POE4NN2TM3SlcrGEGdQdzfeGopmxuDwQ372YvfGe0s2O5bR izLYWZcS7VoZQ1Hkle83jZc2B96PbH0EHit2p+40Pb+B7tvAzKQL8Z8bOOThxO70GY/N kwAmuSdAZC7bFcT5ZBJ1GsryH599maK5eby/Ke8qV0NM1J/3xLHvhZRHsqWmRt1D/O2C VwDg== 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=WbplkZDM3Hr56eB9y8zH/01xVS09Hn1g7uH08oQNXs0=; b=fRv/dliKT6t4j1+1I/9NLLaC0GY2MEDFZrQfiffJdiJr1TLqF0v1noqrEpfVXGYfo8 6lvjKADRkZUjpQu5Qjw+QTKIJFu0NSUsgsF77gRYHs4w3I0Cju403uVuWYFlyfG1z+pb E7gMH7pgVFxfY8p7pSdz7v23IwxNtIEhOQyv74yR2jZQwi91D94qO6HMSMIvFsUsSB/V TBiGM1tW3wm0xxhqiKKy3PqamMvTs1hh1LsUAmM8nqL+w2aEytkuyA2lGFhXOJ9Hw2ih QVNrenkiDzt9etI/Va5fT6VQy5NeKW6yxtVlsFZMuY4OwTtxD/5W46xmCo1qAbh9WFdR D72g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fyqsAvQs; 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 68si2413027pgh.225.2020.11.16.09.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:34:14 -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=fyqsAvQs; 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 CADCD6E045; Mon, 16 Nov 2020 17:34:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1B8AC6E039 for ; Mon, 16 Nov 2020 17:34:06 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id c9so661wml.5 for ; Mon, 16 Nov 2020 09:34: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=wySX8cNvv9NUCsmEXsR0JBc7XJM0MHUH49ItqBshbVE=; b=fyqsAvQsjtZPgnLlNYuAqgjvLAD2KEzD8fnpw7ksi4Au1TwwXYnRVrsBR/kFuKwr8T ay5r44BEiVO6rwJ7s46T5efTy1mn+/E3CdpPp4wq1sdrJ8SItiqm8ofCZVWmE1NUqlJM v46lkfvxWS2ekQ5Iua6EGzvtlGIopUbuL6qRgPHdhxTnXuQ8DJr2rqgLDJ2dFJpfcym/ 0J7ykIgHqeohEh1o0dXfzfgUCPb6i2O3o79f5Dake/7UTZhmgEjvFhyW70iMUjct1gm7 4wn0jmAsn+wN8vfwj2vEvz+ulBbhMT6lQ2ErhB/VWJpnfR8iA5zwaBp4yz5udBx1ZgKS oxUw== 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=wySX8cNvv9NUCsmEXsR0JBc7XJM0MHUH49ItqBshbVE=; b=Rpgt0XR+nlwmGsvTq7dNtLmhC4JQP4z/3HD7kYVIsQ9kpScWkIZY0Z24gx1ee5laBL gBQLe2IoJQ4liYj3SXY4ERdVjTEYhxyMJsL4KBdJmzUfSF5hap+scduU44dPe2TK5jI3 SWRUdRi+k3T8vvLUfBB5ByJ2DLxN453RdHRxoG6g5u1UD96J4bjjyIXMN5wmO33CoKNR H8UacQil5GuFDfdqkicVnm5jZKbl2gW7jcGdDYP34rpG1BM0iMJoH0+mHmBj5D/J4IWO 8aHD35393rT9frbbbMJufosveHuL7WRa1gtUvahwF/pn0qanBhlJDjR3FRaCulbMo/vl oTdw== X-Gm-Message-State: AOAM532K2+J/c8fJsPeeZWhWm4s1mbYV+3I9Ee6DZ30cxW/C2vx4Uo9u EmVs2RliQ+PC53arlux7SpVuTbDudIbEkg+f X-Received: by 2002:a1c:5605:: with SMTP id k5mr15783540wmb.99.1605548044818; Mon, 16 Nov 2020 09:34:04 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k22sm20178562wmi.34.2020.11.16.09.34.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:34:04 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/42] drm/armada/armada_overlay: Staticify local function 'armada_overlay_duplicate_state' Date: Mon, 16 Nov 2020 17:33:16 +0000 Message-Id: <20201116173356.1828478-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116173356.1828478-1-lee.jones@linaro.org> References: <20201116173356.1828478-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: David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Russell King Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/armada/armada_overlay.c:329:1: warning: no previous prototype for ‘armada_overlay_duplicate_state’ [-Wmissing-prototypes] Cc: Russell King Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/armada/armada_overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/armada_overlay.c b/drivers/gpu/drm/armada/armada_overlay.c index 30e01101f59ed..6346b890279a0 100644 --- a/drivers/gpu/drm/armada/armada_overlay.c +++ b/drivers/gpu/drm/armada/armada_overlay.c @@ -325,7 +325,7 @@ static void armada_overlay_reset(struct drm_plane *plane) } } -struct drm_plane_state * +static struct drm_plane_state * armada_overlay_duplicate_state(struct drm_plane *plane) { struct armada_overlay_state *state; From patchwork Mon Nov 16 17:33:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324432 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3500833ils; Mon, 16 Nov 2020 09:34:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwocNTxX/LmWNKYwc3s7DNI8GzdUr29KvA3z95Ez+tiScIUuicJTx8W8Kg3+vb20XQCoa2m X-Received: by 2002:aa7:955d:0:b029:18b:f646:7d21 with SMTP id w29-20020aa7955d0000b029018bf6467d21mr14288052pfq.61.1605548052839; Mon, 16 Nov 2020 09:34:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548052; cv=none; d=google.com; s=arc-20160816; b=TzQr04frwnlRnlPISrxKvPV7AUSOcjQSA/+UYpJMCKDzEqsU/WN+aLu6sxcJQmnvPF iauGbPgvr10nW9H+qQvV/F/FLGD6YTthhOMZBxahN/P7f5FU8JsAMdN/y0tl3QhVbLLC SzukyvYuCHg2oNzV8I99adO3+eK/Y5cK4w/sR9C1UjqkTdyHi0fZConGOcPA+lBFO6lw mV0UfgMNR791+UPnMR5NO0xXNMmSSIrDYXXjpPC5E5bq8seV1EcIAk3RifiY3uSpWTOb y/DesndREWtlZrwXqQJcsUJZzo8kDQW9P6Z4598UgdSlMV5nKgvae2QFsuyFERcp7wdm 1YUg== 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=bkcAQ4Ovtft1p4no1x8tGraBHrUYNmUoXOqKPDFE7Ew=; b=IWfpR6dW8Wn6ouAYD118KwueZvOEM35q1L2ey1NIUby79KL/F3FUocZd37FLiw1zdG JsHFwIi69cDnCl+NE7dv6SMFcxZEfr5BbPFDoLTERAdwz240Yeq/q9St5F9pTmSvERfX smIe9m4dtPaplm+n5wBsIr8ydh1dEgO3YjX94IeiCkmb86t3FjD00MDhIq5Y4oSE18Mx Yj9dmtoNlYMAgWHtMW1c7ko1FRXtyq0clGW/siLEx2b8a43hpeTfBy9vKbtzeYlmEl/x qs2pmMwbpLm01/QsgYrFpxNJgCwVeBoHmZXufqR+566mnZ6ZHWqKtldhIr8wUxndwMAU UcNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cqC85SAb; 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 x21si2389691pll.175.2020.11.16.09.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:34:12 -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=cqC85SAb; 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 801406E039; Mon, 16 Nov 2020 17:34:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 49ED26E03A for ; Mon, 16 Nov 2020 17:34:07 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id o15so19621072wru.6 for ; Mon, 16 Nov 2020 09:34:07 -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=451+tFthAljOAh2f/Wv8bktxEJYp2PVcrpZPPSF00gU=; b=cqC85SAbvKb4vxP7CxB9dr4lJWpnhLV/bViOX/iYNsOK62UjscaixwfZ+7HpQ6X+Aj bQ39omF4/4UFe9u8ru1Uka99/ZD+ipHFxL/krKYjAHVCU3ZxW/IqcAiK2X7GDyH++Dmv pK5DSQ7ibKOEx9THmb89wrkmPYiWTLCpogCDuvJQcuawwN8RV7vAbaoJH9hNL+XCx667 On8f9BmcWcdjvdLMOF2P8QfE2Se3Lm6wENVAqdz3wvEHpUaCSqmd7x4b9oLSkRyYkTXe E+8QN62Au5MDWSB3V8KIkvypkCRpK2woa2aY9HG6Je98SQtZAkoWZaKKo2uW0KetB71f 3/og== 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=451+tFthAljOAh2f/Wv8bktxEJYp2PVcrpZPPSF00gU=; b=Sywt1JPWaM+K3b7+W+1gY2CG4TUH06D3f4XXDz3E/IApO2W3lm7EFOOm7DQ0GyjGyK 6S9ZqFw/kdxvFVJo5fuz/wOcu2AGhLGZtk93nCtfmzKNG+YyMdkG98yAJnUuJVIx+3zJ UHN+lD703Q4EXnYepKF2DIwCC/lKH8SHdeN3X1EewRVB6crctCxbIb5yrOPScgEyFMBR GTGECh7fp08XsEUElgb3/Ae0hgdqvD4GL0kwRPYaqMx2w/Sjj2BER2SLhDOMKXqUckLB d84u6zfKml4NaDyJ5om5l8sWMbGAwO+17qTM8O9BY9zvlUFiMLY3PLNmqPwusDL+Mkmq IjRg== X-Gm-Message-State: AOAM532MTOBMXUnvzFSM3bbsZzWWIIL9XgCq+wuZwwiE44ZPhHK6J7Vo 01+E+7YX3vqYoFHPlMMuo10wyg== X-Received: by 2002:a5d:5701:: with SMTP id a1mr20225355wrv.120.1605548046015; Mon, 16 Nov 2020 09:34:06 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k22sm20178562wmi.34.2020.11.16.09.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:34:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 03/42] drm/drm_dp_mst_topology: Remove set but never used variable 'len' Date: Mon, 16 Nov 2020 17:33:17 +0000 Message-Id: <20201116173356.1828478-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116173356.1828478-1-lee.jones@linaro.org> References: <20201116173356.1828478-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: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thomas Zimmermann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/drm_dp_mst_topology.c: In function ‘drm_dp_send_query_stream_enc_status’: drivers/gpu/drm/drm_dp_mst_topology.c:3263:6: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/drm_dp_mst_topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index e875425336406..0401b2f475002 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -3260,7 +3260,7 @@ int drm_dp_send_query_stream_enc_status(struct drm_dp_mst_topology_mgr *mgr, { struct drm_dp_sideband_msg_tx *txmsg; u8 nonce[7]; - int len, ret; + int ret; txmsg = kzalloc(sizeof(*txmsg), GFP_KERNEL); if (!txmsg) @@ -3281,7 +3281,7 @@ int drm_dp_send_query_stream_enc_status(struct drm_dp_mst_topology_mgr *mgr, */ txmsg->dst = mgr->mst_primary; - len = build_query_stream_enc_status(txmsg, port->vcpi.vcpi, nonce); + build_query_stream_enc_status(txmsg, port->vcpi.vcpi, nonce); drm_dp_queue_down_tx(mgr, txmsg);