Fix common misspellings
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / powerpc / include / asm / compat.h
index a11d4eac4f97f369f48866a7475696879b8be5d3..91010e8f8479a13fbdf18860d8108d4ac4345379 100644 (file)
@@ -140,10 +140,10 @@ static inline void __user *arch_compat_alloc_user_space(long len)
        unsigned long usp = regs->gpr[1];
 
        /*
-        * We cant access below the stack pointer in the 32bit ABI and
+        * We can't access below the stack pointer in the 32bit ABI and
         * can access 288 bytes in the 64bit ABI
         */
-       if (!(test_thread_flag(TIF_32BIT)))
+       if (!is_32bit_task())
                usp -= 288;
 
        return (void __user *) (usp - len);
@@ -213,7 +213,7 @@ struct compat_shmid64_ds {
 
 static inline int is_compat_task(void)
 {
-       return test_thread_flag(TIF_32BIT);
+       return is_32bit_task();
 }
 
 #endif /* __KERNEL__ */