Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp624874pxj; Thu, 20 May 2021 18:15:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1sQyg5mmjU9QfwBMiqIskv5sI1VRg5o+z0jS0dd+tkSbqtlpgS/Mxwc24gPOQvYtSgRNr X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr7622660ejo.448.1621559740430; Thu, 20 May 2021 18:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621559740; cv=none; d=google.com; s=arc-20160816; b=lLLq/QZU23c6zDQhlN6BHFB9Nx5XyN47wxuOAuQ9OhGS9WJt9Og5ipv5/n/BItyReC /IEzEuIhSWfnn4e56WC1tQJiHBBc85lsJSfO3uQk/CZgyUS8aRxBl70XpJFSPYUo/djz bbGAL0VoNwXQlMCdPHtafnTc5B46TGTZVZ8jIxuC3/WonYSBviVDSs7TuKKWmFImCfBy gpfMZ9KAYyVqVp46yVulbHP0F7CnyGxMl8pw6djM+QUFXeQ1BmAQ4fKFRR19V2qnDO9c sNikBU8jTAx+819appEoFBJCIAh9R4a2fDzRlxn0ue9V7xey6JSa3T89ZW2EkTpsJs5Z 1CWA== 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=DpHowD0k0EHpFJ1pWaXIgsH4VXmxbk8VK3HT5zgDUdY=; b=MNtAaWioQXhOOypFFxLxX2OZfEDXHU6CDA+y45004QEHdQ505Dx4LHU0lYwv2W/8j7 lcw0XH6Dx/larTPa9rEcmPbLePghM0Q1PrcPm+TvMapyj7CVqsJCwS9Jxn0M0nWJyohv f/eiUPjIjxdCIs10WRn8MqinO8G0OoNKoOzgnrSGgnPwkLkkfV5Qap3E70DEe4Qpy8hD m1WJ+jpsN/wE60c7oV6q9u9kDBcRpzxF5N5YMcXqgMUKETseIHQtYpQ4mBgXxpdyMWXW BNZbjPNatt1HTmGTX0eT1plMuuAWbWNY//DrW6JQPGtwEKUQlJoo7YVVIJB84Vk1gsbN DhgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FW6mHrZD; 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 c17si3830777ejf.35.2021.05.20.18.15.16; Thu, 20 May 2021 18:15:40 -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=FW6mHrZD; 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 S241614AbhETLpb (ORCPT + 99 others); Thu, 20 May 2021 07:45:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:45834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241276AbhETLYL (ORCPT ); Thu, 20 May 2021 07:24:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1FA4161D9C; Thu, 20 May 2021 10:12:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505542; bh=FQzU1ywP14McHhXd/bP7dyfK9IQrVfQ81ynkrpqJyN8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FW6mHrZDyyAv1QI933dq2Qx2riVz0gatUXm8WCBKgiNrwQm56xTTaU3IIIsBslBWP +MlRF9Sf+stzDaHciCMFmjGYaxPlknM6YwLLSSV1BK5HYRa3M4ZjQXe6817jT7M6sS 8ME/lYRWBT3DFXXuwW2sShCCYBEzmXD3zjEDCM3k= 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.4 181/190] isdn: capi: fix mismatched prototypes Date: Thu, 20 May 2021 11:24:05 +0200 Message-Id: <20210520092108.142221944@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 @@ -845,7 +845,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; @@ -915,7 +915,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;