Luiz Augusto von Dentz
38267d2663
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:28:55 +02:00
..
2020-07-19 18:16:41 -07:00
2022-01-27 10:53:45 +01:00
2021-08-26 08:35:40 -04:00
2022-07-29 17:19:26 +02:00
2020-06-23 14:30:07 +02:00
2021-03-04 11:37:25 +01:00
2020-02-28 08:30:02 +01:00
2020-06-12 15:08:49 +02:00
2021-03-07 12:34:10 +01:00
2019-06-05 17:36:37 +02:00
2020-08-07 11:33:22 -07:00
2021-05-11 14:47:36 +02:00
2022-06-09 10:21:09 +02:00
2022-06-09 10:21:09 +02:00
2022-06-09 10:21:09 +02:00
2015-02-15 18:54:13 +02:00
2022-06-09 10:21:09 +02:00
2022-06-09 10:21:09 +02:00
2020-07-30 09:34:43 +02:00
2022-06-09 10:21:09 +02:00
2021-08-12 13:22:08 +02:00
2020-09-25 20:21:55 +02:00
2022-09-05 10:28:55 +02:00
2022-01-27 10:54:02 +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
2020-06-12 21:41:07 +02:00
2022-06-09 10:21:08 +02:00
2020-06-18 13:11:03 +03:00
2017-06-16 11:48:40 -04:00
2015-03-17 18:03:08 +01:00
2022-06-09 10:21:09 +02:00
2020-10-29 17:22:59 -05:00
2020-06-18 13:11:21 +03:00
2022-07-29 17:19:26 +02:00
2020-07-31 16:42:04 +03:00
2014-12-30 08:53:55 +02:00
2022-06-09 10:21:09 +02:00
2018-09-26 12:39:32 +03:00