Message ID | 20210319082428.3294591-12-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1171091jai; Fri, 19 Mar 2021 01:25:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLE3We6TCJDhCKyZWKORfuJSrVgVYxW4NgU226Zcaip9OT+EL1dBgTreIVvVJlLASCdmh6 X-Received: by 2002:a65:4c43:: with SMTP id l3mr10286847pgr.327.1616142300510; Fri, 19 Mar 2021 01:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616142300; cv=none; d=google.com; s=arc-20160816; b=YFl+1mmV5u6WB1y60GBHA3jUZeSdPOz1vNViRFEdnvgzp/WDf42ohSkP+HIPjnVLdQ /uBCO7uLUWhPOIymp+YNSvuTqXWyyY8z8vulX5QomuaBjjghmZFAAKL+zeUdSTjnPgIh 7HDbU/w+KGoVLwAxbWTos3Oe3OrZqL+icSUpoSYoLE6jqhmdnz+bL2S5NeAWYPaAG7bd pg4Nx6XIIGqcRWRSTqgts/oOEu/ljrdi/Pvo4FT5xmQk/g6qj4efMC1ac1r/gXYvRu3d HNWSTSkwNta0AijOaoEWNJYsfakdt2A/6kTqHIRxOchwCWMjHSOVcQXf8FD2E3uJFxpL JJlQ== 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=+uMagyoJv2p4nonTaOSXXYek7o2zIB4TDCZOvlEgv2c=; b=hQ/WSRugxL/CXBDb/FME1et4eKF4lIas75oXmisQ79uholp6Ki1bgXfiE7H45ygO4q GpJsZtHllmP1F6Ttme36t9i03Hwm1fEFw7nRkAIqfsh6x8eFETR4I3ORLHwNAAIrEnTC WaDgPb1ru2kV/iCfCNGlEwC+nXg6oaGxaK5/WoWPkerfOeKU+XtAk3uBE27nEmZ4lq5Z ZcwdukZP/TgBCVwlTFfmN6pTiMp1CesAtH7qfacn//D2HvLPcF4Z15XnSdAuV/4p0GGV jnofcJ+FOGhF5m+C+8ftanLQ/j2gSWHXjLfa9/y09TP0ZWoGsLhcnfajK6cYnBUYyGn2 oU8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fH44IuNW; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id e13si4793421pgd.502.2021.03.19.01.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:25:00 -0700 (PDT) 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=fH44IuNW; 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 2152E6E9AC; Fri, 19 Mar 2021 08:24:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by gabe.freedesktop.org (Postfix) with ESMTPS id 91E566E9A2 for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 08:24:44 +0000 (UTC) Received: by mail-ej1-x636.google.com with SMTP id a7so8268265ejs.3 for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 01:24:44 -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=MDb62l+8C+YekUvtP2oUdE/QSSZdTHGqGLcmgtoRZ6A=; b=fH44IuNWOT0gzD6ZDTpIA6Ik59/TezQetQjXfZCUitBkzSKS+ixlThvf4S2c4z24cR v9A2hvCloFo6enmQJULhrlvhLslpAa3OylYUAhVahQ0DFcq9p3SApUfigyhYrfPYbOrx 5oHB+zplzVnHfUyn0TnAgQR2ekgdd7RiP0JcI2yo1lyFoyfqotZU/s2LrJfGx6xGGArD SZJe92Das2D14/RPj+IkMR57XFYlLxJtpRUzoL9Ns/q/ExyaowNLvTTl8LYKvqwvwf2F eY6l+uTTJSI0CA5NWvGVQmu7tiFOEDgKAR0vSc8twz3TBFsV2/1yNzjo09TQ9pVbQseb PURA== 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=MDb62l+8C+YekUvtP2oUdE/QSSZdTHGqGLcmgtoRZ6A=; b=h1x1F2Lz856AxherR7Dm0ugMaeUu8StBZwVs1PUpH/PUKmntKqzUSw8QfzjNHPGM+I mTgeiTPSxwhaG39NrHyFVIxiOaGaE5K7cyaHIR7GUDrnleQ2hsPhXqeFgY3kiJMGNp3u 0Sy82vmTtg+ecAJEXGF/uTFDdomijV7HFEYOpkMmujqHeBW9xXnlaMqEdTZk8YjK4puk muDlRHkxQ0F4C0HBbEzwBZ5T4kMYwEelowLVt6V2sCMkFvRa77mxm+Q2PNTrqVs60qG+ i7jjtvSVpCvRaj5QAAQDsiBCQBplII6hD8NhBNnTIZ+cWpqcYmg49bEeBFuMzTSxgIBm Bxgw== X-Gm-Message-State: AOAM530dA0Tg3DJc9tkld6WAALPRW5SHf9RLy0gNESfeTUpZWk5E6UA+ 33uIFnlAfZtlC3x/YzZ5v4HHIA== X-Received: by 2002:a17:906:340d:: with SMTP id c13mr3036223ejb.29.1616142283208; Fri, 19 Mar 2021 01:24:43 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id b18sm3273727ejb.77.2021.03.19.01.24.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:42 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 11/19] drm/nouveau/nouveau_display: Remove set but unused variable 'width' Date: Fri, 19 Mar 2021 08:24:20 +0000 Message-Id: <20210319082428.3294591-12-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 <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: David Airlie <airlied@linux.ie>, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs <bskeggs@redhat.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 GPU from W=1 warnings
|
expand
|
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index dac02c7be54dc..be2327ce7394c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -306,7 +306,7 @@ nouveau_framebuffer_new(struct drm_device *dev, struct nouveau_bo *nvbo = nouveau_gem_object(gem); struct drm_framebuffer *fb; const struct drm_format_info *info; - unsigned int width, height, i; + unsigned int height, i; uint32_t tile_mode; uint8_t kind; int ret; @@ -343,9 +343,9 @@ nouveau_framebuffer_new(struct drm_device *dev, info = drm_get_format_info(dev, mode_cmd); for (i = 0; i < info->num_planes; i++) { - width = drm_format_info_plane_width(info, - mode_cmd->width, - i); + drm_format_info_plane_width(info, + mode_cmd->width, + i); height = drm_format_info_plane_height(info, mode_cmd->height, i);
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_display.c: In function ‘nouveau_framebuffer_new’: drivers/gpu/drm/nouveau/nouveau_display.c:309:15: warning: variable ‘width’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs <bskeggs@redhat.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/nouveau/nouveau_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)