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 strncmp __inline_strncmp |
| 10 | #include <asm/string.h> |
Mike Frysinger | d0025e5 | 2007-11-21 15:34:51 +0800 | [diff] [blame] | 11 | #include <linux/module.h> |
Mike Frysinger | add8a50 | 2009-05-26 05:03:52 -0400 | [diff] [blame] | 12 | #undef strncmp |
Mike Frysinger | d0025e5 | 2007-11-21 15:34:51 +0800 | [diff] [blame] | 13 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 14 | int strncmp(const char *cs, const char *ct, size_t count) |
| 15 | { |
Mike Frysinger | 1f83b8f | 2007-07-12 22:58:21 +0800 | [diff] [blame] | 16 | return __inline_strncmp(cs, ct, count); |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 17 | } |
Mike Frysinger | d0025e5 | 2007-11-21 15:34:51 +0800 | [diff] [blame] | 18 | EXPORT_SYMBOL(strncmp); |