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: 9601623 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 4AFFA60453 for ; Thu, 2 Mar 2017 21:45:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A1592841C for ; Thu, 2 Mar 2017 21:45:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D55C285F8; Thu, 2 Mar 2017 21:45:50 +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=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C3FD82841C for ; Thu, 2 Mar 2017 21:45:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=tjjpdAgQ79Ge9E26pfNq/WGXsh7gRNwJ2Oa0YZ9y32k=; b=mx0WJ2CaFbSGn6T1i63pH9VU+q w5NjMx/t7+Gy/3cGW5qAtEBKNF1R55XcZWqq3gI4d0vopl0OUE1C73YBiLC2Py/jRdQNH9ljxlZyh 97vieI0qZ6aSLJdagnopML8xrlL52yVC7FE9d3V0DubzkoNroYLJpTic6NgFnNSjLyh6YDO9+yj0X UthUFJ4fo0E6YxxdtlhePTebo5OlB4ss8XMSfq/o4evRZdwE9U6nxYlEDPWrl4Rbnjpq65ydp05oD VVAXMWI4ZQfOVzv/hdszbM2ehs6Wx2YV6SmBVMvF+/Ve8FjD7/GfZQsf4J5IOJw44uUCoI/3mnMi+ KPETQaSw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cjYXk-0008FN-VE; Thu, 02 Mar 2017 21:45:49 +0000 Received: from mail-qk0-f181.google.com ([209.85.220.181]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjYXD-0006NR-RM for linux-arm-kernel@lists.infradead.org; Thu, 02 Mar 2017 21:45:17 +0000 Received: by mail-qk0-f181.google.com with SMTP id m67so31704711qkf.2 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=D6uQ278pij0Tdu/gTDgn9IhUb/4AIucLnZHl6bBvR/qCiaAhD9Ue1jXpawHNq7BH2K B7c6OMwuF3EMaSdVnRs5bYOCKA0ntrkMezJ3eh3xROwn0+zuSi0iQ6IGlzeTPPGNUnGZ 4HElvqtGGvmiaMABbdLMYTUXQM/TBarq/4ShvRma4BsyqqL6LCIo4cQaJhyNmuIXeUS+ EUf5tmK3tlGtKKlLuz4M9PqM467b39LZG9Ecqm/8EQ++E11h4JOxV4QzY8Du9pPBzht5 GFOE35Kyq9vHTtBu1LxEmPVXLcUoExlYrWKsvA1mzr4re1I3eyLQ5hn2QZ/eGSwkWpPq 3NUA== X-Gm-Message-State: AMke39l4V4mKASR5NxQcnWdYHrQBf0XQSebNmdg6Ki5Jb9Zc8t7RtdudCPW3r8yIsT2u0KOW 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170302_134515_972829_B4A7B283 X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 , Benjamin Gaignard , Daniel Vetter , Laura Abbott , Brian Starkey , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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;