1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Based on arch/arm/lib/strrchr.S
5 * Copyright (C) 1995-2000 Russell King
6 * Copyright (C) 2013 ARM Ltd.
9 #include <linux/linkage.h>
10 #include <asm/assembler.h>
13 * Find the last occurrence of a character in a string.
19 * x0 - address of last occurrence of 'c' or 0
21 SYM_FUNC_START(__pi_strrchr)
32 SYM_FUNC_END(__pi_strrchr)
33 SYM_FUNC_ALIAS_WEAK(strrchr, __pi_strrchr)
34 EXPORT_SYMBOL_NOKASAN(strrchr)