sound/core/memalloc.c: fix PROC_FS=n compilation
PATCH 1/1 sound/core/memalloc.c: fix PROC_FS=n compilation
This patch fixes the following compile error with CONFIG_PROC_FS=n:
<-- snip -->
...
CC sound/core/memalloc.osound/core/memalloc.c: In function 'snd_mem_exit':sound/core/memalloc.c:657: error: 'snd_mem_proc' undeclared (first use in this function) sound/core/memalloc.c:657: error: (Each undeclared identifier is reported only once sound/core/memalloc.c:657: error: for each function it appears in.) make[2]: *** [sound/core/memalloc.o] Error 1
<-- snip -->
Since snd_mem_proc was needlessly global, I've also made it static.
sound/core/memalloc.c renamed from sound/core/memalloc.c.old +1 -1
@@ -505,13 +505,13 @@up (&list_mutex); } +static struct proc_dir_entry *snd_mem_proc;#ifdef CONFIG_PROC_FS /* * proc file interface */ #define SND_MEM_PROC_FILE "driver/snd-page-alloc" -struct proc_dir_entry *snd_mem_proc;static int snd_mem_proc_read (char *page,char **start,off_t off,int count,int *eof,void *data)
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click