]> git.hungrycats.org Git - linux/commit
selftests/kcmp: remove unused open mode
authorEdward Liaw <edliaw@google.com>
Mon, 29 Apr 2024 23:46:09 +0000 (23:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:49 +0000 (09:49 +0200)
commitecad8326c4793d6530bc30551f710e0ca9bd2d0e
treeaa6c722a8f62933ef901b3fa32f59d9999768329
parentbc92a11fb2d7ecd59a7ad1042f3a1e181cecb55d
selftests/kcmp: remove unused open mode

[ Upstream commit eb59a58113717df04b8a8229befd8ab1e5dbf86e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/kcmp/kcmp_test.c