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

From: Stephen Rothwell
Date: Fri Apr 06 2018 - 00:54:31 EST


Hi Andrew,

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

mm/memcontrol.c: In function 'memory_events_show':
mm/memcontrol.c:5453:23: warning: array subscript is above array bounds [-Warray-bounds]
atomic_long_read(&memcg->memory_events[OOM_KILL]));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

725844c87a0d ("mm: memcg: make sure memory.events is uptodate when waking pollers")

--
Cheers,
Stephen Rothwell

Attachment: pgpmkuv0lC2xu.pgp
Description: OpenPGP digital signature