mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Signed-off-by: Domen Puncer <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
This commit is contained in:
parent
854af9578c
commit
5a0f217d96
7 changed files with 18 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue