[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5690167F.6030405@cogentembedded.com>
Date: Fri, 8 Jan 2016 23:05:19 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: tim.gardner@...onical.com, Armin Schindler <mac@...ware.de>,
Karsten Keil <isdn@...ux-pingi.de>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4.4-rc8 5/7] isdn: eicon: divasfunc: Silence frame size
warning
On 01/08/2016 03:32 PM, tim.gardner@...onical.com wrote:
> From: Tim Gardner <tim.gardner@...onical.com>
>
> drivers/isdn/hardware/eicon/divasfunc.c: In function 'connect_didd':
> drivers/isdn/hardware/eicon/divasfunc.c:192:1: warning: the frame size of 1152 bytes is larger than 1024 bytes [-Wframe-larger-than=]
>
> gcc version 5.3.1 20151219 (Ubuntu 5.3.1-4ubuntu1)
>
> Cc: Armin Schindler <mac@...ware.de>
> Cc: Karsten Keil <isdn@...ux-pingi.de>
> Signed-off-by: Tim Gardner <tim.gardner@...onical.com>
> ---
> drivers/isdn/hardware/eicon/divasfunc.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/isdn/hardware/eicon/divasfunc.c b/drivers/isdn/hardware/eicon/divasfunc.c
> index 4be5f88..ac4c04a 100644
> --- a/drivers/isdn/hardware/eicon/divasfunc.c
> +++ b/drivers/isdn/hardware/eicon/divasfunc.c
> @@ -158,10 +158,13 @@ static int __init connect_didd(void)
> int x = 0;
> int dadapter = 0;
> IDI_SYNC_REQ req;
> - DESCRIPTOR DIDD_Table[MAX_DESCRIPTORS];
> + DESCRIPTOR *DIDD_Table;
>
> - DIVA_DIDD_Read(DIDD_Table, sizeof(DIDD_Table));
> + DIDD_Table = kcalloc(MAX_DESCRIPTORS, sizeof(*DIDD_Table), GFP_KERNEL);
kmalloc_array()?
MBR, Sergei
Powered by blists - more mailing lists