From patchwork Wed Aug 14 13:07:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 2844490 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 52D52BF546 for ; Wed, 14 Aug 2013 13:12:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B8352058B for ; Wed, 14 Aug 2013 13:12:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id F0C582054D for ; Wed, 14 Aug 2013 13:11:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EFA2443A79 for ; Wed, 14 Aug 2013 06:11:59 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C814E6778 for ; Wed, 14 Aug 2013 06:07:47 -0700 (PDT) Received: by mail-ea0-f181.google.com with SMTP id d10so4862148eaj.12 for ; Wed, 14 Aug 2013 06:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=epz/LqC5roKHZptVvl1z5a1CHWCXIwtDDedvOKck1nA=; b=bDmuQpl2WY8++4BuGPfYozmncWGNn+uPAJcBnPVBnBBODGFYC2LSSDLosoqwUEW15p h6ruLou0ekld+sqQ5eklkJaOSRk+C6TRoL+l6RPZnCElvvvTJH0Dk0eqnXVXSbLeaQ2t O75lqKmQVO6HB+Jz0P+9K4gIm/EftfKlU48IC0z/z8+wM75ynCVW1ly/sAtaZsUq/ozY S5wsZxTdqGNElDmjdNSLyZLD+QEBa1T2Ajh6cYIwHtCG9ZTvDKjvd6i6LfrMoIl/2vDc Nb/BhgB8x1fruQAKKnvu/pkCKfOdeUpt+WpKhkkiFMWmV/5DX+u9UVehOa9Yd+129n/v FcuA== X-Received: by 10.15.94.201 with SMTP id bb49mr14940561eeb.23.1376485666829; Wed, 14 Aug 2013 06:07:46 -0700 (PDT) Received: from localhost.localdomain (stgt-5f719d8b.pool.mediaWays.net. [95.113.157.139]) by mx.google.com with ESMTPSA id bn13sm75030115eeb.11.2013.08.14.06.07.43 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:07:45 -0700 (PDT) From: David Herrmann To: dri-devel@lists.freedesktop.org Subject: [PATCH 5/7] drm/radeon: remove stale gem->driver_private access Date: Wed, 14 Aug 2013 15:07:18 +0200 Message-Id: <1376485640-711-6-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1376485640-711-1-git-send-email-dh.herrmann@gmail.com> References: <1376485640-711-1-git-send-email-dh.herrmann@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 This field is never read. No need to set it in radeon. Besides, DRM gem core clears it during setup, anyway. Cc: Dave Airlie Cc: Alex Deucher Signed-off-by: David Herrmann Reviewed-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_object.c | 1 - drivers/gpu/drm/radeon/radeon_prime.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 2020bf4..c0fa4aa 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -142,7 +142,6 @@ int radeon_bo_create(struct radeon_device *rdev, return r; } bo->rdev = rdev; - bo->gem_base.driver_private = NULL; bo->surface_reg = -1; INIT_LIST_HEAD(&bo->list); INIT_LIST_HEAD(&bo->va); diff --git a/drivers/gpu/drm/radeon/radeon_prime.c b/drivers/gpu/drm/radeon/radeon_prime.c index 65b9eab..2007456 100644 --- a/drivers/gpu/drm/radeon/radeon_prime.c +++ b/drivers/gpu/drm/radeon/radeon_prime.c @@ -68,7 +68,6 @@ struct drm_gem_object *radeon_gem_prime_import_sg_table(struct drm_device *dev, RADEON_GEM_DOMAIN_GTT, sg, &bo); if (ret) return ERR_PTR(ret); - bo->gem_base.driver_private = bo; mutex_lock(&rdev->gem.mutex); list_add_tail(&bo->list, &rdev->gem.objects);