]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 27 Apr 2017 18:19:02 +0000 (11:19 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 11 May 2017 13:43:40 +0000 (14:43 +0100)
commitd6fe735c2ba3f3a9ea65ae3d0ad1a6c8fa4f3c18
tree2acb02c06ce98a0093b1b6f32fae3848a5380e7b
parentf26f8723432925b892d2f08c9b4dedf738a5722a
arm64: Silence first allocation with CONFIG_ARM64_MODULE_PLTS=y

When CONFIG_ARM64_MODULE_PLTS is enabled, the first allocation using the
module space fails, because the module is too big, and then the module
allocation is attempted from vmalloc space. Silence the first allocation
failure in that case by setting __GFP_NOWARN.

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/module.c