LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* char/ipmi: cleanup_one_si section mismatch
@ 2011-02-14 15:03 Sergey Senozhatsky
  2011-02-14 23:29 ` Corey Minyard
  0 siblings, 1 reply; 4+ messages in thread
From: Sergey Senozhatsky @ 2011-02-14 15:03 UTC (permalink / raw)
  To: Grant Likely
  Cc: Corey Minyard, openipmi-developer, linux-kernel, Peter Huewe,
	Randy Dunlap

Hello,

commit d2478521afc20227658a10a8c5c2bf1a2aa615b3
Author: Corey Minyard <minyard@acm.org>
Date:   Thu Feb 10 16:08:38 2011 -0600

    char/ipmi: fix OOPS caused by pnp_unregister_driver on unregistered driver


Introduced section mismatch by calling __exit cleanup_ipmi_si 
from __devinit init_ipmi_si. Should we remove __exit annotation then?


---

 drivers/char/ipmi/ipmi_si_intf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index 7855f9f..94cd2ce 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -3532,7 +3532,7 @@ static void cleanup_one_si(struct smi_info *to_clean)
 	kfree(to_clean);
 }
 
-static void __exit cleanup_ipmi_si(void)
+static void cleanup_ipmi_si(void)
 {
 	struct smi_info *e, *tmp_e;
 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-15 16:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 15:03 char/ipmi: cleanup_one_si section mismatch Sergey Senozhatsky
2011-02-14 23:29 ` Corey Minyard
2011-02-15  9:52   ` [PATCH] char/ipmi: fix " Sergey Senozhatsky
2011-03-15 16:37     ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).