Browse Source

qcacld-3.0: Prepend kernel includes with "kernel/"

To avoid include conflicts, prepend all kernel includes with "kernel/"

Change-Id: I8a3f037c4abf07b129875b919225825701dc1046
CRs-Fixed: 2094774
Dustin Brown 7 years ago
parent
commit
0bec9a9259

+ 1 - 1
Kbuild

@@ -1431,7 +1431,7 @@ endif
 TARGET_INC :=	-I$(WLAN_ROOT)/../fw-api/hw/qca6290/v2 \
 		-I$(WLAN_ROOT)/../fw-api/fw
 
-LINUX_INC :=	-Iinclude/linux
+LINUX_INC :=	-Iinclude
 
 INCS :=		$(HDD_INC) \
 		$(EPPING_INC) \

+ 1 - 1
core/dp/txrx/ol_rx_defrag.c

@@ -61,7 +61,7 @@
 #include <ol_ctrl_txrx_api.h>
 #include <ol_txrx_peer_find.h>
 #include <qdf_nbuf.h>
-#include <ieee80211.h>
+#include <linux/ieee80211.h>
 #include <qdf_util.h>
 #include <athdefs.h>
 #include <qdf_mem.h>

+ 1 - 1
core/dp/txrx/ol_rx_reorder.c

@@ -30,7 +30,7 @@
 #include <qdf_nbuf.h>           /* qdf_nbuf_t, etc. */
 #include <qdf_mem.h>         /* qdf_mem_malloc */
 
-#include <ieee80211.h>          /* IEEE80211_SEQ_MAX */
+#include <linux/ieee80211.h>          /* IEEE80211_SEQ_MAX */
 
 /* external interfaces */
 #include <ol_txrx_api.h>        /* ol_txrx_pdev_handle */

+ 1 - 1
core/dp/txrx/ol_tx_send.c

@@ -33,7 +33,7 @@
 
 #include <cds_queue.h>          /* TAILQ */
 #ifdef QCA_COMPUTE_TX_DELAY
-#include <ieee80211.h>          /* ieee80211_frame, etc. */
+#include <linux/ieee80211.h>          /* ieee80211_frame, etc. */
 #include <enet.h>               /* ethernet_hdr_t, etc. */
 #include <ipv6_defs.h>          /* ipv6_traffic_class */
 #endif

+ 1 - 1
core/dp/txrx/ol_txrx_encap.c

@@ -37,7 +37,7 @@
 
 #include <qdf_nbuf.h>           /* qdf_nbuf_t, etc. */
 #include <cds_ieee80211_common.h>   /* ieee80211_frame */
-#include <net.h>                /* struct llc, struct ether_header, etc. */
+#include <linux/net.h>              /* struct llc, struct ether_header, etc. */
 #include <ol_txrx_internal.h>   /* TXRX_ASSERT1 */
 #include <ol_txrx_encap.h>      /* struct ol_rx_decap_info_t */
 

+ 1 - 1
core/dp/txrx/ol_txrx_internal.h

@@ -39,7 +39,7 @@
 #include <ol_txrx_dbg.h>
 #include <enet.h>               /* ETHERNET_HDR_LEN, etc. */
 #include <ipv4.h>               /* IPV4_HDR_LEN, etc. */
-#include <ipv6.h>               /* IPV6_HDR_LEN, etc. */
+#include <linux/ipv6.h>               /* IPV6_HDR_LEN, etc. */
 #include <ip_prot.h>            /* IP_PROTOCOL_TCP, etc. */
 
 #ifdef ATH_11AC_TXCOMPACT

+ 0 - 1
core/hdd/inc/wlan_hdd_ftm.h

@@ -37,7 +37,6 @@
 #include "qdf_status.h"
 #include "scheduler_api.h"
 #include "cds_api.h"
-#include "msg.h"
 #include "qdf_types.h"
 #include <wlan_ptt_sock_svc.h>
 

+ 1 - 1
core/hdd/src/wlan_hdd_ioctl.h

@@ -28,7 +28,7 @@
 #if !defined(WLAN_HDD_IOCTL_H)
 #define WLAN_HDD_IOCTL_H
 
-#include <netdevice.h>
+#include <linux/netdevice.h>
 #include <uapi/linux/if.h>
 #include "wlan_hdd_main.h"
 

+ 1 - 1
core/hdd/src/wlan_hdd_ipa.c

@@ -35,7 +35,7 @@
 #ifdef IPA_OFFLOAD
 
 /* Include Files */
-#include <ipa.h>
+#include <linux/ipa.h>
 #include <wlan_hdd_includes.h>
 #include <wlan_hdd_ipa.h>
 

+ 1 - 1
core/hdd/src/wlan_hdd_napi.c

@@ -30,7 +30,7 @@
  *
  * WLAN HDD NAPI interface implementation
  */
-#include <smp.h> /* get_cpu */
+#include <linux/smp.h> /* get_cpu */
 
 #include "wlan_hdd_napi.h"
 #include "cds_api.h"       /* cds_get_context */

+ 3 - 3
uapi/linux/osapi_linux.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -271,14 +271,14 @@ void a_netbuf_queue_init(A_NETBUF_QUEUE_T *q);
 
 #ifdef ANDROID
 #ifndef err
-#include <errno.h>
+#include <linux/errno.h>
 #define err(_s, args ...) do { \
 		fprintf(stderr, "%s: line %d ", __FILE__, __LINE__); \
 		fprintf(stderr, args); fprintf(stderr, ": %d\n", errno); \
 		exit(_s); } while (0)
 #endif
 #else
-#include <err.h>
+#include <linux/err.h>
 #endif
 
 #endif /* __KERNEL__ */