diff options
author | Keith Packard <keithp@keithp.com> | 2008-06-20 03:08:06 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-10-17 17:10:11 -0400 |
commit | 395e0ddc44005ced5e4fed9bfc2e4bdf63d37627 (patch) | |
tree | ee33f3a28029dae46445e563d35ed93f36dd9fad /mm/shmem.c | |
parent | 0a3e67a4caac273a3bfc4ced3da364830b1ab241 (diff) |
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 <eric@anholt.net>
Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index bf66d0191baf..d87958a5f03e 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -2580,6 +2580,7 @@ put_memory: | |||
2580 | shmem_unacct_size(flags, size); | 2580 | shmem_unacct_size(flags, size); |
2581 | return ERR_PTR(error); | 2581 | return ERR_PTR(error); |
2582 | } | 2582 | } |
2583 | EXPORT_SYMBOL_GPL(shmem_file_setup); | ||
2583 | 2584 | ||
2584 | /** | 2585 | /** |
2585 | * shmem_zero_setup - setup a shared anonymous mapping | 2586 | * shmem_zero_setup - setup a shared anonymous mapping |