]> 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)
commit6ceb466f228606cb493cd1d4a0064e1eeb90773d
tree69811af11e7de96a88d2aac71356031142b12ada
parent8c64e2aa47a0b1d0cf5c7bb8a4567ec778a29fca
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