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
此提交包含在:
Dustin Brown
2018-04-11 16:09:48 -07:00
提交者 nshrivas
父節點 ae63a5be24
當前提交 3cb98124c1
共有 2 個檔案被更改,包括 6 行新增15 行删除

查看文件

@@ -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
/**