Export tiny shmem_file_setup for DRM-GEM

We're trying to keep the !CONFIG_SHMEM tiny-shmem.c (using ramfs without
swap) in synch with CONFIG_SHMEM shmem.c (and mpm is preparing patches
to combine them). I was glad to see EXPORT_SYMBOL_GPL(shmem_file_setup)
go into shmem.c, but why not support DRM-GEM when !CONFIG_SHMEM too?
But caution says still depend on MMU, since !CONFIG_MMU is.. different.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Hugh Dickins and committed by Linus Torvalds e798ba57 653c0316

+2 -1
+1 -1
drivers/gpu/drm/Kconfig
··· 6 6 # 7 7 menuconfig DRM 8 8 tristate "Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)" 9 - depends on (AGP || AGP=n) && PCI && !EMULATED_CMPXCHG && SHMEM 9 + depends on (AGP || AGP=n) && PCI && !EMULATED_CMPXCHG && MMU 10 10 help 11 11 Kernel-level support for the Direct Rendering Infrastructure (DRI) 12 12 introduced in XFree86 4.0. If you say Y here, you need to select
+1
mm/tiny-shmem.c
··· 95 95 put_memory: 96 96 return ERR_PTR(error); 97 97 } 98 + EXPORT_SYMBOL_GPL(shmem_file_setup); 98 99 99 100 /** 100 101 * shmem_zero_setup - setup a shared anonymous mapping