Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7723701ybi; Mon, 22 Jul 2019 19:24:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMvtm0mRhDgN6EmgnVTFxsL+TlIn6LzuRB/hOPEOir+31DNDfNrIGDDG9YDI7U5ap0/kr+ X-Received: by 2002:a17:902:8bc1:: with SMTP id r1mr29400647plo.42.1563848656071; Mon, 22 Jul 2019 19:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563848656; cv=none; d=google.com; s=arc-20160816; b=jGBAaiTUcaRd45tZ04qEPumtjc9YhF+TTs+gJmQXaJJrSuBzPXKjj0FrpYuclGE62s 96rthzTL5ZO8sJloxDn14cQg6zSG1ssvAb5lAG5loNTKgUB9IRe5QifRJXh2qCYNGDq9 Tp/a6SuK4tlMwlSrpOSOWHPzfr07IPssto45aexFfkeaOqjSelql3FvP61cG6k3Qz3yK KjOrHx+B3BkmsiT8pbqvucaPLVcZcTeAI8PtiCKb3wC+fyIj8/y8l/0bUYPoRkcUJLqb ZFTOhtmsnrZfep90A0g9AZB0rcp75mxCvYuIau7k8wsRKRX0EWyxFnxEuosZN8HS1OuU /lFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=4BuuPSvhQT5H67c4iK7jqEFJDfyC/RcpCWzQsK/Bagw=; b=lR4A2DuBEZB6QElD/jonJhfUNT9JqnFu9MAFAI8o36u5hdVQ1NShLgdleo/OPaNwbk NdBrP6xnaMnCe9fWbmxyIV4yDdrezJEF/bI5qcHEsMu3t7XTV7Coa7wmFJW+jh7fGQlm HuUzkaujtxCdC0wbig7d5H2zxHxNLZVNwTNl38r0SAVBfKCMgSs4v78uPw/QUfdS8Idw RdT0Y2KMuHucY0f0QkKSrDEhl/Rj5lytuk0E/iCcn+rvUKg4BgvOP5wBVzurm2+ehMiw FR0ab6JetubHnOTiFdWd1KYf5RHMezFvsmWYG0+M6EpaDTxftmVzhl1uBTHxV0Ho+h55 97Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=YEW6P3hO; 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 n1si9998912plk.388.2019.07.22.19.23.59; Mon, 22 Jul 2019 19:24:16 -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=@lca.pw header.s=google header.b=YEW6P3hO; 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 S1731936AbfGVTPK (ORCPT + 99 others); Mon, 22 Jul 2019 15:15:10 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:33205 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727219AbfGVTPK (ORCPT ); Mon, 22 Jul 2019 15:15:10 -0400 Received: by mail-vs1-f68.google.com with SMTP id m8so27110580vsj.0 for ; Mon, 22 Jul 2019 12:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id; bh=4BuuPSvhQT5H67c4iK7jqEFJDfyC/RcpCWzQsK/Bagw=; b=YEW6P3hOXzy+0zgf6FOEyZJgqFbPIbY+8dVXkWPS/LmqA3Ulr6DM8mLczZleAqHxPt wI19rxN1CrY8o4DLllYJitWKTki8rbqyOJKYgGlVKlF3faV0WYzoNIXw4/pCgfh1WY0m /9WGxd8Q7RpFCAgMQHd6hCBy7gT4tfVf4v97vc5+s+BPu84M/E4VfLjON4Nnq6TgYwdS VozpLWc4YxcSstY2DUFEcf3FCSIvIj61UQSvLSvP/UfvmWljL/M8j6a2H3F+6hyiHckq sPtt+oEoU/xgniNh+9bAROKrnl1wf+Lz3pHdT0vO2xDuLoHOXKqH9XLFBjribJFs/ws3 9Kfg== 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; bh=4BuuPSvhQT5H67c4iK7jqEFJDfyC/RcpCWzQsK/Bagw=; b=I8VSvPzbEtv+8KKO8zM+tICZ7PccHnu7mwYBZ+AHd6mHJMCqyLsUpf5Oe8ogXzXbcd 5xLuL+qPJ991+0aSVV3BOY64SznBtWXcfE0CqekEGVGGJ3lozXXcPtmOqjrBdk+ofUNM CqGqgrCNPOZJ5RboJFCMoE7QXlfVY2OceZSnfXA4J2nXO2FZ5YhH5Eot1nalP+Nv+0QI gHqgFIwgIxAYXWpuqWO88hjbjqLMkNQWIHEBz8ikpuo2zzyBUIRXZmv77Ejdzfk/zE+Y zaFRZnJwZmsi3WjF0l1AYr5vyYSnGgudv6Kh1+0+ffJzayQegoA0MiO1xEAbMJSYcn0b e08Q== X-Gm-Message-State: APjAAAWrBmGn6bObVVf0LUUtKt0vBU+msxqEN0e7HBbS6QMq5msMjLX2 L4ktEGHyQV3I/JGp05Mvh2h3WOjW8j+j/Q== X-Received: by 2002:a67:d46:: with SMTP id 67mr44695015vsn.181.1563822909007; Mon, 22 Jul 2019 12:15:09 -0700 (PDT) Received: from qcai.nay.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 4sm7433056vsx.11.2019.07.22.12.15.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jul 2019 12:15:08 -0700 (PDT) From: Qian Cai To: daniel@ffwll.ch Cc: maarten.lankhorst@linux.intel.com, maxime.ripard@bootlin.com, sean@poorly.run, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Qian Cai Subject: [PATCH] drm: silence variable 'conn' set but not used Date: Mon, 22 Jul 2019 15:14:46 -0400 Message-Id: <1563822886-13570-1-git-send-email-cai@lca.pw> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 0b72468e8131..57564318ceea 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -835,7 +835,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; -- 1.8.3.1