qcacmn: Fix function declaration warning
Fixes the following warnings/errors with clang 15:
../drivers/staging/wlan-qc/qcacld-3.0/../qca-wifi-host-cmn/target_if/core/src/target_if_main.c:91: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/wlan-qc/qcacld-3.0/../qca-wifi-host-cmn/hif/src/ce/ce_service_legacy.c:1320: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
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Change-Id: I551ba9f0a641b1f3c7149e680816d25f5ae91074
diff --git a/hif/src/ce/ce_service_legacy.c b/hif/src/ce/ce_service_legacy.c
index 0997fcc..366069e 100644
--- a/hif/src/ce/ce_service_legacy.c
+++ b/hif/src/ce/ce_service_legacy.c
@@ -1317,7 +1317,7 @@
#endif
};
-struct ce_ops *ce_services_legacy()
+struct ce_ops *ce_services_legacy(void)
{
return &ce_service_legacy;
}
diff --git a/target_if/core/src/target_if_main.c b/target_if/core/src/target_if_main.c
index a622ca4..a565aab 100644
--- a/target_if/core/src/target_if_main.c
+++ b/target_if/core/src/target_if_main.c
@@ -88,7 +88,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;
}