Linux: Refactor test for 32bit compat 00/14500/5
authorCheyenne Wills <cwills@sinenomine.net>
Fri, 29 Jan 2021 18:32:36 +0000 (11:32 -0700)
committerBenjamin Kaduk <kaduk@mit.edu>
Sat, 30 Jan 2021 20:28:43 +0000 (15:28 -0500)
commit32cc6b0796495e596262d84c428172a511f757c4
tree1e6a095664e1d457b83faff1cc25f3b4befa7f6e
parent0c1465e4f3310daa54f1e799f76237604222666d
Linux: Refactor test for 32bit compat

Refactor the preprocessor checks for determining the method to test for
32bit compatibility (64bit kernel performing work for a 32bit task) into
a common inline function, 'afs_in_compat_syscall' that is defined in
LINUX/osi_machdep.h.  Update osi_ioctl.c and afs_syscall.c to use
afs_in_compat_syscall.

Add include afs/sysincludes into osi_machdep.h to ensure linux/compat.h
is pulled for the functions called in afs_in_compat_syscall.

Change-Id: I6610cc19fedd909de8e8941ded05ed1608e52403
Reviewed-on: https://gerrit.openafs.org/14500
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/LINUX/osi_ioctl.c
src/afs/LINUX/osi_machdep.h
src/afs/afs_syscall.c