From patchwork Wed Apr 1 16:15:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6141221 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B55C29F399 for ; Wed, 1 Apr 2015 16:12:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ED1BB20364 for ; Wed, 1 Apr 2015 16:12:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1D7D420148 for ; Wed, 1 Apr 2015 16:12:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 22F8F6E8C7; Wed, 1 Apr 2015 09:12:42 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 0BABD6E8C7 for ; Wed, 1 Apr 2015 09:12:41 -0700 (PDT) Received: by wgbdm7 with SMTP id dm7so58862528wgb.1 for ; Wed, 01 Apr 2015 09:12:40 -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=RH4ESEew87kS+DVwOSvhDqQSDObNEBgxikhLcwZUyEg=; b=SQmBHOZzpNwiIvXdvgHvcNSRr/qKhwpax7jW8ziuH0cfhBLct2kefN3SRiLXGSXysA TDS8tYxuelSzgF6S3+mQVTSXynBrc9J8tTw3qtCbAqoZzcNkJLD/vbVKSQ76Rpv5RaeI uj48XglUvmB4zeHiD8Ui41UhBzvmqNcDpVy7zbYN/Dfp24Xb0GCKui4iiHURoXxc/JHu PkJshXtRpKI7OPWGGVlhE56JdMbyqsMi0PWWB2e/g9r9y6tG4qO4M+gVnv2WnsIm5aNB pfOyWDy0zKfNrXctalTE/flxO28Px+tMnuWZORyA1E9XuX+j+4PR6npsB2TTEPKsFU5e qWWQ== X-Received: by 10.181.13.170 with SMTP id ez10mr557988wid.72.1427904760428; Wed, 01 Apr 2015 09:12:40 -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.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 09:12:39 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 12/24] intel: remove unused mmFindBlock Date: Wed, 1 Apr 2015 17:15:23 +0100 Message-Id: <1427904935-14387-13-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: 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 The function was never part of the public API and a release or so back was hidden from the global name-space (list of exported symbols). According to git log this function was never used internally. Signed-off-by: Emil Velikov --- intel/mm.c | 12 ------------ intel/mm.h | 7 ------- 2 files changed, 19 deletions(-) diff --git a/intel/mm.c b/intel/mm.c index 1069745..10b74bf 100644 --- a/intel/mm.c +++ b/intel/mm.c @@ -191,18 +191,6 @@ struct mem_block *mmAllocMem(struct mem_block *heap, int size, int align2, return p; } -struct mem_block *mmFindBlock(struct mem_block *heap, int start) -{ - struct mem_block *p; - - for (p = heap->next; p != heap; p = p->next) { - if (p->ofs == start) - return p; - } - - return NULL; -} - static int Join2Blocks(struct mem_block *p) { /* XXX there should be some assertions here */ diff --git a/intel/mm.h b/intel/mm.h index a6ee102..c7dd8b0 100644 --- a/intel/mm.h +++ b/intel/mm.h @@ -65,13 +65,6 @@ extern struct mem_block *mmAllocMem(struct mem_block *heap, int size, extern int mmFreeMem(struct mem_block *b); /** - * Free block starts at offset - * input: pointer to a heap, start offset - * return: pointer to a block - */ -extern struct mem_block *mmFindBlock(struct mem_block *heap, int start); - -/** * destroy MM */ extern void mmDestroy(struct mem_block *mmInit);