Browse Source

qcacld-3.0: Fix -Wmissing-prototypes in PLD

We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in core/pld.

Change-Id: Icef77666d1d1ef214491dcf1fcd56741091cec4f
CRs-Fixed: 1078826
Jeff Johnson 8 years ago
parent
commit
bbaf4e4f62

+ 1 - 1
core/pld/src/pld_common.c

@@ -176,7 +176,7 @@ void pld_del_dev(struct pld_context *pld_context,
  *
  * Return: PLD bus type
  */
-enum pld_bus_type pld_get_bus_type(struct device *dev)
+static enum pld_bus_type pld_get_bus_type(struct device *dev)
 {
 	struct pld_context *pld_context;
 	struct dev_node *dev_node;

+ 1 - 0
core/pld/src/pld_pcie.c

@@ -36,6 +36,7 @@
 #endif
 
 #include "pld_internal.h"
+#include "pld_pcie.h"
 
 #ifdef CONFIG_PCI
 

+ 3 - 3
core/pld/src/pld_pcie.h

@@ -160,7 +160,7 @@ static inline int pld_pcie_wlan_get_dfs_nol(void *info, u16 info_len)
 {
 	return 0;
 }
-static void pld_pcie_schedule_recovery_work(void)
+static inline void pld_pcie_schedule_recovery_work(void)
 {
 	return;
 }
@@ -204,11 +204,11 @@ static inline int pld_pcie_auto_resume(void)
 {
 	return 0;
 }
-static void pld_pcie_lock_pm_sem(void)
+static inline void pld_pcie_lock_pm_sem(void)
 {
 	return;
 }
-static void pld_pcie_release_pm_sem(void)
+static inline void pld_pcie_release_pm_sem(void)
 {
 	return;
 }

+ 1 - 0
core/pld/src/pld_sdio.h

@@ -60,6 +60,7 @@ static inline void pld_sdio_unregister_driver(void)
 {
 }
 
+static inline
 int pld_sdio_get_fw_files_for_target(struct pld_fw_files *pfw_files,
 				     u32 target_type, u32 target_version)
 {

+ 1 - 0
core/pld/src/pld_snoc.c

@@ -35,6 +35,7 @@
 #endif
 
 #include "pld_internal.h"
+#include "pld_snoc.h"
 
 #ifdef CONFIG_PLD_SNOC_ICNSS
 /**