From patchwork Tue Jun 23 20:45:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 6663121 Return-Path: X-Original-To: patchwork-intel-gfx@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 3CDACC05AC for ; Tue, 23 Jun 2015 20:43:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C4E620582 for ; Tue, 23 Jun 2015 20:43:32 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9D62D2054E for ; Tue, 23 Jun 2015 20:43:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A35666EA6A; Tue, 23 Jun 2015 13:43:30 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D7C86EA74 for ; Tue, 23 Jun 2015 13:43:28 -0700 (PDT) Received: by wicnd19 with SMTP id nd19so116850337wic.1 for ; Tue, 23 Jun 2015 13:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XOZkuTq6+SjZVVR8nOvXGsV/CMayrqc1XrWXTL9ro2A=; b=icHlcUG9uW3b77a6SkIfNM+TdlBmh6IqZw5KxuWXVYGXYt9UZjUd3m9t/WT6HfPdGC /PdQkeQm1iu2GbYrIT/Ujw5Q33BEptgBpj7XURQBabp4UTOtFkxSTqDF/NnsIdH0059/ 2DaZvFhdJ8QqYmtA1gn70EE6adr2HAKhVQUoA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XOZkuTq6+SjZVVR8nOvXGsV/CMayrqc1XrWXTL9ro2A=; b=JeTIoOQP0kk/aWHiYLk/+Csv3SaQMLW05zVDpSbq0l4HJeDPCYOnWavR5hVlJ8X7UT zeqN53PtisKdhSa4Rgh2eSuGLS/5TOdnNS6vxzZH3znW8J6tZxiLtkiVzGQPecuX1roU vQOVPi8MLhFuSRVPtV7dC980rU3Q63JLQ44Vs6ZhxT7R092AUs/PZUcfwE/uurRS7ye1 JS8wVkn632w4t5Pi8T97mSGdkQC3WJT6AUVMKgrsL9axMGxPwDM1LrH2wyVRYCjWYQEu MoxOgAbM4m2Mfe+ulps5zOxvDOVJox2cuT3m2UlMUQf5Neb7gfBQHHbFOPfZapzhpFPg fwEA== X-Gm-Message-State: ALoCoQmfio+SONYJPORjslLgZA+BGIcY3WNeu/mN7xanx7u8hAbNmrxw1S+MRSHx85IO5EZ+mTre X-Received: by 10.180.81.70 with SMTP id y6mr6834837wix.14.1435092207562; Tue, 23 Jun 2015 13:43:27 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-109.fiber7.init7.net. [212.51.149.109]) by mx.google.com with ESMTPSA id c2sm34354177wjf.18.2015.06.23.13.43.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jun 2015 13:43:26 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Tue, 23 Jun 2015 22:45:57 +0200 Message-Id: <1435092362-31062-7-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1435092362-31062-1-git-send-email-daniel.vetter@ffwll.ch> References: <1435092362-31062-1-git-send-email-daniel.vetter@ffwll.ch> Cc: Daniel Vetter , Intel Graphics Development , Daniel Vetter Subject: [Intel-gfx] [PATCH 06/11] drm/i915: Use drm_for_each_fb in i915_debugfs.c X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,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 Just so I have a user for this macro. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_debugfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index c49fe2afa223..6db920c913ee 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -1815,6 +1815,7 @@ static int i915_gem_framebuffer_info(struct seq_file *m, void *data) struct drm_device *dev = node->minor->dev; struct intel_fbdev *ifbdev = NULL; struct intel_framebuffer *fb; + struct drm_framebuffer *drm_fb; #ifdef CONFIG_DRM_I915_FBDEV struct drm_i915_private *dev_priv = dev->dev_private; @@ -1834,7 +1835,8 @@ static int i915_gem_framebuffer_info(struct seq_file *m, void *data) #endif mutex_lock(&dev->mode_config.fb_lock); - list_for_each_entry(fb, &dev->mode_config.fb_list, base.head) { + drm_for_each_plane(drm_fb, dev) { + fb = to_intel_framebuffer(drm_fb); if (ifbdev && &fb->base == ifbdev->helper.fb) continue;