]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Detect bad _PFN_SHIFT values
authorPaul Burton <paul.burton@mips.com>
Wed, 18 Sep 2019 22:03:30 +0000 (22:03 +0000)
committerPaul Burton <paul.burton@mips.com>
Fri, 20 Sep 2019 21:55:07 +0000 (14:55 -0700)
commitd698ece337711a9e6e0e047b78ed3c43a9aaaff2
tree69811af11e7de96a88d2aac71356031142b12ada
parentc5e658c9f5b968a4081018017fa097bdfda7e175
MIPS: Detect bad _PFN_SHIFT values

2 recent commits have fixed issues where _PFN_SHIFT grew too large due
to the introduction of too many pgprot bits in our PTEs for some MIPS32
kernel configurations. Tracking down such issues can be tricky, so add a
BUILD_BUG_ON() to help.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/mm/init.c