Thomas Gleixner | 40b0b3f | 2019-06-03 07:44:46 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Vivek Goyal | 8fc5b4d | 2014-08-08 14:26:02 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Simple string functions. |
| 4 | * |
| 5 | * Copyright (C) 2014 Red Hat Inc. |
| 6 | * |
| 7 | * Author: |
| 8 | * Vivek Goyal <vgoyal@redhat.com> |
Vivek Goyal | 8fc5b4d | 2014-08-08 14:26:02 -0700 | [diff] [blame] | 9 | */ |
| 10 | |
Philipp Rudo | df6f280 | 2018-04-13 15:36:46 -0700 | [diff] [blame] | 11 | #include <linux/types.h> |
| 12 | |
Vivek Goyal | 8fc5b4d | 2014-08-08 14:26:02 -0700 | [diff] [blame] | 13 | #include "../boot/string.c" |
Philipp Rudo | df6f280 | 2018-04-13 15:36:46 -0700 | [diff] [blame] | 14 | |
| 15 | void *memcpy(void *dst, const void *src, size_t len) |
| 16 | { |
| 17 | return __builtin_memcpy(dst, src, len); |
| 18 | } |
| 19 | |
| 20 | void *memset(void *dst, int c, size_t len) |
| 21 | { |
| 22 | return __builtin_memset(dst, c, len); |
| 23 | } |