[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190722142149.GU12733@vkoul-mobl.Dlink>
Date: Mon, 22 Jul 2019 19:51:49 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: Gustavo Pimentel <gustavo.pimentel@...opsys.com>,
Dan Williams <dan.j.williams@...el.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Russell King <rmk+kernel@...linux.org.uk>,
Joao Pinto <jpinto@...opsys.com>, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] [v2] dmaengine: dw-edma: fix unnecessary stack usage
On 22-07-19, 14:44, Arnd Bergmann wrote:
> Putting large constant data on the stack causes unnecessary overhead
> and stack usage:
>
> drivers/dma/dw-edma/dw-edma-v0-debugfs.c:285:6: error: stack frame size of 1376 bytes in function 'dw_edma_v0_debugfs_on' [-Werror,-Wframe-larger-than=]
>
> Mark the variable 'static const' in order for the compiler to move it
> into the .rodata section where it does no such harm.
Applied all, thanks
Please do note the link was pointing to older rev, I have updated them
to this revision.
--
~Vinod
Powered by blists - more mailing lists