Re: [PATCH] soc: fsl: dpio: avoid stack usage warning

2020-04-17 Thread Arnd Bergmann
On Wed, Apr 8, 2020 at 10:24 PM Russell King - ARM Linux admin 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

Re: [PATCH] soc: fsl: dpio: avoid stack usage warning

2020-04-08 Thread Russell King - ARM Linux admin
On Wed, Apr 08, 2020 at 08:58:16PM +0200, Arnd Bergmann wrote: > A 1024 byte variable on the stack will warn on any 32-bit architecture > during compile-testing, and is generally a bad idea anyway: > > fsl/dpio/dpio-service.c: In function > 'dpaa2_io_service_enqueue_multiple_desc_fq': >

[PATCH] soc: fsl: dpio: avoid stack usage warning

2020-04-08 Thread Arnd Bergmann
A 1024 byte variable on the stack will warn on any 32-bit architecture during compile-testing, and is generally a bad idea anyway: fsl/dpio/dpio-service.c: In function 'dpaa2_io_service_enqueue_multiple_desc_fq': fsl/dpio/dpio-service.c:495:1: error: the frame size of 1032 bytes is larger than