Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit e7cb083

Browse files
committed
xtensa: drop bcopy implementation
bcopy is not exported and there's no in-tree users of this function. Drop it. Signed-off-by: Max Filippov <[email protected]>
1 parent f8b09d4 commit e7cb083

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

arch/xtensa/include/asm/string.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ extern void *__memcpy(void *__to, __const__ void *__from, size_t __n);
118118
extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
119119
extern void *__memmove(void *__dest, __const__ void *__src, size_t __n);
120120

121-
/* Don't build bcopy at all ... */
122-
#define __HAVE_ARCH_BCOPY
123-
124121
#if defined(CONFIG_KASAN) && !defined(__SANITIZE_ADDRESS__)
125122

126123
/*

arch/xtensa/lib/memcopy.S

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -274,21 +274,6 @@ WEAK(memcpy)
274274

275275
ENDPROC(__memcpy)
276276

277-
/*
278-
* void bcopy(const void *src, void *dest, size_t n);
279-
*/
280-
281-
ENTRY(bcopy)
282-
283-
abi_entry_default
284-
# a2=src, a3=dst, a4=len
285-
mov a5, a3
286-
mov a3, a2
287-
mov a2, a5
288-
j .Lmovecommon # go to common code for memmove+bcopy
289-
290-
ENDPROC(bcopy)
291-
292277
/*
293278
* void *memmove(void *dst, const void *src, size_t len);
294279
*

0 commit comments

Comments
 (0)