aboutsummaryrefslogtreecommitdiffstats
path: root/fs/compat_binfmt_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/compat_binfmt_elf.c')
-rw-r--r--fs/compat_binfmt_elf.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/fs/compat_binfmt_elf.c b/fs/compat_binfmt_elf.c
index 4d24d17bcfc1..504b3c3539dc 100644
--- a/fs/compat_binfmt_elf.c
+++ b/fs/compat_binfmt_elf.c
@@ -51,22 +51,8 @@
51#define elf_prstatus compat_elf_prstatus 51#define elf_prstatus compat_elf_prstatus
52#define elf_prpsinfo compat_elf_prpsinfo 52#define elf_prpsinfo compat_elf_prpsinfo
53 53
54/* 54#undef ns_to_timeval
55 * Compat version of cputime_to_compat_timeval, perhaps this 55#define ns_to_timeval ns_to_compat_timeval
56 * should be an inline in <linux/compat.h>.
57 */
58static void cputime_to_compat_timeval(const cputime_t cputime,
59 struct compat_timeval *value)
60{
61 struct timeval tv;
62 cputime_to_timeval(cputime, &tv);
63 value->tv_sec = tv.tv_sec;
64 value->tv_usec = tv.tv_usec;
65}
66
67#undef cputime_to_timeval
68#define cputime_to_timeval cputime_to_compat_timeval
69
70 56
71/* 57/*
72 * To use this file, asm/elf.h must define compat_elf_check_arch. 58 * To use this file, asm/elf.h must define compat_elf_check_arch.