forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/arm64/lib/strrchr.S
....@@ -1,20 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Based on arch/arm/lib/strrchr.S
34 *
45 * Copyright (C) 1995-2000 Russell King
56 * Copyright (C) 2013 ARM Ltd.
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
187 */
198
209 #include <linux/linkage.h>
....@@ -29,7 +18,7 @@
2918 * Returns:
3019 * x0 - address of last occurrence of 'c' or 0
3120 */
32
-WEAK(strrchr)
21
+SYM_FUNC_START_WEAK_PI(strrchr)
3322 mov x3, #0
3423 and w1, w1, #0xff
3524 1: ldrb w2, [x0], #1
....@@ -40,4 +29,5 @@
4029 b 1b
4130 2: mov x0, x3
4231 ret
43
-ENDPIPROC(strrchr)
32
+SYM_FUNC_END_PI(strrchr)
33
+EXPORT_SYMBOL_NOKASAN(strrchr)