mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
qcacmn: Fix NBUF_MEMORY_DEBUG PERF build error
qdf_net_buf_debug_init/exit() are defined when NBUF_MEMORY_DEBUG is disabled, but they are not declared in the nbuf header file, leading to build errors for PERF builds. Make qdf_net_buf_debug_init/exit() static inline stubs when NBUF_MEMORY_DEBUG is disabled. Change-Id: I4180086f27873a48cb965abed21f4bca2a4ca3a1 CRs-Fixed: 2222969
This commit is contained in:
parent
ae63a5be24
commit
3cb98124c1
2 changed files with 6 additions and 15 deletions
|
|
@ -1166,7 +1166,10 @@ qdf_nbuf_copy_debug(qdf_nbuf_t buf, uint8_t *file_name,
|
|||
return copied_buf;
|
||||
}
|
||||
|
||||
#else
|
||||
#else /* NBUF_MEMORY_DEBUG */
|
||||
|
||||
static inline void qdf_net_buf_debug_init(void) {}
|
||||
static inline void qdf_net_buf_debug_exit(void) {}
|
||||
|
||||
static inline void qdf_net_buf_debug_acquire_skb(qdf_nbuf_t net_buf,
|
||||
uint8_t *file_name, uint32_t line_num)
|
||||
|
|
@ -1219,7 +1222,7 @@ static inline qdf_nbuf_t qdf_nbuf_copy(qdf_nbuf_t buf)
|
|||
return __qdf_nbuf_copy(buf);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* NBUF_MEMORY_DEBUG */
|
||||
|
||||
#ifdef WLAN_FEATURE_FASTPATH
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2641,20 +2641,8 @@ free_buf:
|
|||
}
|
||||
qdf_export_symbol(qdf_nbuf_free_debug);
|
||||
|
||||
#else
|
||||
void qdf_net_buf_debug_init(void)
|
||||
{
|
||||
}
|
||||
#endif /* NBUF_MEMORY_DEBUG */
|
||||
|
||||
qdf_export_symbol(qdf_net_buf_debug_init);
|
||||
|
||||
void qdf_net_buf_debug_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
qdf_export_symbol(qdf_net_buf_debug_exit);
|
||||
|
||||
#endif /*NBUF_MEMORY_DEBUG */
|
||||
#if defined(FEATURE_TSO)
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue