From 33ed54bf78ebf971bc6d7e4005e8ce25b268c2bb Mon Sep 17 00:00:00 2001 From: Marc Zyngier Date: Thu, 6 Mar 2003 15:43:58 -0800 Subject: [PATCH] [PATCH] Fix fs/binfmt_elf.c build The stack reducing patch that recently went in prevent alpha from building (missing some ELF_CORE_COPY_XFPREGS ifdefs). The excluded patch fixes it. --- fs/binfmt_elf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 71a32c1fd475f..57ebb5e968076 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1194,7 +1194,9 @@ static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file) LIST_HEAD(thread_list); struct list_head *t; elf_fpregset_t *fpu = NULL; +#ifdef ELF_CORE_COPY_XFPREGS elf_fpxregset_t *xfpu = NULL; +#endif int thread_status_size = 0; /* @@ -1400,7 +1402,9 @@ cleanup: kfree(psinfo); kfree(notes); kfree(fpu); +#ifdef ELF_CORE_COPY_XFPREGS kfree(xfpu); +#endif return has_dumped; #undef NUM_NOTES } -- 2.53.0