Luiz Augusto von Dentz
e8fcbce542
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:31:27 +02:00
..
2022-08-17 15:16:09 +02:00
2022-07-09 12:26:59 +01:00
2022-04-06 13:45:26 +01:00
2022-04-28 13:08:15 -07:00
2022-08-17 15:14:57 +02:00
2022-08-17 15:16:15 +02:00
2022-09-05 10:31:27 +02:00
2022-05-23 16:07:14 -07:00
2022-08-31 17:18:05 +02:00
2022-07-22 12:51:45 +01:00
2022-08-25 11:45:37 +02:00
2022-05-25 20:45:13 +02:00
2022-08-31 17:18:10 +02:00
2022-03-03 08:01:55 -08:00
2022-08-17 15:14:59 +02:00
2022-07-25 12:42:09 +01:00
2022-08-25 11:45:34 +02:00
2022-04-07 21:04:03 -07:00
2022-06-17 20:22:16 -07:00
2022-03-11 23:17:24 -08:00
2022-04-28 13:08:15 -07:00
2022-08-31 17:18:09 +02:00
2022-08-31 17:18:09 +02:00
2022-04-06 13:45:26 +01:00
2022-08-31 17:18:01 +02:00
2022-06-08 10:56:43 -07:00
2022-04-15 14:27:24 -07:00
2022-03-25 16:55:41 -07:00
2022-08-17 15:14:46 +02:00
2022-04-30 20:29:47 +02:00
2022-05-25 12:22:58 -07:00
2022-04-07 21:06:41 -07:00
2022-08-31 17:18:09 +02:00
2022-06-23 20:51:06 -07:00
2022-08-31 17:18:08 +02:00
2022-03-21 10:59:11 +00:00
2022-08-25 11:45:34 +02:00
2022-04-06 13:45:26 +01:00
2022-05-28 15:28:47 +01:00
2022-06-23 11:44:01 +02:00
2022-06-02 10:15:05 -07:00
2022-04-12 15:00:25 +02:00
2022-08-25 11:45:32 +02:00
2022-08-25 11:45:05 +02:00
2022-03-18 13:09:17 +02:00
2022-08-31 17:18:02 +02:00
2022-08-31 17:18:11 +02:00
2022-08-31 17:18:08 +02:00
2022-07-27 18:23:22 -07:00
2022-07-18 12:21:54 +01:00
2022-08-31 17:18:01 +02:00
2022-07-25 12:42:09 +01:00
2022-07-24 21:40:56 +01:00
2022-06-07 12:07:46 +02:00
2022-08-25 11:45:22 +02:00
2022-08-17 15:16:20 +02:00
2022-05-10 11:59:22 +02:00
2022-06-28 22:49:04 +02:00
2022-08-31 17:18:08 +02:00
2022-03-03 09:55:28 +00:00
2022-06-02 10:15:05 -07:00
2022-08-31 17:18:10 +02:00