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
..
2020-01-29 10:24:22 +01:00
2022-08-25 11:09:27 +02:00
2021-08-04 11:58:02 +02:00
2020-01-12 11:24:27 +01:00
2021-04-07 12:05:39 +02:00
2020-10-01 20:40:12 +02:00
2022-03-16 12:49:00 +01:00
2022-03-16 12:49:01 +01:00
2022-09-05 10:23:57 +02:00
2022-01-27 08:47:33 +01:00
2021-09-22 11:43:09 +02:00
2022-02-08 18:15:26 +01:00
2020-11-10 10:23:59 +01:00
2022-09-05 10:23:55 +02:00
2022-03-08 19:00:59 +01:00
2021-09-22 11:43:09 +02:00
2021-07-28 09:14:27 +02:00
2018-07-22 14:27:39 +02:00
2020-04-13 10:32:53 +02:00
2020-01-12 11:24:19 +01:00
2021-05-22 10:40:20 +02:00
2022-02-08 18:15:29 +01:00
2022-08-25 11:09:27 +02:00
2022-08-25 11:09:20 +02:00
2017-05-25 15:44:41 +02:00
2018-09-15 09:43:01 +02:00
2020-12-11 13:37:56 +01:00
2019-04-17 08:36:44 +02:00
2022-09-05 10:23:54 +02:00
2022-06-25 11:45:19 +02:00
2021-02-10 09:09:25 +01:00
2022-03-28 08:06:06 +02:00
2022-06-14 16:52:35 +02:00
2021-04-16 11:59:10 +02:00
2021-03-17 16:10:13 +01:00
2021-01-12 19:49:01 +01:00
2022-09-05 10:23:55 +02:00
2022-01-27 08:47:42 +01:00
2022-05-18 09:15:43 +02:00
2021-07-28 09:14:27 +02:00
2022-06-14 16:52:31 +02:00
2022-04-27 13:14:11 +02:00
2022-04-27 13:14:10 +02:00
2022-01-11 13:38:12 +01:00
2021-03-30 14:41:42 +02:00
2022-08-25 11:09:28 +02:00
2020-01-12 11:24:23 +01:00
2022-09-05 10:23:54 +02:00
2022-06-14 16:52:33 +02:00
2022-08-25 11:09:28 +02:00
2022-06-14 16:52:32 +02:00
2018-04-29 11:32:02 +02:00
2022-08-25 11:09:29 +02:00
2022-07-21 20:40:32 +02:00
2022-01-27 08:47:41 +01:00
2022-08-25 11:09:29 +02:00
2022-03-23 09:00:33 +01:00
2022-04-20 09:06:38 +02:00
2022-09-05 10:23:54 +02:00
2021-06-30 08:49:12 -04:00
2021-08-04 11:58:01 +02:00
2022-09-05 10:23:55 +02:00