Commit abfe05a2 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

cobalt/x86: ipipe: Drop unused strncpy_from_user_nocheck


Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent d8be79d1
......@@ -29,10 +29,6 @@ static inline __attribute_const__ unsigned long ffnz(unsigned long ul)
#define XNARCH_HOST_TICK_IRQ __ipipe_hrtimer_irq
long strncpy_from_user_nocheck(char *dst,
const char __user *src,
long count);
/* Read this last to enable default settings. */
#include <asm-generic/xenomai/machine.h>
......
......@@ -23,25 +23,6 @@
#include <asm/xenomai/smi.h>
#include <asm/xenomai/c1e.h>
long strncpy_from_user_nocheck(char *dst, const char __user *src, long count)
{
int ret;
char c;
long n;
for (n = 0; n < count; n++, src++, dst++) {
ret = __xn_get_user(c, src);
if (ret)
return -EFAULT;
*dst = c;
if (c == 0)
break;
}
return n;
}
EXPORT_SYMBOL_GPL(strncpy_from_user_nocheck);
static int mach_x86_init(void)
{
int ret;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment