Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f8cd002 authored by wadesong's avatar wadesong
Browse files

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: default avatarWade Song <wadesong@codeaurora.org>
parent 5b154abb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment