From: Leonardo Potenza Date: Sun, 11 May 2008 17:15:34 +0000 (+0200) Subject: dlm: section mismatch warning fix X-Git-Tag: v2.6.26-rc4~121^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ad23195e4609cef73b6fcf2b4c08aaaef33204;p=linux-2.6 dlm: section mismatch warning fix Removed the section mismatch message: WARNING: fs/dlm/dlm.o(.init.text+0x132): Section mismatch in reference from the function init_module() to the function .exit.text:dlm_netlink_exit() Since dlm_netlink_exit() is called in the init_dlm() error handling, the __exit annotation has been removed. Signed-off-by: Leonardo Potenza Signed-off-by: David Teigland --- diff --git a/fs/dlm/netlink.c b/fs/dlm/netlink.c index 714593621f..18bda83cc8 100644 --- a/fs/dlm/netlink.c +++ b/fs/dlm/netlink.c @@ -95,7 +95,7 @@ int __init dlm_netlink_init(void) return rv; } -void __exit dlm_netlink_exit(void) +void dlm_netlink_exit(void) { genl_unregister_ops(&family, &dlm_nl_ops); genl_unregister_family(&family);