msm: wlan: Fix a corner case build error in CNSS platform driver
When the following conditions are met:
1) Client code includes both include/net/cnss.h and
include/net/cnss_prealloc.h
2) CONFIG_SLUB_DEBUG is not defined in the defconfig of a
perticular platform
function wcnss_prealloc_check_memory_leak will be declared as:
void wcnss_prealloc_check_memory_leak(void);
in include/net/cnss_prealloc.h, and implemented as:
static inline void wcnss_prealloc_check_memory_leak(void) {}
in include/net/cnss.h, which will result in a build error.
Move the inline implementation of wcnss_prealloc_check_memory_leak
into include/net/cnss_prealloc.h and make the same function's
declaration enclosed by some conditional macros to avoid this kind
of build errors.
Change-Id: I4a1922a6293eaa257ae9a764bdbff27dee7c22ac
Signed-off-by:
Wade Song <wadesong@codeaurora.org>
Loading
Please register or sign in to comment