Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1083352ybl; Wed, 14 Aug 2019 10:25:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqx170sjDXEzF8S+UftL+OOgfZECb04Id76yK8fa89L4QtlgYOD/+BWdSgdl+cn4YBctBS/l X-Received: by 2002:a17:90a:be07:: with SMTP id a7mr790411pjs.88.1565803528956; Wed, 14 Aug 2019 10:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803528; cv=none; d=google.com; s=arc-20160816; b=N9rsmtDQewToU2XhYNzX0zyloqZQUuMftPGIURVhvMg7XCwfZZ1g78NawvuHnIXGcJ PKVkX6hCn8t5UOkErC5yVAH6P6uBCEAQHpGVIWr/n1N/NMEUUDWyRMv/DJldmycu3DbX Uvqh92ygOBiDKFKfK1569024bnOf3rs40iKeF8QMWl7qirmbxsBtmWBfbM3YYKT225QG utXxT2uIy2y9BCJ+a59hiezS6Bk7Uv4vsBfT5HbJwRJZ3OwYefFpjcps8lTpQb0eezmT WsKk37bf9CxkO6g/ZSE4BiQjI7wPu3HhHe8mcpsvDeypYynwcu8SBQPwg+1307BAo2aD fALg== 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=mGoSUmuJCevGoYL5rF04riHccJhAgSexWbN6nHFvaZ0=; b=A9qSdjqUEGP38AiGWmMGpSxY+xHYN9ASrtNfUSzaeK/Wxy39s/IkG2tMQOP1gg15o4 1XTSwZopiWj+is241Jh3P7fWBE7yrmUzwTISK2Agqnr8wD0dzWgAD41riZ7jtDN38oDa oqYbyvIMByZZr4L0du3PQFkmh9JVPmiG9ZtfSJv1XtpjPahTS6dxTDjdF42ruj9yKEHt i2LX0BzGJqZ9n1lKa+uaZ2oncwdhq9G0gD0yE2T5tTtdHBpMfqnV7tuFPtc7RMb/jEQo Exn3tvkLlCp8RKaIMHY/2mch97VMgLw5oh9hDeTBQtGNDvim+IYHQZXP9KPUwxflwAam DB1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xg7AIKod; 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 n124si202059pga.214.2019.08.14.10.25.13; Wed, 14 Aug 2019 10:25:28 -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=xg7AIKod; 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 S1729677AbfHNRYk (ORCPT + 99 others); Wed, 14 Aug 2019 13:24:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:55520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729632AbfHNRGY (ORCPT ); Wed, 14 Aug 2019 13:06:24 -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 096D02173E; Wed, 14 Aug 2019 17:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802383; bh=VbIlRLilcZWNuGLQqEc87Kig/mLATMw2y+2OF9XSvXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xg7AIKodBO8KuSZZiqpXITZuJlaFMiWl4ZGOgup0VT20Gj6Mwl3Ix3d35ztqAgPdA JCNCzMJtE6INEvkN4O1vRhclY+aEk0RM5kT2mLj0y39DG9yhBjM92bEQ2MjYMhBymn egjUWios56/c6E5rZIs7nOcxfumiyNpka8G7nwEw= 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 5.2 087/144] drm: silence variable conn set but not used Date: Wed, 14 Aug 2019 19:00:43 +0200 Message-Id: <20190814165803.518461885@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@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 d8d75e25f6fb8..45f6f11a88a74 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -830,7 +830,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