瀏覽代碼

qcacmn: Change size 1 scatter_list array to flexible length array

Change size 1 scatter_list variable length arrays to flexible
length arrays.

CRs-Fixed: 3695133
Change-Id: I448add39987b0318c2b7d2d0553c857fb551c930
Amit Mehta 1 年之前
父節點
當前提交
53ef6cc7ce
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      hif/src/sdio/native_sdio/include/hif_internal.h

+ 2 - 1
hif/src/sdio/native_sdio/include/hif_internal.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2024 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
@@ -326,7 +327,7 @@ struct _HIF_SCATTER_REQ {
 	enum HIF_SCATTER_METHOD   scatter_method;
 	void                 *hif_private[4]; /* HIF private area */
 	u_int8_t             *scatter_bounce_buffer; /* bounce buffers */
-	struct _HIF_SCATTER_ITEM    scatter_list[1]; /* start of scatter list */
+	QDF_FLEX_ARRAY(struct _HIF_SCATTER_ITEM, scatter_list); /* start of scatter list */
 };
 
 typedef struct _HIF_SCATTER_REQ * (*HIF_ALLOCATE_SCATTER_REQUEST)(