From patchwork Wed Apr 1 16:15:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6141161 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 53AE1BF4A6 for ; Wed, 1 Apr 2015 16:12:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 768CD20148 for ; Wed, 1 Apr 2015 16:12:35 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 95ADD20351 for ; Wed, 1 Apr 2015 16:12:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B37336E8BD; Wed, 1 Apr 2015 09:12:33 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by gabe.freedesktop.org (Postfix) with ESMTP id 00E026E34E for ; Wed, 1 Apr 2015 09:12:31 -0700 (PDT) Received: by wiaa2 with SMTP id a2so72753129wia.0 for ; Wed, 01 Apr 2015 09:12:31 -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=N/kWFpDKDNex+NLxlqd4xFzQgTGDYfPYNPhvHYPkJE4=; b=PddVcPnRXKieBXmKnhLjGmZ1lZJ60DMOHEyOseNF7gmmCKXQZgapBvUHkepL7dUzBs gkPe/90y98CWLcnVJoaAMgf46QjjV68MMf1pOVPD5V2K5hHa4pIFpQJS/SOtPfUwuaMO onb0iu1hXCyvbTUIYdL9zJCHHR/iQDLGmMPif8U5KuzkkOrtyC/UqKBUEZfesP7WS75l oyzPOaFAeLvStXq3uASoIIiia/5M4Jsr62HLz01Q0D07J8nRk8/YHCUAhC3/yngKSx3J u//WrIWA7cMY2n8yUJbm/bwhFDBnEu8Vd1V5FhJJhPbvlhlSQvs9NgZP49Lt5SH3lO1z 0gNA== X-Received: by 10.194.193.69 with SMTP id hm5mr86901856wjc.43.1427904751303; Wed, 01 Apr 2015 09:12:31 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ge8sm3319498wjc.32.2015.04.01.09.12.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 09:12:30 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 05/24] radeon: remove more unused functions Date: Wed, 1 Apr 2015 17:15:16 +0100 Message-Id: <1427904935-14387-6-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> References: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> Cc: Jerome Glisse , emil.l.velikov@gmail.com 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-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_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 bof_array_{get,size} and bof_blob_{size,value}. All of which unused since their introduction with commit 78de69713d7(drm/radeon: add new cs command stream dumping facilities) Cc: Jerome Glisse Signed-off-by: Emil Velikov --- radeon/bof.c | 28 ---------------------------- radeon/bof.h | 4 ---- 2 files changed, 32 deletions(-) diff --git a/radeon/bof.c b/radeon/bof.c index 20901a0..9c7997f 100644 --- a/radeon/bof.c +++ b/radeon/bof.c @@ -158,20 +158,6 @@ int bof_array_append(bof_t *array, bof_t *value) return 0; } -bof_t *bof_array_get(bof_t *bof, unsigned i) -{ - if (!bof_is_array(bof) || i >= bof->array_size) - return NULL; - return bof->array[i]; -} - -unsigned bof_array_size(bof_t *bof) -{ - if (!bof_is_array(bof)) - return 0; - return bof->array_size; -} - /* * blob */ @@ -193,20 +179,6 @@ bof_t *bof_blob(unsigned size, void *value) return blob; } -unsigned bof_blob_size(bof_t *bof) -{ - if (!bof_is_blob(bof)) - return 0; - return bof->size - 12; -} - -void *bof_blob_value(bof_t *bof) -{ - if (!bof_is_blob(bof)) - return NULL; - return bof->value; -} - /* * int32 */ diff --git a/radeon/bof.h b/radeon/bof.h index 4dae923..8108dd5 100644 --- a/radeon/bof.h +++ b/radeon/bof.h @@ -57,12 +57,8 @@ extern int bof_object_set(bof_t *object, const char *keyname, bof_t *value); /* array */ extern bof_t *bof_array(void); extern int bof_array_append(bof_t *array, bof_t *value); -extern bof_t *bof_array_get(bof_t *bof, unsigned i); -extern unsigned bof_array_size(bof_t *bof); /* blob */ extern bof_t *bof_blob(unsigned size, void *value); -extern unsigned bof_blob_size(bof_t *bof); -extern void *bof_blob_value(bof_t *bof); /* int32 */ extern bof_t *bof_int32(int32_t value); extern int32_t bof_int32_value(bof_t *bof);