summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-03-22 17:46:30 +0100
committerMarcel Holtmann <marcel@holtmann.org>2021-03-22 18:11:33 +0100
commit8ff0278d106753a553d6cb2cf49a8888425b8187 (patch)
tree88c360111b7b3eb5226f51f1489c12856fd87b27 /net/bluetooth/l2cap_sock.c
parentbe8597239379f0f53c9710dd6ab551bbf535bec6 (diff)
downloadlinux-stable-8ff0278d106753a553d6cb2cf49a8888425b8187.tar.gz
linux-stable-8ff0278d106753a553d6cb2cf49a8888425b8187.tar.bz2
linux-stable-8ff0278d106753a553d6cb2cf49a8888425b8187.zip
Bluetooth: fix set_ecdh_privkey() prototype
gcc-11 points out that the declaration does not match the definition: net/bluetooth/ecdh_helper.c:122:55: error: argument 2 of type ‘const u8[32]’ {aka ‘const unsigned char[32]’} with mismatched bound [-Werror=array-parameter=] 122 | int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]) | ~~~~~~~~~^~~~~~~~~~~~~~~ In file included from net/bluetooth/ecdh_helper.c:23: net/bluetooth/ecdh_helper.h:28:56: note: previously declared as ‘const u8 *’ {aka ‘const unsigned char *’} 28 | int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 *private_key); | ~~~~~~~~~~^~~~~~~~~~~ Change the declaration to contain the size of the array, rather than just a pointer. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
0 files changed, 0 insertions, 0 deletions