hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/fs/unicode/utf8-selftest.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Kernel module for testing utf-8 support.
34 *
45 * Copyright 2017 Collabora Ltd.
5
- *
6
- * This software is licensed under the terms of the GNU General Public
7
- * License version 2, as published by the Free Software Foundation, and
8
- * may be copied, distributed, and modified under those terms.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
146 */
157
168 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -43,7 +35,7 @@
4335 #define test_f(cond, fmt, ...) _test(cond, __func__, __LINE__, fmt, ##__VA_ARGS__)
4436 #define test(cond) _test(cond, __func__, __LINE__, "")
4537
46
-const static struct {
38
+static const struct {
4739 /* UTF-8 strings in this vector _must_ be NULL-terminated. */
4840 unsigned char str[10];
4941 unsigned char dec[10];
....@@ -97,7 +89,7 @@
9789
9890 };
9991
100
-const static struct {
92
+static const struct {
10193 /* UTF-8 strings in this vector _must_ be NULL-terminated. */
10294 unsigned char str[30];
10395 unsigned char ncf[30];