string.h (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | string.h (8ad8b72721d0f07fa02dbe71f901743f9c71c8e6) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2013 Regents of the University of California 4 */ 5 6#ifndef _ASM_RISCV_STRING_H 7#define _ASM_RISCV_STRING_H 8 9#include <linux/types.h> 10#include <linux/linkage.h> 11 12#define __HAVE_ARCH_MEMSET 13extern asmlinkage void *memset(void *, int, size_t); | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2013 Regents of the University of California 4 */ 5 6#ifndef _ASM_RISCV_STRING_H 7#define _ASM_RISCV_STRING_H 8 9#include <linux/types.h> 10#include <linux/linkage.h> 11 12#define __HAVE_ARCH_MEMSET 13extern asmlinkage void *memset(void *, int, size_t); |
14extern asmlinkage void *__memset(void *, int, size_t); |
|
14 15#define __HAVE_ARCH_MEMCPY 16extern asmlinkage void *memcpy(void *, const void *, size_t); | 15 16#define __HAVE_ARCH_MEMCPY 17extern asmlinkage void *memcpy(void *, const void *, size_t); |
18extern asmlinkage void *__memcpy(void *, const void *, size_t); |
|
17 | 19 |
20/* For those files which don't want to check by kasan. */ 21#if defined(CONFIG_KASAN) && !defined(__SANITIZE_ADDRESS__) 22 23#define memcpy(dst, src, len) __memcpy(dst, src, len) 24#define memset(s, c, n) __memset(s, c, n) 25 26#endif |
|
18#endif /* _ASM_RISCV_STRING_H */ | 27#endif /* _ASM_RISCV_STRING_H */ |