wlan: fix issues encounter when building with GCC 4.7

GCC 4.7 introduces some additional checks which prevents our current
source from compiling.  To resolve this remove "inline" declarations
from functions which do not have bodys that can be inlined, and (for
now) ignore "maybe-uninitialized" warnings since the compiler isn't
always right about these.

CRs-fixed: 455332
Change-Id: Ib95e5c467cc0371887932ed2298295c5fcfb802b
diff --git a/CORE/HDD/inc/wlan_hdd_assoc.h b/CORE/HDD/inc/wlan_hdd_assoc.h
index fec64a1..40d0b5c 100644
--- a/CORE/HDD/inc/wlan_hdd_assoc.h
+++ b/CORE/HDD/inc/wlan_hdd_assoc.h
@@ -128,7 +128,7 @@
 
 extern v_VOID_t hdd_connSaveConnectInfo( hdd_adapter_t *pAdapter, tCsrRoamInfo *pRoamInfo, eCsrRoamBssType eBssType );
 
-inline v_BOOL_t hdd_connGetConnectedBssType( hdd_station_ctx_t *pHddCtx, 
+v_BOOL_t hdd_connGetConnectedBssType( hdd_station_ctx_t *pHddCtx,
         eMib_dot11DesiredBssType *pConnectedBssType );
 
 int hdd_SetGENIEToCsr( hdd_adapter_t *pAdapter, eCsrAuthType *RSNAuthType );
diff --git a/CORE/WDI/CP/inc/wlan_qct_wdi_i.h b/CORE/WDI/CP/inc/wlan_qct_wdi_i.h
index 93079cf..1ec5c73 100644
--- a/CORE/WDI/CP/inc/wlan_qct_wdi_i.h
+++ b/CORE/WDI/CP/inc/wlan_qct_wdi_i.h
@@ -4140,7 +4140,7 @@
 
  @return Result of the function call
 */
-WPT_INLINE WDI_Status
+WDI_Status
 WDI_CleanCB
 (
   WDI_ControlBlockType*  pWDICtx
@@ -4156,7 +4156,7 @@
  @see
  @return Result of the function call
 */
-WPT_INLINE WDI_Status
+WDI_Status
 WDI_ProcessRequest
 (
   WDI_ControlBlockType*  pWDICtx,
@@ -4601,7 +4601,7 @@
  @see
  @return 
 */
-WPT_INLINE void 
+void
 WDI_DS_AssignDatapathContext 
 (
   void *pContext, 
@@ -4617,7 +4617,7 @@
  @see
  @return pointer to Datapath context
 */
-WPT_INLINE void * 
+void *
 WDI_DS_GetDatapathContext 
 (
   void *pContext
@@ -4633,7 +4633,7 @@
  @see
  @return void
 */
-WPT_INLINE void  
+void
 WDT_AssignTransportDriverContext 
 (
   void *pContext, 
@@ -4649,7 +4649,7 @@
  @see
  @return pointer to datapath context 
 */
-WPT_INLINE void * 
+void *
 WDT_GetTransportDriverContext 
 (
   void *pContext
diff --git a/Kbuild b/Kbuild
index c5d2150..91cfce9 100644
--- a/Kbuild
+++ b/Kbuild
@@ -636,6 +636,9 @@
 CDEFINES += -DWLAN_OPEN_SOURCE
 endif
 
+# Fix build for GCC 4.7
+EXTRA_CFLAGS += -Wno-maybe-uninitialized -Wno-unused-function
+
 KBUILD_CPPFLAGS += $(CDEFINES)
 
 # Module information used by KBuild framework