OSDN Git Service

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)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 18 Sep 2018 08:57:26 +0000 (01:57 -0700)
commit25535b0409c31fccd9e626d6146e29d13a343261
tree2aaa9ab57683b23a0612b783a2a82269ca048708
parent42e90fc52db9cade49b85a8f4d442b624c0c61bc
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.

Change-Id: I94ed69d0cb42b16f68b08354f6f62dc22851d84a
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>
Git-commit: 75d24d968af8913f641c612930c96acc5399e427
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
arch/arm/kernel/module.c