[svn-commits] sruffell: linux/trunk r10483 - /linux/trunk/drivers/dahdi/dahdi-sysfs.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Mar 15 10:41:36 CDT 2012
Author: sruffell
Date: Thu Mar 15 10:41:32 2012
New Revision: 10483
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10483
Log:
dahdi: Remove __exit annotation from dahdi_sysfs_exit().
This removes the following warning:
Section mismatch in reference from the function init_module() to the function .exit.text:dahdi_sysfs_exit()
The function __init init_module() references a function __exit
dahdi_sysfs_exit(). This is often seen when error handling in the init
function uses functionality in the exit path. The fix is often to remove the
__exit annotation of dahdi_sysfs_exit() so it may be used outside an exit
section.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Acked-by: Russ Meyerriecks <rmeyerriecks at digium.com>
Modified:
linux/trunk/drivers/dahdi/dahdi-sysfs.c
Modified: linux/trunk/drivers/dahdi/dahdi-sysfs.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-sysfs.c?view=diff&rev=10483&r1=10482&r2=10483
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-sysfs.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-sysfs.c Thu Mar 15 10:41:32 2012
@@ -642,7 +642,7 @@
return res;
}
-void __exit dahdi_sysfs_exit(void)
+void dahdi_sysfs_exit(void)
{
dahdi_sysfs_cleanup();
}
More information about the svn-commits
mailing list