qcacld-3.0: Add support for size 1 flexible length arrays

Convert size 1 variable length arrays to flexible
length arrays.

Change-Id: I348d479c94a27f4cecc02c8fc9fa98cfb9572baa
CRs-Fixed: 3690224
此提交包含在:
Aditya Kodukula
2023-12-14 01:41:23 -08:00
提交者 Ravindra Konda
父節點 a445b05367
當前提交 949885e505
共有 7 個檔案被更改,包括 18 行新增18 行删除

查看文件

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2017-2019, 2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-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
@@ -118,7 +118,7 @@ struct p2p_rx_mgmt_frame {
uint32_t vdev_id;
uint32_t frm_type;
uint32_t rx_rssi;
uint8_t buf[1];
QDF_FLEX_ARRAY(uint8_t, buf);
};
/**