summaryrefslogtreecommitdiff
path: root/core/pld
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-10-07 12:33:22 -0700
committerqcabuildsw <qcabuildsw@localhost>2016-10-20 16:04:14 -0700
commitbbaf4e4f62c4cbfc57b4028c27f1d4667bbf1bfd (patch)
tree252de2ecade8fb107fcbab5de61fa200b379e7e0 /core/pld
parent4ae7506db1aedb0ce4e5c3edad3ce37733bece6a (diff)
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
Diffstat (limited to 'core/pld')
-rw-r--r--core/pld/src/pld_common.c2
-rw-r--r--core/pld/src/pld_pcie.c1
-rw-r--r--core/pld/src/pld_pcie.h6
-rw-r--r--core/pld/src/pld_sdio.h1
-rw-r--r--core/pld/src/pld_snoc.c1
5 files changed, 7 insertions, 4 deletions
diff --git a/core/pld/src/pld_common.c b/core/pld/src/pld_common.c
index 023e58324557..da6e7dfabddb 100644
--- a/core/pld/src/pld_common.c
+++ b/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;
diff --git a/core/pld/src/pld_pcie.c b/core/pld/src/pld_pcie.c
index f95498154795..ada4fd1126b5 100644
--- a/core/pld/src/pld_pcie.c
+++ b/core/pld/src/pld_pcie.c
@@ -36,6 +36,7 @@
#endif
#include "pld_internal.h"
+#include "pld_pcie.h"
#ifdef CONFIG_PCI
diff --git a/core/pld/src/pld_pcie.h b/core/pld/src/pld_pcie.h
index dfba7b4d2fe6..f14f555d5628 100644
--- a/core/pld/src/pld_pcie.h
+++ b/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;
}
diff --git a/core/pld/src/pld_sdio.h b/core/pld/src/pld_sdio.h
index 0f6786256dff..5db8bb90e180 100644
--- a/core/pld/src/pld_sdio.h
+++ b/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)
{
diff --git a/core/pld/src/pld_snoc.c b/core/pld/src/pld_snoc.c
index 8a68aabbab31..03aa4ec61904 100644
--- a/core/pld/src/pld_snoc.c
+++ b/core/pld/src/pld_snoc.c
@@ -35,6 +35,7 @@
#endif
#include "pld_internal.h"
+#include "pld_snoc.h"
#ifdef CONFIG_PLD_SNOC_ICNSS
/**