blob: 2aaae78a68e0ae3ef345442b2467d30dd50c82ab [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>
11#undef strncmp
12
Mike Frysingerd0025e52007-11-21 15:34:51 +080013#include <linux/module.h>
14
Bryan Wu1394f032007-05-06 14:50:22 -070015int strncmp(const char *cs, const char *ct, size_t count)
16{
Mike Frysinger1f83b8f2007-07-12 22:58:21 +080017 return __inline_strncmp(cs, ct, count);
Bryan Wu1394f032007-05-06 14:50:22 -070018}
Mike Frysingerd0025e52007-11-21 15:34:51 +080019EXPORT_SYMBOL(strncmp);