Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1068116ybl; Wed, 14 Aug 2019 10:11:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZLgNguU/7i/y9q6JKd+7wC1P9wloKuwt8pFNF1Q5Od50keWfzMafgYc2p/on8JpU8M/hb X-Received: by 2002:a63:e306:: with SMTP id f6mr188979pgh.39.1565802674827; Wed, 14 Aug 2019 10:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802674; cv=none; d=google.com; s=arc-20160816; b=iG7DGwojMKNSwQu+9zYQ/bt05SL8vK3x+mHdXtMcZ9p47IuGK/Kc+4EPzTgcsKzRHe yfQAB5M/uw5KW8SSoFDR9RZ5jzuAaoy9DrXBlcEmiFQVN1m0MSsOyfuktPdMcHifhjwc Sw5QMoHyby2PMMO6/OIBorSSB5m2bOw66uvcMUnvAK9C0YncTMG3TusPxycbdhcytZ2p VRGGZ1gQFYbCu/ITkS9q0C6HLrwguWJFM9vSJQuP3PyCjF03w9OCOfXK0KorXNSn4bNY 1a6KtuDNCn3nlxah9FH1lvegQRdItcDfFbdRDpd7CnXULqzAWIwb5IV97i9v1p416KLB xnHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l7ecYhvcIcfVNFlXdNncNO/OlUTQHpu8vdsAec2HYrg=; b=ZVuS8El+rgOrxlZ3si90+RooFXyEO0Pqfny8UMEsimWmL/3QIoUHZ++xhVLadr1zvV cvTQKIttf2bG6I2y3gJ2TQvYfxwi3cUhbggWpKyI8CwLm6rzSPBdRjMZ/agoW53BNL9s JCRJZfkpw0t1BHOZife5zfi+55XrPT35bnN4SyMmf3A8WOUu9MUgWYUal5xbAPwExZhl Is/YJtVO6sZQGun0mKAvl6A5Sp9nCzEhpO5uv8AkbdXGEn7QskNF8FlBVsz/ZtzZJU3K 14JQYX77n5ylgblvINXbENoc13qTw1xOx1+Vvr3xVFKOBIPSowN+Ec7puujgiV/IfAPt Srww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0d7wPyvc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si233503plp.435.2019.08.14.10.10.58; Wed, 14 Aug 2019 10:11:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0d7wPyvc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730463AbfHNRKU (ORCPT + 99 others); Wed, 14 Aug 2019 13:10:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:60984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730439AbfHNRKL (ORCPT ); Wed, 14 Aug 2019 13:10:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4A92D217F4; Wed, 14 Aug 2019 17:10:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802610; bh=InxKgvUfxzhfqBT2/SZhHQiU9SBHw/hglkUpSokWIXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0d7wPyvcywIoerUmZy4/64JgdimjadvmGqeFLdndL+gevlOvY6MvVjXGEHQ/0rYjY qrXtYC/OzChIO+HybXaAU6TCXk3gktw7/od+30Zx2NCANoePXJmBws2N7BXl/QdI5X slgYgffXoTARqAA3ba9pmrkOnMnhWZN44CZrstXE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qian Cai , Sean Paul , Sasha Levin Subject: [PATCH 4.19 49/91] drm: silence variable conn set but not used Date: Wed, 14 Aug 2019 19:01:12 +0200 Message-Id: <20190814165751.644683754@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165748.991235624@linuxfoundation.org> References: <20190814165748.991235624@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit bbb6fc43f131f77fcb7ae8081f6d7c51396a2120 ] The "struct drm_connector" iteration cursor from "for_each_new_connector_in_state" is never used in atomic_remove_fb() which generates a compilation warning, drivers/gpu/drm/drm_framebuffer.c: In function 'atomic_remove_fb': drivers/gpu/drm/drm_framebuffer.c:838:24: warning: variable 'conn' set but not used [-Wunused-but-set-variable] Silence it by marking "conn" __maybe_unused. Signed-off-by: Qian Cai Signed-off-by: Sean Paul Link: https://patchwork.freedesktop.org/patch/msgid/1563822886-13570-1-git-send-email-cai@lca.pw Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_framebuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index 781af1d42d766..b64a6ffc0aed7 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -793,7 +793,7 @@ static int atomic_remove_fb(struct drm_framebuffer *fb) struct drm_device *dev = fb->dev; struct drm_atomic_state *state; struct drm_plane *plane; - struct drm_connector *conn; + struct drm_connector *conn __maybe_unused; struct drm_connector_state *conn_state; int i, ret; unsigned plane_mask; -- 2.20.1