From bbaf4e4f62c4cbfc57b4028c27f1d4667bbf1bfd Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 7 Oct 2016 12:33:22 -0700 Subject: 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 --- core/pld/src/pld_common.c | 2 +- core/pld/src/pld_pcie.c | 1 + core/pld/src/pld_pcie.h | 6 +++--- core/pld/src/pld_sdio.h | 1 + core/pld/src/pld_snoc.c | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) (limited to 'core/pld') 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 /** -- cgit v1.2.3