OSDN Git Service

mwifiex: Fix possible buffer overflows in mwifiex_ret_wmm_get_status()
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / fs / compat_binfmt_elf.c
index 4d24d17..943be5e 100644 (file)
@@ -51,6 +51,7 @@
 #define elf_prstatus   compat_elf_prstatus
 #define elf_prpsinfo   compat_elf_prpsinfo
 
+#ifdef CONFIG_ELF_CORE
 /*
  * Compat version of cputime_to_compat_timeval, perhaps this
  * should be an inline in <linux/compat.h>.
@@ -63,6 +64,7 @@ static void cputime_to_compat_timeval(const cputime_t cputime,
        value->tv_sec = tv.tv_sec;
        value->tv_usec = tv.tv_usec;
 }
+#endif
 
 #undef cputime_to_timeval
 #define cputime_to_timeval cputime_to_compat_timeval