hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/arm64/lib/strchr.S
....@@ -1,20 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Based on arch/arm/lib/strchr.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 first occurrence of 'c' or 0
3120 */
32
-WEAK(strchr)
21
+SYM_FUNC_START_WEAK(strchr)
3322 and w1, w1, #0xff
3423 1: ldrb w2, [x0], #1
3524 cmp w2, w1
....@@ -39,4 +28,5 @@
3928 cmp w2, w1
4029 csel x0, x0, xzr, eq
4130 ret
42
-ENDPROC(strchr)
31
+SYM_FUNC_END(strchr)
32
+EXPORT_SYMBOL_NOKASAN(strchr)