Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp389947pxj; Thu, 20 May 2021 11:40:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/i48/xXoNhJiTu7VBVskMMFuaAkeVU2qxh9nHdT/dYSt2Mq37l8NPMbI/HXzPDnhl9e9T X-Received: by 2002:a5d:94ce:: with SMTP id y14mr7269615ior.67.1621536051229; Thu, 20 May 2021 11:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621536051; cv=none; d=google.com; s=arc-20160816; b=q8/QGYvWNvprYE/QsvSX0cX0yJbAVKcuhPsbgcgWCBwtyd2AL+NsyzDgrGvR9l/pdo io9Q9Y23h3meez6XkVPSkqNQY6tDCde1cR7lvURmM8Whmp3NO+56Gj2UbrH8UuB54jQk 3dRnSN9sc7T6KrtzHukUvVN0wmbDk9JrD2IZpzgR7EVXWfPWX3S447+oQQJl4VOBxcQu QBUyMSY7NS9n9sylT3dEJWkci7tfYrAYzJdBv8OajXYEkk6HGVv58N7re9HEwbydwTMr 29AMPeCaqj1Bxifrm5U0LooaG6cI+asBIr7q1ROiwC61vDfU0dxQ7rS0Qv0bInPdWcJP pjOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XeGtR1ht8OEAvYWkP7rsbCDn2jJ3mtemPe0iI0ETqxM=; b=lEfZXiSEwlY0sycpWu6/NvAcPgejWCH0egJMnRErXjmGRclZuDJKAnvHSmbhOeoMNU w25AzKdUotB7eSu+tlN5/W/OkIU4cO/2Td7rlddXrWJOzDQMtdkFriAB8cENgXqmW3k7 T80i9+Jt12BZJf93ww6zpYH2F0XvK11aPaaGLDDZL09h+GPt1ovrQA21XAvTQz62UdOF bayyzwzxzMvjV/kWCCpCJTVyu70CxH3s/NqEJ8flS/GS6IjlJv4OyzmYwUuKAdAk9ImB /rJBBH1/5KC7N+qFxE0G8jch0+bcUh+oncNlwwnHIuk6DWmzuafGj3L0j6Gb90Q8YKh1 JG2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IZs8pCBo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si2789541iow.86.2021.05.20.11.40.36; Thu, 20 May 2021 11:40:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IZs8pCBo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236436AbhETK02 (ORCPT + 99 others); Thu, 20 May 2021 06:26:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:47608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235837AbhETKMr (ORCPT ); Thu, 20 May 2021 06:12:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A4D5613DB; Thu, 20 May 2021 09:43:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503831; bh=sQUr7wMd8s3DIqyuZRmOuqrOcv9uqv1kTGFw0veOYtk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IZs8pCBoCwQ8/Q63YMPwrFApq7jTucH1j+aMsholl76QBiaWszNd06MngujPoWRVx 30/7nV2YtINUjdSFwBkji98WlBo4MUWOW8PQnAI9u0XkT2OuUuARryoBj/iQw9siKt XYkOBzV0R6aMIj7rTGBcNTphhuazu/RkFF53oEPY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , "David S. Miller" Subject: [PATCH 4.19 398/425] isdn: capi: fix mismatched prototypes Date: Thu, 20 May 2021 11:22:47 +0200 Message-Id: <20210520092144.478344041@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 5ee7d4c7fbc9d3119a20b1c77d34003d1f82ac26 upstream. gcc-11 complains about a prototype declaration that is different from the function definition: drivers/isdn/capi/kcapi.c:724:44: error: argument 2 of type ‘u8 *’ {aka ‘unsigned char *’} declared as a pointer [-Werror=array-parameter=] 724 | u16 capi20_get_manufacturer(u32 contr, u8 *buf) | ~~~~^~~ In file included from drivers/isdn/capi/kcapi.c:13: drivers/isdn/capi/kcapi.h:62:43: note: previously declared as an array ‘u8[64]’ {aka ‘unsigned char[64]’} 62 | u16 capi20_get_manufacturer(u32 contr, u8 buf[CAPI_MANUFACTURER_LEN]); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/isdn/capi/kcapi.c:790:38: error: argument 2 of type ‘u8 *’ {aka ‘unsigned char *’} declared as a pointer [-Werror=array-parameter=] 790 | u16 capi20_get_serial(u32 contr, u8 *serial) | ~~~~^~~~~~ In file included from drivers/isdn/capi/kcapi.c:13: drivers/isdn/capi/kcapi.h:64:37: note: previously declared as an array ‘u8[8]’ {aka ‘unsigned char[8]’} 64 | u16 capi20_get_serial(u32 contr, u8 serial[CAPI_SERIAL_LEN]); | ~~~^~~~~~~~~~~~~~~~~~~~~~~ Change the definition to make them match. Signed-off-by: Arnd Bergmann Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/isdn/capi/kcapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/isdn/capi/kcapi.c +++ b/drivers/isdn/capi/kcapi.c @@ -846,7 +846,7 @@ EXPORT_SYMBOL(capi20_put_message); * Return value: CAPI result code */ -u16 capi20_get_manufacturer(u32 contr, u8 *buf) +u16 capi20_get_manufacturer(u32 contr, u8 buf[CAPI_MANUFACTURER_LEN]) { struct capi_ctr *ctr; u16 ret; @@ -916,7 +916,7 @@ EXPORT_SYMBOL(capi20_get_version); * Return value: CAPI result code */ -u16 capi20_get_serial(u32 contr, u8 *serial) +u16 capi20_get_serial(u32 contr, u8 serial[CAPI_SERIAL_LEN]) { struct capi_ctr *ctr; u16 ret;