diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index dcf0a8ba4e..7be11b987e 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -1415,7 +1415,11 @@ copyin_iparam(caddr_t cmarg, struct iparam *dst) if (current->thread.flags & THREAD_IA32) #elif defined(AFS_PPC64_LINUX26_ENV) +#if defined(STRUCT_TASK_STRUCT_HAS_THREAD_INFO) if (current->thread_info->flags & _TIF_32BIT) +#else + if (task_thread_info(current)->flags & _TIF_32BIT) +#endif #elif defined(AFS_PPC64_LINUX20_ENV) if (current->thread.flags & PPC_FLAG_32BIT) diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index dedf693de6..e1d9123c97 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -284,7 +284,11 @@ copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst) if (current->thread.flags & THREAD_IA32) #elif defined(AFS_PPC64_LINUX26_ENV) - if (current->thread_info->flags & _TIF_32BIT) +#if defined(STRUCT_TASK_STRUCT_HAS_THREAD_INFO) + if (current->thread_info->flags & _TIF_32BIT) +#else + if (task_thread_info(current)->flags & _TIF_32BIT) +#endif #elif defined(AFS_PPC64_LINUX20_ENV) if (current->thread.flags & PPC_FLAG_32BIT)