Mike Frysinger | d0025e5 | 2007-11-21 15:34:51 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Provide symbol in case str func is not inlined. |
| 3 | * |
| 4 | * Copyright (c) 2006-2007 Analog Devices Inc. |
| 5 | * |
| 6 | * Licensed under the GPL-2 or later. |
| 7 | */ |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 8 | |
| 9 | #define strcpy __inline_strcpy |
| 10 | #include <asm/string.h> |
| 11 | #undef strcpy |
| 12 | |
Mike Frysinger | d0025e5 | 2007-11-21 15:34:51 +0800 | [diff] [blame] | 13 | #include <linux/module.h> |
| 14 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 15 | char *strcpy(char *dest, const char *src) |
| 16 | { |
Mike Frysinger | 1f83b8f | 2007-07-12 22:58:21 +0800 | [diff] [blame] | 17 | return __inline_strcpy(dest, src); |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 18 | } |
Mike Frysinger | d0025e5 | 2007-11-21 15:34:51 +0800 | [diff] [blame] | 19 | EXPORT_SYMBOL(strcpy); |