Luiz Augusto von Dentz
9e38a363dc
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:30:06 +02:00
..
2021-06-26 07:12:40 +02:00
2022-01-27 11:03:03 +01:00
2021-06-26 07:12:40 +02:00
2022-07-29 17:25:30 +02:00
2021-06-26 07:12:41 +02:00
2021-06-26 07:12:41 +02:00
2020-02-28 08:30:02 +01:00
2021-01-29 16:51:45 +01:00
2021-06-26 07:12:41 +02:00
2019-06-05 17:36:37 +02:00
2021-04-06 14:11:23 -07:00
2021-04-06 14:11:23 -07:00
2021-03-13 00:04:03 +11:00
2021-04-27 17:05:53 -07:00
2022-04-08 14:23:41 +02:00
2022-05-15 20:18:52 +02:00
2021-06-26 07:12:44 +02:00
2022-07-12 16:35:07 +02:00
2022-06-09 10:22:58 +02:00
2020-11-09 13:33:19 +01:00
2021-08-05 12:15:24 -07:00
2022-01-27 11:04:22 +01:00
2021-04-06 14:11:23 -07:00
2022-09-05 10:30:06 +02:00
2022-01-27 11:03:58 +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-04-06 14:11:23 -07:00
2021-06-26 07:12:42 +02:00
2020-06-18 13:11:03 +03:00
2022-01-27 11:03:31 +01:00
2021-06-26 07:12:42 +02:00
2021-04-08 12:26:34 +02:00
2022-07-29 17:25:30 +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