From bab121a72000c3cf6937daa8cf7dac077c305999 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 28 Dec 2009 19:55:45 +0000 Subject: [PATCH] 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 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1420 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_sysfs.c b/scst/src/scst_sysfs.c index f06af12de..03f1468a0 100644 --- a/scst/src/scst_sysfs.c +++ b/scst/src/scst_sysfs.c @@ -2036,7 +2036,7 @@ sysfs_root_add_error: goto out; } -void __exit scst_sysfs_cleanup(void) +void scst_sysfs_cleanup(void) { TRACE_ENTRY();