瀏覽代碼

qcacld-3.0: Add WAR for ol_rx_err -Wmissing-prototypes

Currently wma_data.c generates a warning when compiled with the GCC
-Wmissing-prototypes switch because it does not include a header file
which exports a prototype for ol_rx_err(). The definition and
placement of this API is strange, and an "issue report" has been
opened to correctly address this issue.  As a WAR until the issue is
correctly resolved, define the prototype internal to wma_data.c itself
so that the -Wmissing-prototypes switch can be enabled.

Change-Id: Ibd519b802b75c7110fe96d9ccd96ab1f9ba785d0
CRs-Fixed: 1113083
Jeff Johnson 8 年之前
父節點
當前提交
bd6ebd2a05
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      core/wma/src/wma_data.c

+ 10 - 0
core/wma/src/wma_data.c

@@ -2980,6 +2980,16 @@ QDF_STATUS wma_ds_peek_rx_packet_info(cds_pkt_t *pkt, void **pkt_meta,
  *
  * Return: none
  */
+/*
+ * Local prototype added to temporarily address warning caused by
+ * -Wmissing-prototypes. A more correct solution will come later
+ * as a solution to IR-196435 at whihc point this prototype will
+ * be removed.
+ */
+void ol_rx_err(void *pdev, uint8_t vdev_id,
+	       uint8_t *peer_mac_addr, int tid, uint32_t tsf32,
+	       enum ol_rx_err_type err_type, qdf_nbuf_t rx_frame,
+	       uint64_t *pn, uint8_t key_id);
 void ol_rx_err(void *pdev, uint8_t vdev_id,
 	       uint8_t *peer_mac_addr, int tid, uint32_t tsf32,
 	       enum ol_rx_err_type err_type, qdf_nbuf_t rx_frame,