Pārlūkot izejas kodu

qcacmn: Fix TCL_DATA_CMD struct parsing in KIWI crash dumps

The compiler removes unreferenced TCL_DATA_CMD struct from the
object file. Hence this cannot be parsed in the dumps. This fix will
inform the compiler to retain the structure.

Change-Id: I6bc12893769f17dc3f51130b7e947f62b1bd3ea9
CRs-Fixed: 3105021
Namita Nair 3 gadi atpakaļ
vecāks
revīzija
d3e9c9ca97
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      hal/wifi3.0/kiwi/hal_kiwi.c

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

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021,2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2022 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
@@ -38,6 +38,8 @@
 
 #include <hal_be_rx.h>
 
+struct tcl_data_cmd gtcl_data_symbol __attribute__((used));
+
 #define UNIFIED_RXPCU_PPDU_END_INFO_8_RX_PPDU_DURATION_OFFSET \
 	RXPCU_PPDU_END_INFO_RX_PPDU_DURATION_OFFSET
 #define UNIFIED_RXPCU_PPDU_END_INFO_8_RX_PPDU_DURATION_MASK \