qca-wifi-host-cmn: Add void keyword to old-style zero prototype functions
Newer clang builds complain about old-style function declarations
not having any prototype assigned. The missing `void` is triggering
the Wstrict-prototype warns. Explicitly add the `void` keyword to
satisfy the compiler.
This fixes the following warnings:
drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_legacy.c:
1288:34: error: a function declaration without a prototype is
deprecated in all versions of C [-Werror,-Wstrict-prototypes]
struct ce_ops *ce_services_legacy()
^
void
drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_srng.c:1017:32:
error: a function declaration without a prototype is deprecated in all
versions of C [-Werror,-Wstrict-prototypes]
struct ce_ops *ce_services_srng()
^
void
drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c:
88:40: error: a function declaration without a prototype is
deprecated in all versions of C [-Werror,-Wstrict-prototypes]
struct target_if_ctx *target_if_get_ctx()
^
void
drivers/staging/qcacld-3.0/../qca-wifi-host-cmn/wlan_cfg/wlan_cfg.c:292:49:
error: a function declaration without a prototype is deprecated in all
versions of C [-Werror,-Wstrict-prototypes]
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_soc_attach()
^
void
Change-Id: Ifd95b57d19a25f0932e5de8ec4de2f2c1e7e1259
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
diff --git a/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service.c b/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service.c
index 45434b2..081cd49 100644
--- a/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service.c
+++ b/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service.c
@@ -2802,7 +2802,7 @@ struct ce_ops ce_service_legacy = {
};
-struct ce_ops *ce_services_legacy()
+struct ce_ops *ce_services_legacy(void)
{
return &ce_service_legacy;
}
diff --git a/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_srng.c b/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_srng.c
index 709922e..4195178 100644
--- a/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_srng.c
+++ b/drivers/staging/qca-wifi-host-cmn/hif/src/ce/ce_service_srng.c
@@ -902,7 +902,7 @@ static struct ce_ops ce_service_srng = {
#endif
};
-struct ce_ops *ce_services_srng()
+struct ce_ops *ce_services_srng(void)
{
return &ce_service_srng;
}
diff --git a/drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c b/drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c
index b2f6274..12d3653 100644
--- a/drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c
+++ b/drivers/staging/qca-wifi-host-cmn/target_if/core/src/target_if_main.c
@@ -78,7 +78,7 @@
static struct target_if_ctx *g_target_if_ctx;
-struct target_if_ctx *target_if_get_ctx()
+struct target_if_ctx *target_if_get_ctx(void)
{
return g_target_if_ctx;
}
diff --git a/drivers/staging/qca-wifi-host-cmn/wlan_cfg/wlan_cfg.c b/drivers/staging/qca-wifi-host-cmn/wlan_cfg/wlan_cfg.c
index 6aa77c3..62bdb25 100644
--- a/drivers/staging/qca-wifi-host-cmn/wlan_cfg/wlan_cfg.c
+++ b/drivers/staging/qca-wifi-host-cmn/wlan_cfg/wlan_cfg.c
@@ -289,7 +289,7 @@ struct wlan_cfg_dp_pdev_ctxt {
*
* Return: wlan_cfg_ctx - Handle to Configuration context
*/
-struct wlan_cfg_dp_soc_ctxt *wlan_cfg_soc_attach()
+struct wlan_cfg_dp_soc_ctxt *wlan_cfg_soc_attach(void)
{
int i = 0;