• S
    modules: Fix up build when CONFIG_MODULE_UNLOAD=n. · 19e4529e
    Stephen Rothwell 提交于
    Commit 3d43321b ("modules: sysctl to
    block module loading") introduces a modules_disabled variable that is
    only defined if CONFIG_MODULE_UNLOAD is enabled, despite being used in
    other places. This moves it up and fixes up the build.
    
      CC      kernel/module.o
    kernel/module.c: In function 'sys_init_module':
    kernel/module.c:2401: error: 'modules_disabled' undeclared (first use in this function)
    kernel/module.c:2401: error: (Each undeclared identifier is reported only once
    kernel/module.c:2401: error: for each function it appears in.)
    make[1]: *** [kernel/module.o] Error 1
    make: *** [kernel/module.o] Error 2
    Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
    Signed-off-by: NJames Morris <jmorris@namei.org>
    19e4529e
module.c 72.8 KB