Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Remove the macro get_personality

Remove the macro get_personality, use ->personality instead.

Cc: Christoph Hellwig <hch@infradead.org
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

WANG Cong and committed by
Linus Torvalds
ecd0fa98 6e5e8c50

+3 -7
+1 -1
arch/blackfin/kernel/signal.c
··· 212 212 213 213 /* Set up registers for signal handler */ 214 214 wrusp((unsigned long)frame); 215 - if (get_personality & FDPIC_FUNCPTRS) { 215 + if (current->personality & FDPIC_FUNCPTRS) { 216 216 struct fdpic_func_descriptor __user *funcptr = 217 217 (struct fdpic_func_descriptor *) ka->sa.sa_handler; 218 218 __get_user(regs->pc, &funcptr->text);
+2 -2
arch/frv/kernel/signal.c
··· 297 297 __frame->lr = (unsigned long) &frame->retcode; 298 298 __frame->gr8 = sig; 299 299 300 - if (get_personality & FDPIC_FUNCPTRS) { 300 + if (current->personality & FDPIC_FUNCPTRS) { 301 301 struct fdpic_func_descriptor __user *funcptr = 302 302 (struct fdpic_func_descriptor __user *) ka->sa.sa_handler; 303 303 __get_user(__frame->pc, &funcptr->text); ··· 396 396 __frame->gr8 = sig; 397 397 __frame->gr9 = (unsigned long) &frame->info; 398 398 399 - if (get_personality & FDPIC_FUNCPTRS) { 399 + if (current->personality & FDPIC_FUNCPTRS) { 400 400 struct fdpic_func_descriptor __user *funcptr = 401 401 (struct fdpic_func_descriptor __user *) ka->sa.sa_handler; 402 402 __get_user(__frame->pc, &funcptr->text);
-4
include/linux/personality.h
··· 105 105 */ 106 106 #define personality(pers) (pers & PER_MASK) 107 107 108 - /* 109 - * Personality of the currently running process. 110 - */ 111 - #define get_personality (current->personality) 112 108 113 109 /* 114 110 * Change personality of the currently running process.