From patchwork Tue Feb 9 12:28:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8261451 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 01AF3BEEE5 for ; Tue, 9 Feb 2016 12:29:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C91C2026D for ; Tue, 9 Feb 2016 12:29:10 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 67DD7200DF for ; Tue, 9 Feb 2016 12:29:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7CB606E54B; Tue, 9 Feb 2016 04:29:07 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by gabe.freedesktop.org (Postfix) with ESMTPS id F1E126E54B for ; Tue, 9 Feb 2016 04:29:05 -0800 (PST) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue104) with ESMTPA (Nemesis) id 0Leu47-1ZfliJ29qJ-00qht2; Tue, 09 Feb 2016 13:28:48 +0100 From: Arnd Bergmann To: Thierry Reding , David Airlie Subject: [PATCH] drm/tegra: remove unused variable Date: Tue, 9 Feb 2016 13:28:15 +0100 Message-Id: <1455020923-1089878-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 MIME-Version: 1.0 X-Provags-ID: V03:K0:r3SrcDzvrzncRqEoz/LZxMxr67CGikrIje4kFnVjF/kV/ORaMYH LMVp2BCx5bY76DIc6EVXxXutLeyZm5FkAN+5clSll/Qb67udy+DSgqtEPrEMZwvbninYdM5 DDBySiO4EuOUarBOsv1Z2HsXIMFbAi+i0ph0Xx48grLsDUNLkQOkU3pS601frh+UMUFNJGz Pt4Idnxcr/u00zoulK/dQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:AapWs5W7xPw=:yQBaG7Qv3t1wca2gMGMZdM QIMN0rlHO5ThdZ7cYcslgVK9iz8z08TudFgTLik1QeipDA2UTJXs1je9P1rOjIiVdM0gk0hGn cx9xjcGmUPyJooQwHXB86xz9660CCVlv8OzSHRrWCRFQqZpDTrhPgVqT6POxWLzgQoM67F/QR 1F95H7miw5SoBDVd8TJP5HTw3Uh7KlOlOZkwW9awD0sfmly0AgtRfu9XoQYiMRk2NPP49t/EP b54JZbRiamN0cBbR8zfHoCUQVpSDAoKqJleQVdWEpmChyMqYO6St58pV1mJLoUicnQ0L/+YJN HWP4OLkMamg2hNoCQPgTPVf1N8r1ToExNiy7Wcxeoo2/xNBfUIXvdVxf2UJUFYD0EXMeJOSkc 5G2NADwulyeyQfL2r8ZlPLO9724e3B9PSSuledHGn4OFrzlJq251U7vM41Nk7nh4u3BsIA3Sm v9lPHzYrHgLqqPz+4cpNom0M3gui0yo+YryWeTJG5uqnCwmAZ9+QyfO0+zOiGoToF3P6k0haG Fk/odIN582RrP58SPzJglsHIt14cvltsRYqGRSzr7ECJ/o7O97ZWi5QSoDHgZ2rb6eUDj2Ssy dkqTdFZTLD9lBGOKDlCy3fPLkCBBYaASvDktkaPT5qH4h3JWYd+GLL4oXKZDrkYO+15ShqlIQ RQtQ7/guyo8yyJS37Exb+9MWwg41K0EKbeYnCqBoqSXqrYQrwlXQsIMG6ctDfLDR3jkkClosf 4NoAwnp/qreq4tEh Cc: Alexandre Courbot , =?UTF-8?q?Terje=20Bergstr=C3=B6m?= , Daniel Stone , Arnd Bergmann , Stephen Warren , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, Alex Deucher , Daniel Vetter , Thierry Reding , linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A newly merged patch removed the only user of this variable, leading to a harmless gcc warning: drivers/gpu/drm/tegra/drm.c: In function 'tegra_drm_preclose': drivers/gpu/drm/tegra/drm.c:861:19: error: unused variable 'crtc' [-Werror=unused-variable] This removes the variable as well. Cc: Terje Bergström Cc: Daniel Stone Cc: Alex Deucher Cc: Thierry Reding Cc: Daniel Vetter Fixes: 0417d424ac0d ("drm/tegra: Stop cancelling page flip events") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tegra/drm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 021d0e1398fb..8e6b18caa706 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -858,7 +858,6 @@ static void tegra_drm_preclose(struct drm_device *drm, struct drm_file *file) { struct tegra_drm_file *fpriv = file->driver_priv; struct tegra_drm_context *context, *tmp; - struct drm_crtc *crtc; list_for_each_entry_safe(context, tmp, &fpriv->contexts, list) tegra_drm_context_free(context);