* net/bluetooth/msft.c:37:6-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
@ 2021-04-07 22:14 kernel test robot
2021-04-07 22:14 ` [PATCH] Bluetooth: fix flexible_array.cocci warnings kernel test robot
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-04-07 22:14 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 1608 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Archie Pusaka <apusaka@chromium.org>
CC: Marcel Holtmann <marcel@holtmann.org>
CC: Manish Mandlik <mmandlik@chromium.org>
CC: "Miao-chen Chou" <mcchou@chromium.org>
CC: "Yun-Hao Chung" <howardchung@google.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 454859c552da78b0f587205d308401922b56863e
commit: a2a4dedf88ab2f807a7ca90947d686816b430f97 Bluetooth: advmon offload MSFT add monitor
date: 2 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 2 months ago
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
cocci warnings: (new ones prefixed by >>)
>> net/bluetooth/msft.c:37:6-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
net/bluetooth/msft.c:42:6-10: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
net/bluetooth/msft.c:52:6-10: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64644 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Bluetooth: fix flexible_array.cocci warnings
2021-04-07 22:14 net/bluetooth/msft.c:37:6-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) kernel test robot
@ 2021-04-07 22:14 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-07 22:14 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2518 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Archie Pusaka <apusaka@chromium.org>
CC: Marcel Holtmann <marcel@holtmann.org>
CC: Manish Mandlik <mmandlik@chromium.org>
CC: "Miao-chen Chou" <mcchou@chromium.org>
CC: "Yun-Hao Chung" <howardchung@google.com>
CC: Johan Hedberg <johan.hedberg@gmail.com>
CC: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: linux-bluetooth(a)vger.kernel.org
CC: netdev(a)vger.kernel.org
From: kernel test robot <lkp@intel.com>
net/bluetooth/msft.c:37:6-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
net/bluetooth/msft.c:42:6-10: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
net/bluetooth/msft.c:52:6-10: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
Zero-length and one-element arrays are deprecated, see
Documentation/process/deprecated.rst
Flexible-array members should be used instead.
Generated by: scripts/coccinelle/misc/flexible_array.cocci
Fixes: a2a4dedf88ab ("Bluetooth: advmon offload MSFT add monitor")
CC: Archie Pusaka <apusaka@chromium.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 454859c552da78b0f587205d308401922b56863e
commit: a2a4dedf88ab2f807a7ca90947d686816b430f97 Bluetooth: advmon offload MSFT add monitor
:::::: branch date: 2 hours ago
:::::: commit date: 2 months ago
Please take the patch only if it's a positive warning. Thanks!
msft.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/net/bluetooth/msft.c
+++ b/net/bluetooth/msft.c
@@ -34,12 +34,12 @@ struct msft_le_monitor_advertisement_pat
__u8 length;
__u8 data_type;
__u8 start_byte;
- __u8 pattern[0];
+ __u8 pattern[];
};
struct msft_le_monitor_advertisement_pattern_data {
__u8 count;
- __u8 data[0];
+ __u8 data[];
};
struct msft_cp_le_monitor_advertisement {
@@ -49,7 +49,7 @@ struct msft_cp_le_monitor_advertisement
__u8 rssi_low_interval;
__u8 rssi_sampling_period;
__u8 cond_type;
- __u8 data[0];
+ __u8 data[];
} __packed;
struct msft_rp_le_monitor_advertisement {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-07 22:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-07 22:14 net/bluetooth/msft.c:37:6-13: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) kernel test robot
2021-04-07 22:14 ` [PATCH] Bluetooth: fix flexible_array.cocci warnings kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.