projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea0212f
)
PM: Constify returned PM event name
author
Krzysztof Kozlowski
<krzk@kernel.org>
Mon, 12 Jun 2017 15:19:31 +0000
(17:19 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Tue, 27 Jun 2017 22:27:14 +0000
(
00:27
+0200)
The pm_verb() returns a pointer to string from .rodata so it should be
marked as const.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/main.c
patch
|
blob
|
history
diff --git
a/drivers/base/power/main.c
b/drivers/base/power/main.c
index
9faee1c
..
924a5ba
100644
(file)
--- a/
drivers/base/power/main.c
+++ b/
drivers/base/power/main.c
@@
-62,7
+62,7
@@
static pm_message_t pm_transition;
static int async_error;
-static char *pm_verb(int event)
+static c
onst c
har *pm_verb(int event)
{
switch (event) {
case PM_EVENT_SUSPEND: