From: Krzysztof Kozlowski Date: Mon, 12 Jun 2017 15:19:31 +0000 (+0200) Subject: PM: Constify returned PM event name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=952856db9019f914227f5fbe24f7810e20fec0fd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git PM: Constify returned PM event name The pm_verb() returns a pointer to string from .rodata so it should be marked as const. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 9faee1c893e5..924a5ba7aa27 100644 --- 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 const char *pm_verb(int event) { switch (event) { case PM_EVENT_SUSPEND: