Forráskód Böngészése

qcacmn: Fix compilation warnings on x86

Fix the compilation warnings on x86.

Change-Id: Ic9edafc5b33462f5c96faa391e6441141aa09837
CRs-Fixed: 3591586
Gururaj Pandurangi 2 éve
szülő
commit
0b84f05679

+ 1 - 1
hal/wifi3.0/kiwi/hal_kiwi.c

@@ -1966,7 +1966,7 @@ hal_get_tsf_time_kiwi(hal_soc_handle_t hal_soc_hdl, uint32_t tsf_id,
 	uint64_t global_time_low_offset, global_time_high_offset;
 	uint64_t tsf_offset_low, tsf_offset_hi;
 	uint64_t fw_time, global_time, sync_time;
-	enum hal_scratch_reg_enum tsf_enum_low, tsf_enum_high;
+	enum hal_scratch_reg_enum tsf_enum_low = 0, tsf_enum_high = 0;
 
 	if (hif_force_wake_request(soc->hif_handle))
 		return;

+ 2 - 2
hif/src/ce/ce_main.c

@@ -2308,8 +2308,8 @@ static struct hif_ce_desc_event *
 {
 	struct ce_desc_hist *ce_hist = &scn->hif_ce_desc_hist;
 
-	hif_debug("get ce debug buffer ce_id %u, only_ce2/ce3=%lu, idx=%u",
-		  ce_id, (unsigned long)IS_CE_DEBUG_ONLY_FOR_CRIT_CE,
+	hif_debug("get ce debug buffer ce_id %u, only_ce2/ce3=0x%lx, idx=%u",
+		  ce_id, IS_CE_DEBUG_ONLY_FOR_CRIT_CE,
 		  ce_hist->ce_id_hist_map[ce_id]);
 	if (IS_CE_DEBUG_ONLY_FOR_CRIT_CE &&
 	    (ce_id == CE_ID_2 || ce_id == CE_ID_3 || ce_id == CE_ID_7)) {

+ 2 - 2
target_if/green_ap/src/target_if_green_ap.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -162,7 +162,7 @@ static int target_if_green_ap_ll_ps_event(ol_scn_t scn, uint8_t *evt_buf,
 	else
 		ll_ps_param->bcn_mult = 1;
 
-	green_ap_debug("Next TSF: %llu Dialog Token: %llu bcn_mult: %u",
+	green_ap_debug("Next TSF: %llu Dialog Token: %u bcn_mult: %u",
 		       ll_ps_param->next_tsf,
 		       ll_ps_param->dialog_token,
 		       ll_ps_param->bcn_mult);

+ 1 - 1
umac/mlo_mgr/src/wlan_mlo_t2lm.c

@@ -38,7 +38,7 @@ QDF_STATUS wlan_mlo_parse_t2lm_info(uint8_t *ie,
 	enum wlan_t2lm_direction dir;
 	uint8_t *t2lm_control_field;
 	uint16_t t2lm_control;
-	uint8_t link_mapping_presence_ind;
+	uint8_t link_mapping_presence_ind = 0;
 	uint8_t *link_mapping_of_tids;
 	uint8_t tid_num;
 	uint8_t *ie_ptr = NULL;

+ 1 - 1
wmi/src/wmi_unified_tlv.c

@@ -18177,7 +18177,7 @@ static QDF_STATUS extract_green_ap_ll_ps_param_tlv(
 		((uint64_t)ll_ps_event->next_tsf_high32 << 32) |
 		ll_ps_event->next_tsf_low32;
 
-	wmi_debug("cookie : %llu next_tsf %llu", ll_ps_params->dialog_token,
+	wmi_debug("cookie : %u next_tsf %llu", ll_ps_params->dialog_token,
 		  ll_ps_params->next_tsf);
 
 	return QDF_STATUS_SUCCESS;