drivers: power: report battery voltage in AOSP compatible format
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / ipc / syscall.c
index 0d1e32ce048eeb0ab0d8341519aedd7ead76db62..52429489cde0070ab9398648ca326592e824a2a7 100644 (file)
@@ -33,12 +33,12 @@ SYSCALL_DEFINE6(ipc, unsigned int, call, int, first, unsigned long, second,
        case SEMGET:
                return sys_semget(first, second, third);
        case SEMCTL: {
-               union semun fourth;
+               unsigned long arg;
                if (!ptr)
                        return -EINVAL;
-               if (get_user(fourth.__pad, (void __user * __user *) ptr))
+               if (get_user(arg, (unsigned long __user *) ptr))
                        return -EFAULT;
-               return sys_semctl(first, second, third, fourth);
+               return sys_semctl(first, second, third, arg);
        }
 
        case MSGSND: