]> err.no Git - linux-2.6/commitdiff
[XTENSA] Add missing cast in elf.h ELF_CORE_COPY_REGS()
authorMarc Gauthier <marc@gums.hq.tensilica.com>
Tue, 11 Dec 2007 23:28:07 +0000 (15:28 -0800)
committerChris Zankel <chris@zankel.net>
Thu, 14 Feb 2008 01:22:49 +0000 (17:22 -0800)
Avoids compiler warning.

Signed-off-by: Marc Gauthier <marc@tensilica.com>
include/asm-xtensa/elf.h

index 0444507b438d89d0483a9b3cc3574f347f714717..86479b86c02e3da7e665f436292dea3b7b5515d3 100644 (file)
@@ -96,7 +96,7 @@ typedef unsigned int elf_fpreg_t;
 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
 
 #define ELF_CORE_COPY_REGS(_eregs, _pregs)                             \
-       xtensa_elf_core_copy_regs (&_eregs, _pregs);
+       xtensa_elf_core_copy_regs ((xtensa_gregset_t*)&(_eregs), _pregs);
 
 extern void xtensa_elf_core_copy_regs (xtensa_gregset_t *, struct pt_regs *);