瀏覽代碼

qcacld-3.0: Add INLINE macro definition in os API header

FW common files needs to be in sync with host and fw.
Latest version of FW interface file uses INLINE macro and
INLINE macro definition is not exposed by fw interface files
as it has different definition of INLINE for different
toolchains/compilers. Abstract INLINE macro definition in
os API header file.

Change-Id: I431b12ce7f880e2f0e8db244f230c64f59e12e42
CRs-Fixed: 1012542
Govind Singh 9 年之前
父節點
當前提交
d5a7bcd155
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      uapi/linux/osapi_linux.h

+ 6 - 0
uapi/linux/osapi_linux.h

@@ -240,6 +240,9 @@ void a_netbuf_queue_init(A_NETBUF_QUEUE_T *q);
 #ifndef inline
 #define inline                  __inline__
 #endif
+#ifndef INLINE
+#define INLINE                  __inline__
+#endif
 #else                           /* Not GCC */
 #define __ATTRIB_PACK
 #define __ATTRIB_PRINTF
@@ -247,6 +250,9 @@ void a_netbuf_queue_init(A_NETBUF_QUEUE_T *q);
 #ifndef inline
 #define inline                  __inline
 #endif
+#ifndef INLINE
+#define INLINE                  __inline
+#endif
 #endif /* End __GNUC__ */
 
 #define PREPACK