Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix fanotify syscall check on compat kernel
The fanotify[0-5] testcases use the myfanotify_mark() wrapper for the fanotify_mark() syscall. But the #define does not take into account, that the mask field is actually of type _u64 where we need to split the hi and low word in the syscall on a 32bit arch. The attached patch converts the #define to a inline function where the compiler will help to convert the given values to the correct types (e.g. unsigned long). Bug found and tested on the parisc/hppa (32bit userspace with 64bit kernel) arch. Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Cyril Hrubis <[email protected]>
- Loading branch information