From 24fbb7f7b5cb7e3e8eb2b6b6c013738f0eb0e5b9 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 15 Mar 2012 15:41:32 +0000 Subject: 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 Acked-by: Tzafrir Cohen Acked-by: Russ Meyerriecks git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10483 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dahdi/dahdi-sysfs.c b/drivers/dahdi/dahdi-sysfs.c index 95f07a7..81d6af8 100644 --- a/drivers/dahdi/dahdi-sysfs.c +++ b/drivers/dahdi/dahdi-sysfs.c @@ -642,7 +642,7 @@ cleanup: return res; } -void __exit dahdi_sysfs_exit(void) +void dahdi_sysfs_exit(void) { dahdi_sysfs_cleanup(); } -- cgit v1.2.3