From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 0/4] dma-mapping: Constify dma_attrs Date: Tue, 24 May 2016 02:09:38 -0700 Message-ID: <20160524090938.GA13166@infradead.org> References: <1464071290-15948-1-git-send-email-k.kozlowski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1464071290-15948-1-git-send-email-k.kozlowski@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Krzysztof Kozlowski Cc: Stefano Stabellini , Konrad Rzeszutek Wilk , Catalin Marinas , Joerg Roedel , Bartlomiej Zolnierkiewicz , Will Deacon , Russell King , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, xen-devel@lists.xenproject.org, Andrew Morton , linux-arm-kernel@lists.infradead.org, Marek Szyprowski List-Id: iommu@lists.linux-foundation.org I think this is moving into the wrong direction. The right fix here is to get of all the dma_attrs boilerplate code and just replace it with a simple enum dma_flags. This would simplify both the callers and most importantly the wrappers for the flag-less versions a lot.