[PATCH 1/4] staging: ced1401: fix a frame size warning

devendra.aaru devendra.aaru at gmail.com
Mon Oct 22 15:50:40 UTC 2012


On Thu, Oct 18, 2012 at 8:55 AM, Dan Carpenter <dan.carpenter at oracle.com> wrote:
> On Wed, Oct 17, 2012 at 02:00:55PM -0400, Devendra Naga wrote:
>> gcc/sparse complain about the following:
>>
>> drivers/staging/ced1401/ced_ioc.c:931:1: warning: the frame size of 4144 bytes is larger than 2048 bytes [-Wframe-larger-than=]
>>
>> fix it by using a pointer of the TGET_TX_BLOCK struct
>
> Fix it by dynamically allocating it.
>
> You need to add a kfree() as well now.
>
Thanks Dan, i added and sent a V2 of it.
> regards,
> dan carpenter
>



More information about the devel mailing list