[PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITY
The SET_PERSONALITY macro is always called with a second argument of 0. Remove the ibcs argument and the various tests to set the PER_SVR4 personality. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
@@ -88,6 +88,6 @@ typedef unsigned long elf_fpregset_t;
|
||||
|
||||
#define ELF_PLATFORM (NULL)
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
|
||||
#define SET_PERSONALITY(ex) set_personality(PER_LINUX)
|
||||
|
||||
#endif
|
||||
|
||||
@@ -137,6 +137,6 @@ do { \
|
||||
|
||||
#define ELF_PLATFORM (NULL)
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
|
||||
#define SET_PERSONALITY(ex) set_personality(PER_LINUX)
|
||||
|
||||
#endif
|
||||
|
||||
@@ -129,6 +129,6 @@ typedef elf_fpreg_t elf_fpregset_t;
|
||||
intent than poking at uname or /proc/cpuinfo. */
|
||||
#define ELF_PLATFORM (NULL)
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX)
|
||||
#define SET_PERSONALITY(ex) set_personality(PER_LINUX)
|
||||
|
||||
#endif /* _ASM_M32R__ELF_H */
|
||||
|
||||
@@ -114,6 +114,6 @@ typedef struct user_m68kfp_struct elf_fpregset_t;
|
||||
|
||||
#define ELF_PLATFORM (NULL)
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
|
||||
#define SET_PERSONALITY(ex) set_personality(PER_LINUX)
|
||||
|
||||
#endif
|
||||
|
||||
@@ -141,7 +141,7 @@ do { \
|
||||
#define ELF_PLATFORM (NULL)
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX)
|
||||
#define SET_PERSONALITY(ex) set_personality(PER_LINUX)
|
||||
#endif
|
||||
|
||||
#endif /* _ASM_ELF_H */
|
||||
|
||||
@@ -236,7 +236,7 @@ typedef unsigned long elf_greg_t;
|
||||
|
||||
#define ELF_PLATFORM ("PARISC\0")
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) \
|
||||
#define SET_PERSONALITY(ex) \
|
||||
current->personality = PER_LINUX; \
|
||||
current->thread.map_base = DEFAULT_MAP_BASE; \
|
||||
current->thread.task_size = DEFAULT_TASK_SIZE \
|
||||
|
||||
@@ -86,7 +86,7 @@ extern long elf_aux_hwcap;
|
||||
extern char * elf_aux_platform;
|
||||
#define ELF_PLATFORM (elf_aux_platform)
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) do { } while (0)
|
||||
#define SET_PERSONALITY(ex) do { } while (0)
|
||||
|
||||
extern unsigned long vsyscall_ehdr;
|
||||
extern unsigned long vsyscall_end;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
extern long elf_aux_hwcap;
|
||||
#define ELF_HWCAP (elf_aux_hwcap)
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) do ; while(0)
|
||||
#define SET_PERSONALITY(ex) do ; while(0)
|
||||
|
||||
#define ELF_EXEC_PAGESIZE 4096
|
||||
|
||||
|
||||
@@ -114,6 +114,6 @@ extern long elf_aux_hwcap;
|
||||
|
||||
#define ELF_PLATFORM "x86_64"
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) do ; while(0)
|
||||
#define SET_PERSONALITY(ex) do ; while(0)
|
||||
|
||||
#endif
|
||||
|
||||
@@ -186,7 +186,7 @@ do { \
|
||||
set_fs(USER_DS); \
|
||||
} while (0)
|
||||
|
||||
#define COMPAT_SET_PERSONALITY(ex, ibcs2) \
|
||||
#define COMPAT_SET_PERSONALITY(ex) \
|
||||
do { \
|
||||
if (test_thread_flag(TIF_IA32)) \
|
||||
clear_thread_flag(TIF_ABI_PENDING); \
|
||||
@@ -267,7 +267,7 @@ extern int force_personality32;
|
||||
For the moment, we have only optimizations for the Intel generations,
|
||||
but that could change... */
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) set_personality_64bit()
|
||||
#define SET_PERSONALITY(ex) set_personality_64bit()
|
||||
|
||||
/*
|
||||
* An executable for which elf_read_implies_exec() returns TRUE will
|
||||
|
||||
@@ -189,7 +189,7 @@ typedef struct {
|
||||
#endif
|
||||
} elf_xtregs_t;
|
||||
|
||||
#define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT)
|
||||
#define SET_PERSONALITY(ex) set_personality(PER_LINUX_32BIT)
|
||||
|
||||
struct task_struct;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user