| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2002 Paul Mackerras, IBM Corp. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation; either version |
|---|
| 7 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 8 | 4 | */ |
|---|
| 9 | 5 | #include <asm/processor.h> |
|---|
| 10 | 6 | #include <asm/ppc_asm.h> |
|---|
| 11 | 7 | #include <asm/export.h> |
|---|
| 12 | 8 | #include <asm/asm-compat.h> |
|---|
| 13 | 9 | #include <asm/feature-fixups.h> |
|---|
| 10 | +#include <asm/kasan.h> |
|---|
| 14 | 11 | |
|---|
| 15 | 12 | #ifndef SELFTEST_CASE |
|---|
| 16 | 13 | /* For big-endian, 0 == most CPUs, 1 == POWER6, 2 == Cell */ |
|---|
| .. | .. |
|---|
| 18 | 15 | #endif |
|---|
| 19 | 16 | |
|---|
| 20 | 17 | .align 7 |
|---|
| 21 | | -_GLOBAL_TOC(memcpy) |
|---|
| 18 | +_GLOBAL_TOC_KASAN(memcpy) |
|---|
| 22 | 19 | BEGIN_FTR_SECTION |
|---|
| 23 | 20 | #ifdef __LITTLE_ENDIAN__ |
|---|
| 24 | 21 | cmpdi cr7,r5,0 |
|---|
| .. | .. |
|---|
| 230 | 227 | blr |
|---|
| 231 | 228 | #endif |
|---|
| 232 | 229 | EXPORT_SYMBOL(memcpy) |
|---|
| 230 | +EXPORT_SYMBOL_KASAN(memcpy) |
|---|