From patchwork Thu Jun 27 11:48:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maarten Lankhorst X-Patchwork-Id: 2792211 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E5A6D9F245 for ; Thu, 27 Jun 2013 12:06:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BCC1C2026B for ; Thu, 27 Jun 2013 12:06:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 418D120262 for ; Thu, 27 Jun 2013 12:06:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 37288E646F for ; Thu, 27 Jun 2013 05:06:17 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by gabe.freedesktop.org (Postfix) with ESMTP id 22876E63E1 for ; Thu, 27 Jun 2013 04:49:13 -0700 (PDT) Received: by mail-wg0-f52.google.com with SMTP id b12so490053wgh.7 for ; Thu, 27 Jun 2013 04:49:13 -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:x-mailer:in-reply-to:references; bh=pbsaID1qrCeQfYs9+3DJrNhngA2mKt428sVocux9o54=; b=C+CiS6Uoex4IPAzhoE0s7xrwMtTlHvGZtgUPjVm9QVQVJ9nZfEzQpcJudNeIwVg6Tf A6c42D+QjIOTTQvDgryyHnmQ4ldEUmoo+R4FDrahe9RQVPHD0KM3febS3hBjmCZGWnye ox61EANYzpfWTjrS7JiaVO54RDI87lSTma/9NRB6cP7qjb9rUh8n8aiBJTDtYtrmFRLm PpkFgfrcn3oSR6APlM8jDBHD3T9g9yP1Ioz8Fi9m9hDsZHdltWQfUZbfp4NExtSxKiG4 LBdmhAb2L8BMq/9niuUFmzLWVJeScGsaxMF9IzAksCMAsvrv4A53zI+QPWr5+SsFe9dG LJaw== X-Received: by 10.180.210.148 with SMTP id mu20mr15238915wic.38.1372333753395; Thu, 27 Jun 2013 04:49:13 -0700 (PDT) Received: from localhost (5ED49945.cm-7-5c.dynamic.ziggo.nl. [94.212.153.69]) by mx.google.com with ESMTPSA id p1sm16816484wix.9.2013.06.27.04.49.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 27 Jun 2013 04:49:13 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Thu, 27 Jun 2013 13:49:09 +0200 From: Maarten Lankhorst To: Dave Airlie Subject: [PATCH WW 13/13] drm/ttm: get rid of ttm_bo_is_reserved Date: Thu, 27 Jun 2013 13:48:28 +0200 Message-Id: <1372333708-29884-14-git-send-email-maarten.lankhorst@canonical.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1372333708-29884-1-git-send-email-maarten.lankhorst@canonical.com> References: <1372333708-29884-1-git-send-email-maarten.lankhorst@canonical.com> Cc: dri-devel@lists.freedesktop.org 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=-5.4 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 Signed-off-by: Maarten Lankhorst --- include/drm/ttm/ttm_bo_api.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/drm/ttm/ttm_bo_api.h b/include/drm/ttm/ttm_bo_api.h index 31ad860..8a6aa56 100644 --- a/include/drm/ttm/ttm_bo_api.h +++ b/include/drm/ttm/ttm_bo_api.h @@ -712,18 +712,4 @@ extern ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp, extern void ttm_bo_swapout_all(struct ttm_bo_device *bdev); -/** - * ttm_bo_is_reserved - return an indication if a ttm buffer object is reserved - * - * @bo: The buffer object to check. - * - * This function returns an indication if a bo is reserved or not, and should - * only be used to print an error when it is not from incorrect api usage, since - * there's no guarantee that it is the caller that is holding the reservation. - */ -static inline bool ttm_bo_is_reserved(struct ttm_buffer_object *bo) -{ - return ww_mutex_is_locked(&bo->resv->lock); -} - #endif