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