2019-11-06 07:07:53

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warning after merge of the akpm-current tree

Hi all,

After merging the akpm-current tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

lib/cpumask.c: In function 'cpumask_local_spread':
lib/cpumask.c:302:1: warning: the frame size of 5472 bytes is larger than 2048 bytes [-Wframe-larger-than=]
302 | }
| ^

Introduced by commit

3d591f2836cf ("lib: optimize cpumask_local_spread()")

MAX_NUMNODES == (1 << NODES_SHIFT) and NODES_SHIFT == CONFIG_NODES_SHIFT== 10,
so MAX_NUMNODES == 1024 and there is an int array and a bool array of that
size declared here :-(

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2019-11-06 07:54:19

by Zhangshaokun

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the akpm-current tree

Hi Stephen,

On 2019/11/6 15:05, Stephen Rothwell wrote:
> Hi all,
>
> After merging the akpm-current tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> lib/cpumask.c: In function 'cpumask_local_spread':
> lib/cpumask.c:302:1: warning: the frame size of 5472 bytes is larger than 2048 bytes [-Wframe-larger-than=]
> 302 | }
> | ^
>
> Introduced by commit
>
> 3d591f2836cf ("lib: optimize cpumask_local_spread()")
>
> MAX_NUMNODES == (1 << NODES_SHIFT) and NODES_SHIFT == CONFIG_NODES_SHIFT== 10,
> so MAX_NUMNODES == 1024 and there is an int array and a bool array of that
> size declared here :-(

Thanks for the report and sorry for the warning, Michal has pointed this[1].
We are preparing the new solution and will post it soon.

[1] https://lkml.org/lkml/2019/11/5/66

Thanks,
Shaokun

>