Luiz Augusto von Dentz
e8fcbce542
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:31:27 +02:00
..
2022-03-07 11:40:41 +00:00
2022-01-17 05:49:30 +02:00
2022-01-17 05:49:30 +02:00
2021-10-05 07:41:16 -07:00
2022-03-07 11:40:41 +00:00
2021-06-26 07:12:41 +02:00
2020-02-28 08:30:02 +01:00
2022-04-28 13:08:15 -07:00
2021-06-26 07:12:41 +02:00
2019-06-05 17:36:37 +02:00
2021-11-02 19:37:52 +01:00
2021-11-02 19:37:52 +01:00
2021-03-13 00:04:03 +11:00
2021-04-27 17:05:53 -07:00
2022-05-19 20:11:26 +02:00
2022-05-19 20:11:26 +02:00
2021-10-07 17:57:22 +02:00
2021-09-07 14:09:18 -07:00
2022-05-23 21:19:17 -07:00
2022-08-17 15:14:53 +02:00
2021-09-22 16:17:13 +02:00
2021-09-22 16:17:13 +02:00
2022-08-17 15:14:53 +02:00
2022-06-05 16:28:41 -07:00
2021-12-22 23:01:35 +01:00
2022-04-06 13:45:26 +01:00
2022-08-17 15:14:54 +02:00
2021-10-13 14:31:50 +02:00
2021-04-06 14:11:23 -07:00
2022-09-05 10:31:27 +02:00
2022-01-07 08:40:11 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2020-05-11 12:16:27 +02:00
2021-10-29 16:51:58 +02:00
2021-06-26 07:12:42 +02:00
2020-06-18 13:11:03 +03:00
2022-05-13 13:05:48 +02:00
2021-12-07 17:05:52 +01:00
2022-08-17 15:14:53 +02:00
2022-03-18 17:12:08 +01:00
2021-12-07 17:05:51 +01:00
2022-05-13 13:05:48 +02:00
2021-03-13 00:04:03 +11:00
2021-06-26 07:12:43 +02:00
2021-06-26 07:12:37 +02:00