Skip to content

Commit eb59a58

Browse files
edliawakpm00
authored andcommitted
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: d97b46a ("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>
1 parent a7ac59f commit eb59a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/kcmp/kcmp_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
9191
ksft_print_header();
9292
ksft_set_plan(3);
9393

94-
fd2 = open(kpath, O_RDWR, 0644);
94+
fd2 = open(kpath, O_RDWR);
9595
if (fd2 < 0) {
9696
perror("Can't open file");
9797
ksft_exit_fail();

0 commit comments

Comments
 (0)