]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix loading of modules with unresolved weak symbols
authorGabor Juhos <juhosg@openwrt.org>
Mon, 13 Jul 2009 09:14:24 +0000 (11:14 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 3 Aug 2009 16:52:42 +0000 (17:52 +0100)
commit2d9e9ddb71ddd0ddba07aeec11e9d5168ba64974
tree8401cb60cc59c1bc77fa46fadf42d164219f9aba
parent1be0816c425faec9d3b0e61ac870d0e16404f770
MIPS: Fix loading of modules with unresolved weak symbols

Loading of modules with unresolved weak symbols fails on MIPS
since '4a5a5251e78d7dcd77fe8231ca161bfa638e5450'.

Modules: handle symbols that have a zero value

The module subsystem cannot handle symbols that are zero.  If symbols
are present that have a zero value then the module resolver prints out a
message that these symbols are unresolved.

We have to use IS_ERR_VALUE() to check that a symbol has been resolved
or not.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/module.c