projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c9f98d
)
IPMI: make ipmi_poweroff_handler const
author
Bhumika Goyal
<bhumirks@gmail.com>
Mon, 28 Aug 2017 18:08:15 +0000
(23:38 +0530)
committer
Corey Minyard
<cminyard@mvista.com>
Wed, 27 Sep 2017 21:03:45 +0000
(16:03 -0500)
Make this const as it is only passed to a const argument of the function
ipmi_create_user.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_poweroff.c
patch
|
blob
|
history
diff --git
a/drivers/char/ipmi/ipmi_poweroff.c
b/drivers/char/ipmi/ipmi_poweroff.c
index
9f2e3be
..
cd0f41f
100644
(file)
--- a/
drivers/char/ipmi/ipmi_poweroff.c
+++ b/
drivers/char/ipmi/ipmi_poweroff.c
@@
-133,7
+133,7
@@
static void receive_handler(struct ipmi_recv_msg *recv_msg, void *handler_data)
complete(comp);
}
-static struct ipmi_user_hndl ipmi_poweroff_handler = {
+static
const
struct ipmi_user_hndl ipmi_poweroff_handler = {
.ipmi_recv_hndl = receive_handler
};