[PATCH] soc: fsl: dpio: avoid stack usage warning
Arnd Bergmann
arnd at arndb.de
Sat Apr 18 00:58:47 AEST 2020
On Wed, Apr 8, 2020 at 10:24 PM Russell King - ARM Linux admin
<linux at armlinux.org.uk> wrote:
> On Wed, Apr 08, 2020 at 08:58:16PM +0200, Arnd Bergmann wrote:
> > - int i;
> > - struct qbman_eq_desc ed[32];
> > + struct qbman_eq_desc *ed = kcalloc(sizeof(struct qbman_eq_desc), 32, GFP_KERNEL);
>
> I think you need to rearrange this to be more compliant with the coding
> style.
Ok, I've updated this now to move the allocation into a new line
and applied this and the other fsl patch into the arm/fixes
branch for v5.7.
Arnd
More information about the Linuxppc-dev
mailing list