소스 검색

qcacmn: Fix for Header File inclusion

Compilation is failing due to Missing definition
of KERNEL_VERSION as the Header file is added
before including <linux/version.h>.

Fix is to move the Header file at the end.

CRs-Fixed: 3338337
Change-Id: I83fc448becc4af81df9b4c7b3fe9193875c7f6f1
Devender Kumar 2 년 전
부모
커밋
ef32f35aed
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      qdf/linux/src/qdf_nbuf.c

+ 4 - 3
qdf/linux/src/qdf_nbuf.c

@@ -21,9 +21,6 @@
  * DOC: qdf_nbuf.c
  * QCA driver framework(QDF) network buffer management APIs
  */
-#ifdef IPA_OFFLOAD
-#include <i_qdf_ipa_wdi3.h>
-#endif
 #include <linux/hashtable.h>
 #include <linux/kernel.h>
 #include <linux/version.h>
@@ -54,6 +51,10 @@
 #include <linux/ip.h>
 #endif /* FEATURE_TSO */
 
+#ifdef IPA_OFFLOAD
+#include <i_qdf_ipa_wdi3.h>
+#endif /* IPA_OFFLOAD */
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 0)
 
 #define qdf_nbuf_users_inc atomic_inc