Skip to content

Commit e798ba5

Browse files
Hugh Dickinstorvalds
authored andcommitted
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>
1 parent 653c031 commit e798ba5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/gpu/drm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
menuconfig DRM
88
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
1010
help
1111
Kernel-level support for the Direct Rendering Infrastructure (DRI)
1212
introduced in XFree86 4.0. If you say Y here, you need to select

‎mm/tiny-shmem.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ struct file *shmem_file_setup(char *name, loff_t size, unsigned long flags)
9595
put_memory:
9696
return ERR_PTR(error);
9797
}
98+
EXPORT_SYMBOL_GPL(shmem_file_setup);
9899

99100
/**
100101
* shmem_zero_setup - setup a shared anonymous mapping

0 commit comments

Comments
 (0)