From: Keith Packard Date: Fri, 20 Jun 2008 07:08:06 +0000 (-0700) Subject: Export shmem_file_setup for DRM-GEM X-Git-Tag: v2.6.28-rc1~255^2~26 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=395e0ddc44005ced5e4fed9bfc2e4bdf63d37627;p=linux-2.6-omap-h63xx.git Export shmem_file_setup for DRM-GEM GEM needs to create shmem files to back buffer objects. Though currently creation of files for objects could have been driven from userland, the modesetting work will require allocation of buffer objects before userland is running, for boot-time message display. Signed-off-by: Eric Anholt Cc: Nick Piggin Signed-off-by: Dave Airlie --- diff --git a/mm/shmem.c b/mm/shmem.c index bf66d0191ba..d87958a5f03 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -2580,6 +2580,7 @@ put_memory: shmem_unacct_size(flags, size); return ERR_PTR(error); } +EXPORT_SYMBOL_GPL(shmem_file_setup); /** * shmem_zero_setup - setup a shared anonymous mapping