]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
dio-writeback-race: fix missing mode in O_CREAT
authorDarrick J. Wong <djwong@kernel.org>
Thu, 20 Feb 2025 21:46:57 +0000 (13:46 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 6 Mar 2025 13:25:54 +0000 (21:25 +0800)
commit04b1fc9de8858c18d772828ba731bb6e4057a04c
treeb383f4faca68a266ccd08dc967dcd44fcb9c7c43
parent6fe33ea3a3247d847c8ee583f0299409061dfa7d
dio-writeback-race: fix missing mode in O_CREAT

Fix this build error:

In file included from /usr/include/fcntl.h:314,
                 from dio-writeback-race.c:40:
In function 'open',
    inlined from 'main' at dio-writeback-race.c:110:7:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:11: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
   50 |           __open_missing_mode ();
      |           ^~~~~~~~~~~~~~~~~~~~~~

Cc: <fstests@vger.kernel.org> # v2025.02.16
Fixes: 17fb49493426ad ("fstests: add a generic test to verify direct IO writes with buffer contents change")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
src/dio-writeback-race.c