selftests/kcmp: remove unused open mode
authorEdward Liaw <edliaw@google.com>
Mon, 29 Apr 2024 23:46:09 +0000 (23:46 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 11 May 2024 22:51:43 +0000 (15:51 -0700)
commiteb59a58113717df04b8a8229befd8ab1e5dbf86e
tree76f18031beff0b93395122e45f8f25a4670cb18b
parenta7ac59f4f23660473e6350306f9b88f24fcc38f1
selftests/kcmp: remove unused open mode

Android bionic warns that open modes are ignored if O_CREAT or O_TMPFILE
aren't specified.  The permissions for the file are set above:

fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644);

Link: https://lkml.kernel.org/r/20240429234610.191144-1-edliaw@google.com
Fixes: d97b46a64674 ("syscalls, x86: add __NR_kcmp syscall")
Signed-off-by: Edward Liaw <edliaw@google.com>
Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/kcmp/kcmp_test.c