Luiz Augusto von Dentz
61d968f0e9
Bluetooth: L2CAP: Fix build errors in some archs
...
commit b840304fb46cdf7012722f456bce06f151b3e81b upstream.
This attempts to fix the follow errors:
In function 'memcmp',
inlined from 'bacmp' at ./include/net/bluetooth/bluetooth.h:347:9,
inlined from 'l2cap_global_chan_by_psm' at
net/bluetooth/l2cap_core.c:2003:15:
./include/linux/fortify-string.h:44:33: error: '__builtin_memcmp'
specified bound 6 exceeds source size 0 [-Werror=stringop-overread]
44 | #define __underlying_memcmp __builtin_memcmp
| ^
./include/linux/fortify-string.h:420:16: note: in expansion of macro
'__underlying_memcmp'
420 | return __underlying_memcmp(p, q, size);
| ^~~~~~~~~~~~~~~~~~~
In function 'memcmp',
inlined from 'bacmp' at ./include/net/bluetooth/bluetooth.h:347:9,
inlined from 'l2cap_global_chan_by_psm' at
net/bluetooth/l2cap_core.c:2004:15:
./include/linux/fortify-string.h:44:33: error: '__builtin_memcmp'
specified bound 6 exceeds source size 0 [-Werror=stringop-overread]
44 | #define __underlying_memcmp __builtin_memcmp
| ^
./include/linux/fortify-string.h:420:16: note: in expansion of macro
'__underlying_memcmp'
420 | return __underlying_memcmp(p, q, size);
| ^~~~~~~~~~~~~~~~~~~
Fixes: 332f1795ca20 ("Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regression")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-05 10:26:33 +02:00
..
2020-01-27 14:50:41 +01:00
2022-08-25 11:15:32 +02:00
2021-07-31 08:22:37 +02:00
2021-01-17 14:04:19 +01:00
2021-04-07 12:48:49 +02:00
2020-10-01 13:14:43 +02:00
2022-04-27 13:39:46 +02:00
2022-05-18 09:42:47 +02:00
2022-09-05 10:26:33 +02:00
2020-01-27 14:50:51 +01:00
2022-09-05 10:26:29 +02:00
2021-09-22 11:48:11 +02:00
2022-07-12 16:29:01 +02:00
2020-11-05 11:08:53 +01:00
2022-09-05 10:26:31 +02:00
2022-03-08 19:04:10 +01:00
2022-08-25 11:15:13 +02:00
2021-07-28 11:13:48 +02:00
2020-04-23 10:30:24 +02:00
2022-03-23 09:10:44 +01:00
2020-01-09 10:19:09 +01:00
2021-05-22 10:59:24 +02:00
2022-02-08 18:23:16 +01:00
2022-08-25 11:15:32 +02:00
2022-08-11 12:48:39 +02:00
2020-12-08 10:18:52 +01:00
2022-09-05 10:26:29 +02:00
2022-06-25 11:49:15 +02:00
2021-02-10 09:21:06 +01:00
2022-03-28 08:41:44 +02:00
2022-06-14 16:59:29 +02:00
2021-04-14 08:22:36 +02:00
2021-12-08 08:50:13 +01:00
2021-04-14 08:22:35 +02:00
2022-09-05 10:26:30 +02:00
2021-09-22 11:48:09 +02:00
2022-05-18 09:42:47 +02:00
2021-07-28 11:13:48 +02:00
2022-06-14 16:59:20 +02:00
2022-06-25 11:49:17 +02:00
2022-04-27 13:39:43 +02:00
2022-01-11 13:58:50 +01:00
2019-12-05 09:21:30 +01:00
2021-09-03 09:58:00 +02:00
2022-08-25 11:15:34 +02:00
2020-01-12 12:17:17 +01:00
2022-09-05 10:26:29 +02:00
2022-06-14 16:59:23 +02:00
2022-09-05 10:26:30 +02:00
2022-08-11 12:48:40 +02:00
2022-05-18 09:42:48 +02:00
2019-05-16 19:41:27 +02:00
2022-08-25 11:15:37 +02:00
2022-07-21 21:09:30 +02:00
2022-07-29 17:10:32 +02:00
2022-06-14 16:59:35 +02:00
2022-08-25 11:15:38 +02:00
2022-06-14 16:59:19 +02:00
2022-04-15 14:14:53 +02:00
2021-05-22 10:59:48 +02:00
2022-09-05 10:26:29 +02:00
2021-06-30 08:48:13 -04:00
2021-07-31 08:22:37 +02:00
2022-09-05 10:26:31 +02:00