summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorVictor Fusco <victor@cetuc.puc-rio.br>2005-07-26 13:42:31 +0200
committerJaroslav Kysela <perex@suse.cz>2005-07-28 12:22:44 +0200
commit5a0f217d96656068f0f1e5cda16c35945f979b16 (patch)
tree47b5eb5d011c8593c4fe0522ac8f6910a3440372 /include/sound
parent854af9578cb84e4ca3cb1551a6be40c4e81bb455 (diff)
downloadlinux-3.10-5a0f217d96656068f0f1e5cda16c35945f979b16.tar.gz
linux-3.10-5a0f217d96656068f0f1e5cda16c35945f979b16.tar.bz2
linux-3.10-5a0f217d96656068f0f1e5cda16c35945f979b16.zip
[ALSA] sound/core Fix the sparse warning 'implicit cast to nocast type'
Memalloc module,ALSA Core,Instrument layer Fix the sparse warning 'implicit cast to nocast type' File/Subsystem:sound/core Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br> Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/core.h6
-rw-r--r--include/sound/driver.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/sound/core.h b/include/sound/core.h
index 52fcc2f62b9..38b357fc895 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -290,12 +290,12 @@ void snd_memory_init(void);
void snd_memory_done(void);
int snd_memory_info_init(void);
int snd_memory_info_done(void);
-void *snd_hidden_kmalloc(size_t size, int flags);
-void *snd_hidden_kcalloc(size_t n, size_t size, int flags);
+void *snd_hidden_kmalloc(size_t size, unsigned int __nocast flags);
+void *snd_hidden_kcalloc(size_t n, size_t size, unsigned int __nocast flags);
void snd_hidden_kfree(const void *obj);
void *snd_hidden_vmalloc(unsigned long size);
void snd_hidden_vfree(void *obj);
-char *snd_hidden_kstrdup(const char *s, int flags);
+char *snd_hidden_kstrdup(const char *s, unsigned int __nocast flags);
#define kmalloc(size, flags) snd_hidden_kmalloc(size, flags)
#define kcalloc(n, size, flags) snd_hidden_kcalloc(n, size, flags)
#define kfree(obj) snd_hidden_kfree(obj)
diff --git a/include/sound/driver.h b/include/sound/driver.h
index 948e9a1aebe..0d12456ec3a 100644
--- a/include/sound/driver.h
+++ b/include/sound/driver.h
@@ -51,7 +51,7 @@
#ifdef CONFIG_SND_DEBUG_MEMORY
#include <linux/slab.h>
#include <linux/vmalloc.h>
-void *snd_wrapper_kmalloc(size_t, int);
+void *snd_wrapper_kmalloc(size_t, unsigned int __nocast);
#undef kmalloc
void snd_wrapper_kfree(const void *);
#undef kfree