| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Kernel module for testing utf-8 support. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 43 | 35 | #define test_f(cond, fmt, ...) _test(cond, __func__, __LINE__, fmt, ##__VA_ARGS__) |
|---|
| 44 | 36 | #define test(cond) _test(cond, __func__, __LINE__, "") |
|---|
| 45 | 37 | |
|---|
| 46 | | -const static struct { |
|---|
| 38 | +static const struct { |
|---|
| 47 | 39 | /* UTF-8 strings in this vector _must_ be NULL-terminated. */ |
|---|
| 48 | 40 | unsigned char str[10]; |
|---|
| 49 | 41 | unsigned char dec[10]; |
|---|
| .. | .. |
|---|
| 97 | 89 | |
|---|
| 98 | 90 | }; |
|---|
| 99 | 91 | |
|---|
| 100 | | -const static struct { |
|---|
| 92 | +static const struct { |
|---|
| 101 | 93 | /* UTF-8 strings in this vector _must_ be NULL-terminated. */ |
|---|
| 102 | 94 | unsigned char str[30]; |
|---|
| 103 | 95 | unsigned char ncf[30]; |
|---|