diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-10-10 05:59:52 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-11-04 07:18:08 -0500 |
commit | e38e0cfa48ac38f4fe24453d2523852467c95b21 (patch) | |
tree | 6b949db59b0c73cc3d3bc04f52d479bd605c658e /include/sound/core.h | |
parent | b1d5776d865951c213a1caaab5d8bf5de7615dbd (diff) |
[ALSA] Remove kmalloc wrappers
Modules: ALSA Core
Remove kmalloc wrappers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/core.h')
-rw-r--r-- | include/sound/core.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 0a14885fb1d7..ed56a356ab7d 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -284,31 +284,6 @@ int snd_oss_init_module(void); | |||
284 | 284 | ||
285 | /* memory.c */ | 285 | /* memory.c */ |
286 | 286 | ||
287 | #ifdef CONFIG_SND_DEBUG_MEMORY | ||
288 | void snd_memory_init(void); | ||
289 | void snd_memory_done(void); | ||
290 | int snd_memory_info_init(void); | ||
291 | int snd_memory_info_done(void); | ||
292 | void *snd_hidden_kmalloc(size_t size, gfp_t flags); | ||
293 | void *snd_hidden_kzalloc(size_t size, gfp_t flags); | ||
294 | void *snd_hidden_kcalloc(size_t n, size_t size, gfp_t flags); | ||
295 | void snd_hidden_kfree(const void *obj); | ||
296 | char *snd_hidden_kstrdup(const char *s, gfp_t flags); | ||
297 | #define kmalloc(size, flags) snd_hidden_kmalloc(size, flags) | ||
298 | #define kzalloc(size, flags) snd_hidden_kzalloc(size, flags) | ||
299 | #define kcalloc(n, size, flags) snd_hidden_kcalloc(n, size, flags) | ||
300 | #define kfree(obj) snd_hidden_kfree(obj) | ||
301 | #define kmalloc_nocheck(size, flags) snd_wrapper_kmalloc(size, flags) | ||
302 | #define kfree_nocheck(obj) snd_wrapper_kfree(obj) | ||
303 | #define kstrdup(s, flags) snd_hidden_kstrdup(s, flags) | ||
304 | #else | ||
305 | #define snd_memory_init() /*NOP*/ | ||
306 | #define snd_memory_done() /*NOP*/ | ||
307 | #define snd_memory_info_init() /*NOP*/ | ||
308 | #define snd_memory_info_done() /*NOP*/ | ||
309 | #define kmalloc_nocheck(size, flags) kmalloc(size, flags) | ||
310 | #define kfree_nocheck(obj) kfree(obj) | ||
311 | #endif | ||
312 | int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count); | 287 | int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count); |
313 | int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count); | 288 | int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count); |
314 | 289 | ||