From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751783AbdJPD1p (ORCPT ); Sun, 15 Oct 2017 23:27:45 -0400 Received: from merlin.infradead.org ([205.233.59.134]:59936 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751541AbdJPD1o (ORCPT ); Sun, 15 Oct 2017 23:27:44 -0400 Subject: Re: CONFIG_DMA_NOOP_OPS breaks ARM arch To: Marian Mihailescu , linux-kernel@vger.kernel.org References: Cc: Bart Van Assche , iommu@lists.linux-foundation.org From: Randy Dunlap Message-ID: <960157c0-13ee-9953-d654-9891465c987d@infradead.org> Date: Sun, 15 Oct 2017 20:27:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/17 19:27, Marian Mihailescu wrote: > After commit 7844572c633964c864d9f32dc3f2a8ffe5d70371, dma_noop_ops > are built only for architectures that use it. > > For ARM architecture, CONFIG_DMA_NOOP_OPS is not selected, and cannot > be selected. > > However, arch/arm/include/asm/dma-mapping.h is referencing dma_noop_ops: > > static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) > { > return IS_ENABLED(CONFIG_MMU) ? &arm_dma_ops : &dma_noop_ops; > } > > I will let a maintainer suggest the best resolution for this :) > add Bart and iommu mailing list. -- ~Randy