summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-01-20 13:04:06 -0800
committerDoug Ledford <dledford@redhat.com>2017-01-24 12:23:35 -0500
commit7844572c633964c864d9f32dc3f2a8ffe5d70371 (patch)
treea0402ba054805b019692ba5a1e865f6849569957 /arch
parent1eec9e2befd35270b19a91bb633db595dc55975e (diff)
downloadlinux-stable-7844572c633964c864d9f32dc3f2a8ffe5d70371.tar.gz
linux-stable-7844572c633964c864d9f32dc3f2a8ffe5d70371.tar.bz2
linux-stable-7844572c633964c864d9f32dc3f2a8ffe5d70371.zip
lib/dma-noop: Only build dma_noop_ops for s390 and m32r
Reduce the kernel size by only building dma_noop_ops for those architectures that actually use it. This was suggested by Christoph Hellwig. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Joerg Roedel <jroedel@suse.de> Cc: Andy Lutomirski <luto@kernel.org> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/m32r/Kconfig1
-rw-r--r--arch/s390/Kconfig1
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig
index d227a6988d6b..95474460b367 100644
--- a/arch/m32r/Kconfig
+++ b/arch/m32r/Kconfig
@@ -18,6 +18,7 @@ config M32R
select MODULES_USE_ELF_RELA
select HAVE_DEBUG_STACKOVERFLOW
select CPU_NO_EFFICIENT_FFS
+ select DMA_NOOP_OPS
config SBUS
bool
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
index c6722112527d..38ad42358c41 100644
--- a/arch/s390/Kconfig
+++ b/arch/s390/Kconfig
@@ -137,6 +137,7 @@ config S390
select HAVE_DEBUG_KMEMLEAK
select HAVE_DMA_API_DEBUG
select HAVE_DMA_CONTIGUOUS
+ select DMA_NOOP_OPS
select HAVE_DYNAMIC_FTRACE
select HAVE_DYNAMIC_FTRACE_WITH_REGS
select HAVE_EFFICIENT_UNALIGNED_ACCESS