Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1075828ybl; Wed, 14 Aug 2019 10:18:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgYm+yecKIsEkd93Fu+9t8u02C57UTImFEbvLPtGFpZfGlKlP7ou62LpZRBZkzxfHJ6/za X-Received: by 2002:a17:90a:71c3:: with SMTP id m3mr700014pjs.53.1565803089501; Wed, 14 Aug 2019 10:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803089; cv=none; d=google.com; s=arc-20160816; b=D89j2d+egHJyxkSvKVCC3kqcRk3Hu4rrV3agr/26hs5XG6sdc/lU3hV/zBRF4D5QjU mH2HJdbT7RaxI8VS1sUG0lcI8aRtYTmy56tgm6F/8h2O48ssk/P3R6gnGxv3lJCU2Qox /j6bn1TDTy42k5KK1P06+lekPg4vaE+6QRCfkSLYs7zklUHtjqhgJ6tNeSOgzI3RtTgd mhzFw/cBXismn/g5FphEKcVM7yzOeiQeLIb57s5RH7M09GksdYHHBJjE+0YeCKxc0oLk VA7NROto00lmuBZn1O1PYCaETn4fFyqeYuBqGcXDhfGjR1VsxAP9X3jkicRakAtsupEX N1Lg== 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=yCmxb3R0Jm2YsS7P8l3Vi/w2Md8kM7KAtWQRZiEdRvk=; b=XICUzMDzOZszEB7vEfcqAcXmwtzonpRIkwXVhHtNM9nvoTcAVicpZSasj5HQejSJ7g /BXLrk8GrUF4BrtsSpNn+TbYO/RGBOov0qBJ12wfdp2/bUP+W+qnUZla03rSLKCREOsC i1zsLoE4EkX9W3q5m1N08y0ElCO0b4QzoREd5NyzHWWdoryHP98hgW94ZZlTE3ek/qiY amQfdIxncsGgNxR0fqu3UJH5vsey9uMRDdzJvJaevifqWLk45Eoor74Npl6VpsVXkP4j EjlUMX7BBF+JR3cnNETZ4OJTeC/2eT5k3n7aCz1ehrjvwWbi9TC9AeOkIBNWVWPwLht5 LDtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hyZxWfa5; 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 i15si58797pfd.259.2019.08.14.10.17.53; Wed, 14 Aug 2019 10:18:09 -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=hyZxWfa5; 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 S1730959AbfHNRRP (ORCPT + 99 others); Wed, 14 Aug 2019 13:17:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:37740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730898AbfHNRN2 (ORCPT ); Wed, 14 Aug 2019 13:13:28 -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 63D1520665; Wed, 14 Aug 2019 17:13:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802807; bh=2BRhctLSAlDBYIzq8eGchra/IL7na6tu5i82yuhPupw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hyZxWfa5LTK6CYbQuc40928hLlLQIS1e0aynjixLGbtQwt9XkO9/LnDYBc+UonsXO nf22YYacT5yHSPzajOP8bJuRiPdBbxF8SnOuAPqTdfTjT9P8pU2t5b1ltuttd7uxkU eXORYSFA163i4V9zi1oVwcJQsEH+AR5v8jYqx6FI= 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.14 33/69] drm: silence variable conn set but not used Date: Wed, 14 Aug 2019 19:01:31 +0200 Message-Id: <20190814165747.785563727@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165744.822314328@linuxfoundation.org> References: <20190814165744.822314328@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 c21e10c780ac5..af40189cdb60c 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -773,7 +773,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 = 0; unsigned plane_mask; -- 2.20.1