linux-next: build warning after merge of the akpm-current tree

From: Stephen Rothwell
Date: Wed Nov 06 2019 - 02:05:51 EST


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

Attachment: pgplZL9wABIH8.pgp
Description: OpenPGP digital signature