From patchwork Sat Mar 18 00:54:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9631793 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 2E35C60249 for ; Sat, 18 Mar 2017 00:55:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 225E3283FB for ; Sat, 18 Mar 2017 00:55:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1712F284A5; Sat, 18 Mar 2017 00:55:13 +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 CA18B283FB for ; Sat, 18 Mar 2017 00:55:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2EB7D6EDD6; Sat, 18 Mar 2017 00:55:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt0-f182.google.com (mail-qt0-f182.google.com [209.85.216.182]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5BAE16EDD6 for ; Sat, 18 Mar 2017 00:55:11 +0000 (UTC) Received: by mail-qt0-f182.google.com with SMTP id r45so75159122qte.3 for ; Fri, 17 Mar 2017 17:55:11 -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=S9RqD66/gkOHH/pQc27LK08rxwKKjAheHePR0sYCsjI=; b=OBoV34txQhMrqjvIcXfTiqiiOWzxMTtECFP9CrX8GU+sFwMa+qJEio00GwFE6RqWm5 xQbEIbbcUeLkMs2OBSUldCAfgKFgu7waEujZS+GaVBeHgqL3mAdNYB2z8r6d756OwpRP vREfvgKlFFwRuURzjC5ZCyg7bzMBekvXjp3Ia5bkgTIOr6T1L8YR5DxN5e5zr5xViPyC 8xBE+uYc2HAZFDARoWl8a6h37BkReBPUiISWJA9/hcTBc4IE7eMJSMnxh/KM7cXKpt0j 3yNtOOqo/9fGRnUB4MKAKJJoP1CT3Q9INj/5NnhnhOZC6W3oaqPHSsuKLTkT/AjgBLCr LW6w== X-Gm-Message-State: AFeK/H1E/zi6GlkjC4nDvfbPVQBEDvx4eDbwjQOx3RnlxYn3ClTMvwO2Se+YuoGSDfZKzI3T X-Received: by 10.200.50.112 with SMTP id y45mr15974368qta.75.1489798509650; Fri, 17 Mar 2017 17:55:09 -0700 (PDT) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc:1722:8a6b:a66c:79eb]) by smtp.gmail.com with ESMTPSA id e55sm7118568qte.52.2017.03.17.17.55.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Mar 2017 17:55:08 -0700 (PDT) From: Laura Abbott To: Sumit Semwal , Riley Andrews , arve@android.com Subject: [RFC PATCHv2 03/21] staging: android: ion: Remove dmap_cnt Date: Fri, 17 Mar 2017 17:54:35 -0700 Message-Id: <1489798493-16600-4-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489798493-16600-1-git-send-email-labbott@redhat.com> References: <1489798493-16600-1-git-send-email-labbott@redhat.com> Cc: devel@driverdev.osuosl.org, romlem@google.com, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, Mark Brown , Laurent Pinchart , Daniel Vetter , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org 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 The reference counting of dma_map calls was removed. Remove the associated counter field as well. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion_priv.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/android/ion/ion_priv.h b/drivers/staging/android/ion/ion_priv.h index 5b3059c..46d3ff5 100644 --- a/drivers/staging/android/ion/ion_priv.h +++ b/drivers/staging/android/ion/ion_priv.h @@ -44,7 +44,6 @@ * @lock: protects the buffers cnt fields * @kmap_cnt: number of times the buffer is mapped to the kernel * @vaddr: the kernel mapping if kmap_cnt is not zero - * @dmap_cnt: number of times the buffer is mapped for dma * @sg_table: the sg table for the buffer if dmap_cnt is not zero * @pages: flat array of pages in the buffer -- used by fault * handler and only valid for buffers that are faulted in @@ -70,7 +69,6 @@ struct ion_buffer { struct mutex lock; int kmap_cnt; void *vaddr; - int dmap_cnt; struct sg_table *sg_table; struct page **pages; struct list_head vmas;