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