diff options
Diffstat (limited to 'drivers/char/ipmi/ipmi_msghandler.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index 9f2f8fdec69a..83ed6ae466a5 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c | |||
@@ -57,8 +57,7 @@ static int ipmi_init_msghandler(void); | |||
57 | static int initialized = 0; | 57 | static int initialized = 0; |
58 | 58 | ||
59 | #ifdef CONFIG_PROC_FS | 59 | #ifdef CONFIG_PROC_FS |
60 | struct proc_dir_entry *proc_ipmi_root = NULL; | 60 | static struct proc_dir_entry *proc_ipmi_root = NULL; |
61 | EXPORT_SYMBOL(proc_ipmi_root); | ||
62 | #endif /* CONFIG_PROC_FS */ | 61 | #endif /* CONFIG_PROC_FS */ |
63 | 62 | ||
64 | #define MAX_EVENTS_IN_QUEUE 25 | 63 | #define MAX_EVENTS_IN_QUEUE 25 |
@@ -936,11 +935,8 @@ int ipmi_set_gets_events(ipmi_user_t user, int val) | |||
936 | 935 | ||
937 | if (val) { | 936 | if (val) { |
938 | /* Deliver any queued events. */ | 937 | /* Deliver any queued events. */ |
939 | list_for_each_entry_safe(msg, msg2, &intf->waiting_events, | 938 | list_for_each_entry_safe(msg, msg2, &intf->waiting_events, link) |
940 | link) { | 939 | list_move_tail(&msg->link, &msgs); |
941 | list_del(&msg->link); | ||
942 | list_add_tail(&msg->link, &msgs); | ||
943 | } | ||
944 | intf->waiting_events_count = 0; | 940 | intf->waiting_events_count = 0; |
945 | } | 941 | } |
946 | 942 | ||
@@ -3677,7 +3673,7 @@ static void send_panic_events(char *str) | |||
3677 | } | 3673 | } |
3678 | #endif /* CONFIG_IPMI_PANIC_EVENT */ | 3674 | #endif /* CONFIG_IPMI_PANIC_EVENT */ |
3679 | 3675 | ||
3680 | static int has_paniced = 0; | 3676 | static int has_panicked = 0; |
3681 | 3677 | ||
3682 | static int panic_event(struct notifier_block *this, | 3678 | static int panic_event(struct notifier_block *this, |
3683 | unsigned long event, | 3679 | unsigned long event, |
@@ -3686,9 +3682,9 @@ static int panic_event(struct notifier_block *this, | |||
3686 | int i; | 3682 | int i; |
3687 | ipmi_smi_t intf; | 3683 | ipmi_smi_t intf; |
3688 | 3684 | ||
3689 | if (has_paniced) | 3685 | if (has_panicked) |
3690 | return NOTIFY_DONE; | 3686 | return NOTIFY_DONE; |
3691 | has_paniced = 1; | 3687 | has_panicked = 1; |
3692 | 3688 | ||
3693 | /* For every registered interface, set it to run to completion. */ | 3689 | /* For every registered interface, set it to run to completion. */ |
3694 | for (i = 0; i < MAX_IPMI_INTERFACES; i++) { | 3690 | for (i = 0; i < MAX_IPMI_INTERFACES; i++) { |