From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B714FC433E0 for ; Mon, 22 Mar 2021 17:13:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 86591619A0 for ; Mon, 22 Mar 2021 17:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232079AbhCVRMo convert rfc822-to-8bit (ORCPT ); Mon, 22 Mar 2021 13:12:44 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:47478 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232108AbhCVRMS (ORCPT ); Mon, 22 Mar 2021 13:12:18 -0400 Received: from marcel-macbook.holtmann.net (p4fefce19.dip0.t-ipconnect.de [79.239.206.25]) by mail.holtmann.org (Postfix) with ESMTPSA id B1F35CECC4; Mon, 22 Mar 2021 18:19:54 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH] bluetooth: fix set_ecdh_privkey() prototype From: Marcel Holtmann In-Reply-To: <20210322164637.941598-1-arnd@kernel.org> Date: Mon, 22 Mar 2021 18:12:15 +0100 Cc: Johan Hedberg , Luiz Augusto von Dentz , "David S. Miller" , Jakub Kicinski , Arnd Bergmann , linux-bluetooth , netdev , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <9CD4D9AD-D1A3-4C4D-965A-7EFD918608A4@holtmann.org> References: <20210322164637.941598-1-arnd@kernel.org> To: Arnd Bergmann X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, > 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 > --- > net/bluetooth/ecdh_helper.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel