mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02: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:
committed by
Linus Torvalds
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
|
||||
|
Reference in New Issue
Block a user