Compilation of the SCST's sysfs code triggers a section mismatch because the

function scst_sysfs_cleanup() is declared as an exit-only function while it is
also called from init_scst(). The patch below fixes this section mismatch.

This patch has been tested by verifying that the following command does not
report any section mismatches:

make CONFIG_DEBUG_SECTION_MISMATCH=y scst iscsi-scst srpt

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1420 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-12-28 19:55:45 +00:00
parent d1e5f40622
commit bab121a720

View File

@@ -2036,7 +2036,7 @@ sysfs_root_add_error:
goto out;
}
void __exit scst_sysfs_cleanup(void)
void scst_sysfs_cleanup(void)
{
TRACE_ENTRY();