mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
ELF: simplify STACK_ALLOC macro
"A -= B; A" is equivalent to "A -= B". Link: https://lkml.kernel.org/r/YVmcP256fRMqCwgK@localhost.localdomain Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
5f501d5556
commit
a43e5e3a02
@ -156,7 +156,7 @@ static int padzero(unsigned long elf_bss)
|
||||
#define STACK_ADD(sp, items) ((elf_addr_t __user *)(sp) - (items))
|
||||
#define STACK_ROUND(sp, items) \
|
||||
(((unsigned long) (sp - items)) &~ 15UL)
|
||||
#define STACK_ALLOC(sp, len) ({ sp -= len ; sp; })
|
||||
#define STACK_ALLOC(sp, len) (sp -= len)
|
||||
#endif
|
||||
|
||||
#ifndef ELF_BASE_PLATFORM
|
||||
|
Loading…
Reference in New Issue
Block a user