Message ID | 20210416143725.2769053-9-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp447604jaf; Fri, 16 Apr 2021 07:38:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVs65h+NFiwmERqgO87SkPlevNb7OPaNq4gDvIGH3mxIoCruqVN0jpIiY7pE17C0b0hiSN X-Received: by 2002:a17:90b:4384:: with SMTP id in4mr7183035pjb.188.1618583882000; Fri, 16 Apr 2021 07:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618583881; cv=none; d=google.com; s=arc-20160816; b=PWQko5udVFjxmznzDwQEneCNvi/8Ey7w1k77184WxgObUcrkg4GWLl3XscnIn/Jgh2 +qfRa11cyE4ydljJiMXsAPV969rSlNoHvD7kZ3e64JBW4SIkPz0yJW/XTPPZGH9syzuY rU9gQKJNscyZQjGF9y3iwQdizT30gUh+4wTVXvAF+ihZHsGOu1qva6ObDcYi0MTvrR3g 40RqS39XoVXc0BhRSy3KWDVnX0RA20mH0mYFF3FBgVUP8N1jR5F+MjC5lS4excCi+AY7 WDFOLqToXB8HGOrAFSBIV3i0lw/+m4Fu5LXV1NlNpVrkDgrsLy9FLWBl1Yg0FbfCLWZv hEkg== 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=yHAFrt4XQT5jnjZaT1gbZGgd90evIfSR/JMTyVe3ouS4MwuL0SMKLdfB5Fom+21FjC IBTPLIMVIYPh9ZmL3pB4rlvRcDXYW9llvnKD+WF38dGyXrqDau8jgsY5R+Ich4AbD9ag yjCqrZr927vKF5PnKzdP13ANvtGIWlkdWY8aG+h02im/HGLNgw2i40hkZ3dqi2uGcsHm tsZ2hdlX6M1PtPlDcfyxujp/J/E1aV7gV7dxw+SX/FGY6M+FYmjB2ltnTd3SxKxBwvYY k3mHUCSM1NlUdEU5UUjtj2mP4FBN4LSujPLXLPGuaQrKRYxkS75vPI9U7+8p1yDR6PAV 47rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OEAZ6pgu; 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 d6si1935834plg.130.2021.04.16.07.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:38:01 -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=OEAZ6pgu; 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 92E2D6EC07; Fri, 16 Apr 2021 14:37:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by gabe.freedesktop.org (Postfix) with ESMTPS id ABE086EBFE for <dri-devel@lists.freedesktop.org>; Fri, 16 Apr 2021 14:37:40 +0000 (UTC) Received: by mail-ed1-x52b.google.com with SMTP id j12so7532368edy.3 for <dri-devel@lists.freedesktop.org>; Fri, 16 Apr 2021 07:37:40 -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=OEAZ6pguOUQ94jMlXQzmtQ7QFPzW5+1bIvMTPHQc6HJS+PcftJ6AF9Jo3cQY1raYir GcbbzBVqcto6mrFzlum7j3SE/HIpRj5EGQdlmzu0Fj2vW+g/XCoRlkp2nxMM9p80xnjN vridHysscUhssHNwEDny1VZ+bPTMhH94/K9wuMQzKCovSqSc+zCdtztyo8NQdCHamczB cVL2Cl8+3ZMMjVYMOfaQyG1MwZg9FpTT9u6WJ1lQ7gR40O4/xmJh4Irk55PnetEtInV0 6+Hnu82JjUPCmQZWm4nEwmkdACQTiH3m3m6A+KHdCRz//PskTjJtDFX0d62j26DVAaDr B5mA== 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=inI1sMunk+afOAVwacEhd5L8AxiT3pS4QyP+Y53ArVmUz0sPQLrQNDsGdsgSbyq0kY ryGAbVp04hM8Zd2jfhOfqZLzpgrqHnQ/5WsG2QlmuJ/5fKC4YlNYuwnx9a12DD+YvFX/ ZuyZd1Ejp706smOm+Us+wlgUJUSdQU5APPacPy2KBO+0yD6nuksczu5TAh24gP2bUtwU 372KYXnXesJXCKMtAU3KcxSUj4K2jxMv4JIZaj+KJC4HKP2wDSub+CBMv9aviNmS0k9x HsgUVjRQ0pFRniODXkbZo0lQE/bv4L7gZ+GSoDpFcFqnZHV4Dp6Ygp8/OMXZrtDhjSbf tHAQ== X-Gm-Message-State: AOAM531AB48wuFvdnDMRBaqAuLoIuCnAoRo6db8fm688+6eHrOtE15Qf /RIQbWufctELrqSTBJXtsfr4MQ== X-Received: by 2002:aa7:dc0b:: with SMTP id b11mr10546460edu.124.1618583859364; Fri, 16 Apr 2021 07:37:39 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id j10sm1326523ejk.93.2021.04.16.07.37.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:37:38 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 08/40] drm/nouveau/nouveau_display: Remove set but unused variable 'width' Date: Fri, 16 Apr 2021 15:36:53 +0100 Message-Id: <20210416143725.2769053-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210416143725.2769053-1-lee.jones@linaro.org> References: <20210416143725.2769053-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 W=1 warnings from GPU!
|
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(-)