Bladeren bron

qcacld-3.0: Properly export qos_release_command()

We want to enable the -Wmissing-prototypes compiler switch. Currently
when enabled there is a build failure due to qos_release_command() not
having a prototype. Add a proper prototype, and remove the associated
extern declaration from sme_api.c that is no longer required. In
addition remove adjacent obsolete prototypes.

Change-Id: If5f67e4cb8fdfe01837620394f23ede74cd6cf7c
CRs-Fixed: 1095704
Jeff Johnson 8 jaren geleden
bovenliggende
commit
f5289be449
2 gewijzigde bestanden met toevoegingen van 1 en 9 verwijderingen
  1. 1 1
      core/sme/inc/sme_inside.h
  2. 0 8
      core/sme/src/common/sme_api.c

+ 1 - 1
core/sme/inc/sme_inside.h

@@ -203,8 +203,8 @@ void sme_release_command(tpAniSirGlobal pMac, tSmeCmd *pCmd);
 void purge_sme_session_cmd_list(tpAniSirGlobal pMac, uint32_t sessionId,
 		tDblLinkList *pList);
 bool sme_command_pending(tpAniSirGlobal pMac);
-bool pmc_process_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
 bool qos_process_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
+void qos_release_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
 QDF_STATUS csr_process_scan_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
 QDF_STATUS csr_roam_process_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
 void csr_roam_process_wm_status_change_command(tpAniSirGlobal pMac,

+ 0 - 8
core/sme/src/common/sme_api.c

@@ -62,17 +62,9 @@
 #include "sme_nan_datapath.h"
 #include "csr_api.h"
 
-extern tSirRetStatus u_mac_post_ctrl_msg(void *pSirGlobal, tSirMbMsg *pMb);
-
 #define LOG_SIZE 256
 
 static tSelfRecoveryStats g_self_recovery_stats;
-/* TxMB Functions */
-extern QDF_STATUS pmc_prepare_command(tpAniSirGlobal pMac, uint32_t sessionId,
-				      eSmeCommandType cmdType, void *pvParam,
-				      uint32_t size, tSmeCmd **ppCmd);
-extern void pmc_release_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
-extern void qos_release_command(tpAniSirGlobal pMac, tSmeCmd *pCommand);
 
 static QDF_STATUS init_sme_cmd_list(tpAniSirGlobal pMac);
 static void sme_abort_command(tpAniSirGlobal pMac, tSmeCmd *pCommand,