powerpc/modules: Use WARN_ON() in stub_for_addr()
authorKamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Tue, 10 Oct 2017 14:47:32 +0000 (20:17 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Oct 2017 08:41:57 +0000 (19:41 +1100)
commit1c0437af9fca8de6e4ba179d18cf13154da25695
tree3812b396b65a7668faa78dcf7c03cc64c8f5d2ab
parent990f19ae6feefb4a6e718355719cde5f6ba18ff6
powerpc/modules: Use WARN_ON() in stub_for_addr()

Use WARN_ON(), while running out of stubs in stub_for_addr()
and abort loading of the module instead of BUG_ON().

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/module_64.c