On Fri, Jul 06, 2018 at 01:42:46PM +0200, Arnd Bergmann wrote:
We can also rename all the compat syscalls that are now shared with 32-bit, e.g. using sys_waitid_time32() instead of compat_sys_waitid(), and that would be consistent with the new _time64() naming that we are introducing for some of them.
Yes, please. You'll need to touch the syscall tables anyway to refer to some new name, so it really isn't that much more work.
Completely separating them from the compat code would add further complexity though, as some of the system calls take another argument that is different between 32-bit and 64-bit kernels, in particular pselect6, ppoll, io_pgetevents, recvmmsg, and waitid.
Why would that create further complexity? IFF those calls need compat work other than the time structures you will need additional variants of them anyway. If the only compat handling is the time structures they will stay the same independent of the name.
Arnd
---end quoted text---