From patchwork Fri Nov 6 21:49:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320845 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1657046ilc; Fri, 6 Nov 2020 13:50:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/MI76pMvquQvSNdA2U/6xerfTkRupQm3mro3Fk7+8MQ62iLhuDZazk2UvDO//3M+JRBcu X-Received: by 2002:a63:3041:: with SMTP id w62mr3372018pgw.166.1604699411971; Fri, 06 Nov 2020 13:50:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604699411; cv=none; d=google.com; s=arc-20160816; b=gI44f0GBMBB+iTcv6V/HCOZz5ajASJXHn4Ow7AwwJF7KB72uUNc2QyYQjLihWYAgOF CwWIsqRFZDC2iWBrsjAmNIaIdKN1a57kj3Ph19Vl3XNdfIMc7a4vc5+oMvc2Q6mca6vo FQ7TPrQEicXV9DCfncyr6hBYzX7HermfR/HW2KdN4yhpS+k6qctDHEuIs6Tg1zgUbN9K nkt8ey4oM44PR2Kf/eoygZ16s/RVLbDxUGMCl6UbCodoELO62NbEiSlk6a2tZF+cS7Ll iF+/GTH88W5nOIjel/7isb4KecNtAEg3rL382BZMtMYSWWYabzcNHhDpTR2aKfCzooWT egtA== 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=m7rFZqEGChchV1X2td7Lx3WGa3BCZqQtNkzbYSADQoU=; b=Z6nX7L0kGphCXS3++t7F11U9h96FkzrPkO5F8wmlgQX5jXOUINUdGuK7uPAiM7YmC4 pdA77YZIeULVzbVniG6sOtJal6v9sYj/64h1XneWpiK++aoPD+iXbBFJvCBJ9TkW3XH4 AhYTQUXnNpjB0FgNhgyTZuZE71+p/lNA0qp6pMM38QxpQSBw1ZUY3oOitiKbS/NtdNUv u8ae4DwgZdHbEMYZyGYbNLu0uPTL6f1J+19qiEZredS4d1t9zT5vEYgGAJunDUZENIkr OUFBKO5B33WOhtHAjWCsc0LwPH5NlWXxPrMfsRIAMYcAro63sDi2M5cWWN+XJc/mnwKx YdQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=uu5CGwOh; 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 z18si1984932pfj.123.2020.11.06.13.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:50:11 -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=uu5CGwOh; 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 269A26EB24; Fri, 6 Nov 2020 21:50:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2E1816EB23 for ; Fri, 6 Nov 2020 21:50:01 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id v5so2842489wmh.1 for ; Fri, 06 Nov 2020 13:50:01 -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=/yTQMc6a66cwUFoQYWGGyiO2EU4ADWxZkG+2OvZt+WM=; b=uu5CGwOhSh+kpjSSd4FX+GvasU7eWip8CDp0IRaYQIF5N1TIYgU5kTexPHmzjkcK5D rTMLSCA6JSbeVTgKQKc0amCA0raDfgjYOkfCwhHq6PPFHEqV2O2FThee1nR93MVA41DF vznj0gRfU91Nt7HHqrhb1lHlpEqH573c8ytllAEtmVkmRqGXc7tF+34xrKGJQ+2DtLBi q4Qgut7OuPIbGSw2oNfsoZxevt2fuKfP00Wn4+I3MglnWzYYBwbbhQxF2x/EzvEfJ29K m1x3flrkiiysoh9NkBkFMCBloyKb7FbsxskEnnXG//znSHi7DxDSXACWic4J5SZHaJrg kTxA== 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=/yTQMc6a66cwUFoQYWGGyiO2EU4ADWxZkG+2OvZt+WM=; b=J3Jf1ZnzH9J98E49ZjydeY3LQ+iVN0MCCma2n+gbuFV8cFEN5d4utIG02cSR4ld7T3 hXDMIbhHo1L/ZExxStBIjoxB8+VDempYUSHeFJbe0C8B17Y2GolWskRvqNioDw7DOKRv pizUdA/AGLQFUDeA6KIvLLljZ3TLNsX6C/jIOpCowL1hCRxevQlNn4+M6uHyQw18RWKd 8eZREjQ3vi6HS3H773C5KdFGszFUZr1u6aez5fv9B7eSiCKTVUcmfM/MR/iA0+b4Q6yW YNwhpYsNajjEDnn2/Yu5O/c/Qm7GfQeCKt1+p8hvIQKJhtJr903meECUa52xlxQWoTxx V3ew== X-Gm-Message-State: AOAM531QfTHOUBVvqBotSh/KYjqRPNfrWlYwGWf6wKXGLmoqPU7VBK9E n+GjaM1OdWpPAar/EdgGhC0fXg== X-Received: by 2002:a1c:8087:: with SMTP id b129mr1656632wmd.10.1604699399772; Fri, 06 Nov 2020 13:49:59 -0800 (PST) Received: from dell.default ([91.110.221.236]) by smtp.gmail.com with ESMTPSA id t199sm3981084wmt.46.2020.11.06.13.49.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:49:59 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 05/19] drm/mga/mga_state: Remove unused variable 'buf_priv' Date: Fri, 6 Nov 2020 21:49:35 +0000 Message-Id: <20201106214949.2042120-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201106214949.2042120-1-lee.jones@linaro.org> References: <20201106214949.2042120-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, by , dri-devel@lists.freedesktop.org, Keith Whitwell , Jeff Hartmann , Gareth Hughes Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/mga/mga_state.c: In function ‘mga_dma_iload’: drivers/gpu/drm/mga/mga_state.c:945:22: warning: variable ‘buf_priv’ set but not used [-Wunused-but-set-variable] Cc: David Airlie Cc: Daniel Vetter Cc: by Cc: Jeff Hartmann Cc: Keith Whitwell Cc: Gareth Hughes Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/mga/mga_state.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/mga/mga_state.c b/drivers/gpu/drm/mga/mga_state.c index 77a0b006f0669..0dec4062e5a2f 100644 --- a/drivers/gpu/drm/mga/mga_state.c +++ b/drivers/gpu/drm/mga/mga_state.c @@ -942,7 +942,6 @@ static int mga_dma_iload(struct drm_device *dev, void *data, struct drm_file *fi struct drm_device_dma *dma = dev->dma; drm_mga_private_t *dev_priv = dev->dev_private; struct drm_buf *buf; - drm_mga_buf_priv_t *buf_priv; drm_mga_iload_t *iload = data; DRM_DEBUG("\n"); @@ -959,7 +958,6 @@ static int mga_dma_iload(struct drm_device *dev, void *data, struct drm_file *fi return -EINVAL; buf = dma->buflist[iload->idx]; - buf_priv = buf->dev_private; if (mga_verify_iload(dev_priv, iload->dstorg, iload->length)) { mga_freelist_put(dev, buf);