Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29507663 authored by Chris Metcalf's avatar Chris Metcalf
Browse files

arch/tile: minor whitespace/naming changes for string support files



Our internal process shares memcpy, memset, etc., with libc, and
we did some minor tweaking as part of moving from uclibc to glibc,
which is now reflected in the kernel versions of these files.

There are no semantic changes in this commit, just whitespace
(memcpy_32.S now properly uses tabs), naming (memmove.c instead
of memmove_32.c, since TILE-Gx shares the file with TILEPro),
and a couple of other minor tweaks.

Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent 233325b9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@
#

lib-y = cacheflush.o checksum.o cpumask.o delay.o \
	mb_incoherent.o uaccess.o \
	memcpy_$(BITS).o memchr_$(BITS).o memmove_$(BITS).o memset_$(BITS).o \
	mb_incoherent.o uaccess.o memmove.o \
	memcpy_$(BITS).o memchr_$(BITS).o memset_$(BITS).o \
	strchr_$(BITS).o strlen_$(BITS).o

ifeq ($(CONFIG_TILEGX),y)
+104 −102
Original line number Diff line number Diff line
@@ -10,14 +10,16 @@
 *   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
 *   NON INFRINGEMENT.  See the GNU General Public License for
 *   more details.
 *
 * This file shares the implementation of the userspace memcpy and
 * the kernel's memcpy, copy_to_user and copy_from_user.
 */

#include <arch/chip.h>


/*
 * This file shares the implementation of the userspace memcpy and
 * the kernel's memcpy, copy_to_user and copy_from_user.
 */

#include <linux/linkage.h>

/* On TILE64, we wrap these functions via arch/tile/lib/memcpy_tile64.c */
+0 −0

File moved.

+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#include <linux/string.h>
#include <linux/module.h>

#undef memset

void *memset(void *s, int c, size_t n)
{
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@
#include <linux/string.h>
#include <linux/module.h>

#undef strlen

size_t strlen(const char *s)
{
	/* Get an aligned pointer. */