Commit e500ee27 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] some missing statics in mm/

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b407ae3c
...@@ -179,7 +179,7 @@ static struct backing_dev_info shmem_backing_dev_info = { ...@@ -179,7 +179,7 @@ static struct backing_dev_info shmem_backing_dev_info = {
.unplug_io_fn = default_unplug_io_fn, .unplug_io_fn = default_unplug_io_fn,
}; };
LIST_HEAD(shmem_inodes); static LIST_HEAD(shmem_inodes);
static spinlock_t shmem_ilock = SPIN_LOCK_UNLOCKED; static spinlock_t shmem_ilock = SPIN_LOCK_UNLOCKED;
static void shmem_free_block(struct inode *inode) static void shmem_free_block(struct inode *inode)
......
...@@ -504,8 +504,10 @@ static struct cache_names __initdata cache_names[] = { ...@@ -504,8 +504,10 @@ static struct cache_names __initdata cache_names[] = {
#undef CACHE #undef CACHE
}; };
struct arraycache_init initarray_cache __initdata = { { 0, BOOT_CPUCACHE_ENTRIES, 1, 0} }; static struct arraycache_init initarray_cache __initdata =
struct arraycache_init initarray_generic __initdata = { { 0, BOOT_CPUCACHE_ENTRIES, 1, 0} }; { { 0, BOOT_CPUCACHE_ENTRIES, 1, 0} };
static struct arraycache_init initarray_generic __initdata =
{ { 0, BOOT_CPUCACHE_ENTRIES, 1, 0} };
/* internal cache of cache description objs */ /* internal cache of cache description objs */
static kmem_cache_t cache_cache = { static kmem_cache_t cache_cache = {
...@@ -523,8 +525,7 @@ static kmem_cache_t cache_cache = { ...@@ -523,8 +525,7 @@ static kmem_cache_t cache_cache = {
/* Guard access to the cache-chain. */ /* Guard access to the cache-chain. */
static struct semaphore cache_chain_sem; static struct semaphore cache_chain_sem;
static struct list_head cache_chain;
struct list_head cache_chain;
/* /*
* vm_enough_memory() looks at this to determine how many * vm_enough_memory() looks at this to determine how many
...@@ -539,7 +540,7 @@ EXPORT_SYMBOL(slab_reclaim_pages); ...@@ -539,7 +540,7 @@ EXPORT_SYMBOL(slab_reclaim_pages);
* chicken and egg problem: delay the per-cpu array allocation * chicken and egg problem: delay the per-cpu array allocation
* until the general caches are up. * until the general caches are up.
*/ */
enum { static enum {
NONE, NONE,
PARTIAL, PARTIAL,
FULL FULL
...@@ -822,7 +823,7 @@ void __init kmem_cache_init(void) ...@@ -822,7 +823,7 @@ void __init kmem_cache_init(void)
*/ */
} }
int __init cpucache_init(void) static int __init cpucache_init(void)
{ {
int cpu; int cpu;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment