diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index e3f7c5e2b..550df4db9 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -226,8 +226,7 @@ asmlinkage long sys_reboot(int magic1, int magic2, int cmd, void * arg) default: unlock_kernel(); return -EINVAL; - break; - }; + } unlock_kernel(); return 0; } @@ -1049,6 +1048,22 @@ asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, } current->dumpable = arg2; break; + case PR_SET_UNALIGN: +#ifdef SET_UNALIGN_CTL + error = SET_UNALIGN_CTL(current, arg2); +#else + error = -EINVAL; +#endif + break; + + case PR_GET_UNALIGN: +#ifdef GET_UNALIGN_CTL + error = GET_UNALIGN_CTL(current, arg2); +#else + error = -EINVAL; +#endif + break; + default: error = -EINVAL; break; |