Commit fff5cd5e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: binfmt_elf warning fix

fs/binfmt_elf.c:171: warning: use of cast expressions as lvalues is deprecated
parent 2fa8b7c4
...@@ -123,7 +123,7 @@ static void padzero(unsigned long elf_bss) ...@@ -123,7 +123,7 @@ static void padzero(unsigned long elf_bss)
#define STACK_ADD(sp, items) ((elf_addr_t *)(sp) - (items)) #define STACK_ADD(sp, items) ((elf_addr_t *)(sp) - (items))
#define STACK_ROUND(sp, items) \ #define STACK_ROUND(sp, items) \
(((unsigned long) (sp - items)) &~ 15UL) (((unsigned long) (sp - items)) &~ 15UL)
#define STACK_ALLOC(sp, len) sp -= len #define STACK_ALLOC(sp, len) ({ sp -= len ; sp; })
#endif #endif
static void static void
...@@ -168,7 +168,7 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr * exec, ...@@ -168,7 +168,7 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr * exec,
if (smp_num_siblings > 1) if (smp_num_siblings > 1)
STACK_ALLOC(p, ((current->pid % 64) << 7)); STACK_ALLOC(p, ((current->pid % 64) << 7));
#endif #endif
u_platform = (elf_addr_t *) STACK_ALLOC(p, len); u_platform = (elf_addr_t *)STACK_ALLOC(p, len);
__copy_to_user(u_platform, k_platform, len); __copy_to_user(u_platform, k_platform, len);
} }
......
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