]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Silence first allocation with CONFIG_ARM_MODULE_PLTS=y
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 27 Apr 2017 18:19:01 +0000 (11:19 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 11 May 2017 13:43:31 +0000 (14:43 +0100)
commite692b35b2ad85edd1563e4870b897d5bf4a848f0
tree7ee4ac5253fbc529eb11b7a233d94e69f6bf417a
parent18b19a0f03e94d9ddcfa1a97788c5a0cfd2dc443
ARM: Silence first allocation with CONFIG_ARM_MODULE_PLTS=y

When CONFIG_ARM_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.

Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/kernel/module.c