mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Define qdf_mempool_t for non kernel users
Fix implicit declaration error when qdf_mem.h is included from userspace Change-Id: I88ccec9c53abb8d5844f42984af3f8693c1d3000 CRs-Fixed: 1012511
This commit is contained in:
parent
be11624671
commit
ced2345f71
1 changed files with 1 additions and 9 deletions
|
|
@ -62,15 +62,7 @@
|
|||
#define kfree(buf)
|
||||
#define vfree(buf)
|
||||
#define pci_alloc_consistent(dev, size, paddr) NULL
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
|
||||
/*
|
||||
* typedef to dummy type to overcome implicit declaration error in
|
||||
* spectraltool.c
|
||||
*/
|
||||
#define __qdf_mempool_t int
|
||||
#else
|
||||
#define __qdf_mempool_t
|
||||
#endif /* LINUX_VERSION_CODE */
|
||||
#define __qdf_mempool_t void*
|
||||
#endif /* __KERNEL__ */
|
||||
#include <qdf_status.h>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue