Explorar el Código

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 hace 2 años
padre
commit
ef32f35aed
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  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