blob: 46518b1d29831bae0184daa34b2b45889563448f [file] [log] [blame]
Mike Frysingerd0025e52007-11-21 15:34:51 +08001/*
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 Wu1394f032007-05-06 14:50:22 -07008
9#define strncmp __inline_strncmp
10#include <asm/string.h>
Mike Frysingerd0025e52007-11-21 15:34:51 +080011#include <linux/module.h>
Mike Frysingeradd8a502009-05-26 05:03:52 -040012#undef strncmp
Mike Frysingerd0025e52007-11-21 15:34:51 +080013
Bryan Wu1394f032007-05-06 14:50:22 -070014int strncmp(const char *cs, const char *ct, size_t count)
15{
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080016 return __inline_strncmp(cs, ct, count);
Bryan Wu1394f032007-05-06 14:50:22 -070017}
Mike Frysingerd0025e52007-11-21 15:34:51 +080018EXPORT_SYMBOL(strncmp);