forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/arm/bifrost/tests/kutf/kutf_helpers_user.c
....@@ -1,7 +1,7 @@
11 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
22 /*
33 *
4
- * (C) COPYRIGHT 2017, 2020-2021 ARM Limited. All rights reserved.
4
+ * (C) COPYRIGHT 2017, 2020-2022 ARM Limited. All rights reserved.
55 *
66 * This program is free software and is provided to you under the terms of the
77 * GNU General Public License version 2 as published by the Free Software
....@@ -28,7 +28,7 @@
2828 #include <linux/slab.h>
2929 #include <linux/export.h>
3030
31
-const char *valtype_names[] = {
31
+static const char *const valtype_names[] = {
3232 "INVALID",
3333 "U64",
3434 "STR",
....@@ -368,7 +368,7 @@
368368 named_val->u.val_str = strval;
369369 break;
370370 default:
371
- pr_err("Unreachable, fix kutf_helper_receive_named_val\n");
371
+ pr_err("Unreachable, fix %s\n", __func__);
372372 /* Coding error, report as though 'run' file failed */
373373 return -EINVAL;
374374 }