From patchwork Thu May 11 19:10:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9722785 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A1EFB60236 for ; Thu, 11 May 2017 19:11:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 936E528701 for ; Thu, 11 May 2017 19:11:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8797B28703; Thu, 11 May 2017 19:11:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1CD0B28701 for ; Thu, 11 May 2017 19:11:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2276C6E5D7; Thu, 11 May 2017 19:11:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id 42BFE6E5AE for ; Thu, 11 May 2017 19:11:18 +0000 (UTC) Received: by mail-qk0-f194.google.com with SMTP id u75so4943356qka.1 for ; Thu, 11 May 2017 12:11:18 -0700 (PDT) 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:in-reply-to :references; bh=4te8wkqDQY5ptursqhqaAwTS63aamiMNcj60jTqonMg=; b=Io+Vswj3hFYIRe9XWgMUlF+nQrz6ZM8aIPwzdGtrWhAHYN1myTW1Gi365M54J5BAb9 fpabocnTG6y4cLbQC5Zy+ifRg4+rWFkV1VNwmIvfP1ne8JssYUBEYJW9Y5luBDeFStuo FmlJR1UGxNjke0RWy8mc+kc8NYHvM6+qx9GxP5bPhXyVe929IAv5yd9OOfrWgFrffLoD Nn3TYmgFlUiXJTenHTkQtYQh6briMaCjyKle00UFX7u9vQL1AyPeg+OakX7jtKQpATqN 15VFCsVBxtoHxLdKHq35VDSj7M/j59gdWwL0FFxe28+s/tJLPP7c+hF3yIFNJWxaGtT7 khRQ== X-Gm-Message-State: AODbwcDJc1FZaRErB1wVeq2RWP9ayochVPW/s97aaEaDLI/io44OkeQI sO5B7HaLChBs3w== X-Received: by 10.55.7.18 with SMTP id 18mr93201qkh.272.1494529877409; Thu, 11 May 2017 12:11:17 -0700 (PDT) Received: from localhost.localdomain (177.205.87.164.dynamic.adsl.gvt.net.br. [177.205.87.164]) by smtp.gmail.com with ESMTPSA id z43sm726708qtz.9.2017.05.11.12.11.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2017 12:11:16 -0700 (PDT) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH 7/8] drm: remove unsafe drm_for_each_connector() Date: Thu, 11 May 2017 16:10:48 -0300 Message-Id: <20170511191049.28944-8-gustavo@padovan.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170511191049.28944-1-gustavo@padovan.org> References: <20170511191049.28944-1-gustavo@padovan.org> Cc: Gustavo Padovan 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan After converting all users to drm_for_each_connector_iter() we no longer need drm_for_each_connector() so we can go ahead and remove it. Signed-off-by: Gustavo Padovan Reviewed-by: Daniel Vetter --- include/drm/drm_connector.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index 4eeda12..ffb8ec1 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h @@ -989,21 +989,6 @@ void drm_mode_put_tile_group(struct drm_device *dev, struct drm_tile_group *tg); /** - * drm_for_each_connector - iterate over all connectors - * @connector: the loop cursor - * @dev: the DRM device - * - * Iterate over all connectors of @dev. - * - * WARNING: - * - * This iterator is not safe against hotadd/removal of connectors and is - * deprecated. Use drm_for_each_connector_iter() instead. - */ -#define drm_for_each_connector(connector, dev) \ - list_for_each_entry(connector, &(dev)->mode_config.connector_list, head) - -/** * struct drm_connector_list_iter - connector_list iterator * * This iterator tracks state needed to be able to walk the connector_list