From patchwork Thu Mar 2 21:44:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9601671 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 5426D60453 for ; Thu, 2 Mar 2017 21:48:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45066285F8 for ; Thu, 2 Mar 2017 21:48:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39C18285FC; Thu, 2 Mar 2017 21:48:18 +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=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2349285F8 for ; Thu, 2 Mar 2017 21:48:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751563AbdCBVoz (ORCPT ); Thu, 2 Mar 2017 16:44:55 -0500 Received: from mail-qk0-f171.google.com ([209.85.220.171]:33507 "EHLO mail-qk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751534AbdCBVoy (ORCPT ); Thu, 2 Mar 2017 16:44:54 -0500 Received: by mail-qk0-f171.google.com with SMTP id n127so147092411qkf.0 for ; Thu, 02 Mar 2017 13:44:53 -0800 (PST) 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=3uAWgs7c4sBu6RHN+WvvQor2DAD9K1TWFPlpQbHGKnY=; b=Abged/d9pjBbSesueYB+rkfrTK5jZjUeCgMiSsTbdiX+5nCSKmznorfZqK5gfW2J5u fIh3WmdhTmI0XsfUMFSfr0JxHRcb04WLMq/VH+vJt+Y1qKz4LedhvHhJxAnF4YEWhX6E jXNnQDG9yMuWD2n2UIh8k7KfzMxQKPrviRdzy6g9jukUr4F0S/wRLtidfWPfI/YxmuOi eLLZPGjCSHfBJWrLh910jfCaaQCUEzY322E6M0W+PWq3aFjLQp6nmY33F++ug3b3RYom m9numE+64G2hceMP4fHFoKxN9GbMvs7GSAVITJsv8rqg+QVwR4rXIfOozraoINyzNANx tT4A== X-Gm-Message-State: AMke39m5mMOwjNiiFdjEC38nfxgPsp8IkPpy7RraRrJJxJ5D9Ex9O/wkSwCP99dzktVhys7u X-Received: by 10.55.109.198 with SMTP id i189mr19852747qkc.242.1488491092908; Thu, 02 Mar 2017 13:44:52 -0800 (PST) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc::5ce7]) by smtp.gmail.com with ESMTPSA id r10sm6261671qte.1.2017.03.02.13.44.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 13:44:51 -0800 (PST) From: Laura Abbott To: Sumit Semwal , Riley Andrews , arve@android.com Cc: Laura Abbott , romlem@google.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, Brian Starkey , Daniel Vetter , Mark Brown , Benjamin Gaignard , linux-mm@kvack.org Subject: [RFC PATCH 01/12] staging: android: ion: Remove dmap_cnt Date: Thu, 2 Mar 2017 13:44:33 -0800 Message-Id: <1488491084-17252-2-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488491084-17252-1-git-send-email-labbott@redhat.com> References: <1488491084-17252-1-git-send-email-labbott@redhat.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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;