Re: [PATCH] selftests/mm: Fix build with _FORTIFY_SOURCE

2024-03-18 Thread David Hildenbrand
On 18.03.24 03:34, Vitaly Chikunov wrote: Add missing flags argument to open(2) call with O_CREAT. Some tests fail to compile if _FORTIFY_SOURCE is defined (to any valid value) (together with -O), resulting in similar error messages such as: In file included from /usr/include/fcntl.h:342,

Re: [PATCH] selftests/mm: Fix build with _FORTIFY_SOURCE

2024-03-17 Thread Zi Yan
On 17 Mar 2024, at 22:34, Vitaly Chikunov wrote: > Add missing flags argument to open(2) call with O_CREAT. > > Some tests fail to compile if _FORTIFY_SOURCE is defined (to any valid > value) (together with -O), resulting in similar error messages such as: > > In file included from /usr/include/

[PATCH] selftests/mm: Fix build with _FORTIFY_SOURCE

2024-03-17 Thread Vitaly Chikunov
Add missing flags argument to open(2) call with O_CREAT. Some tests fail to compile if _FORTIFY_SOURCE is defined (to any valid value) (together with -O), resulting in similar error messages such as: In file included from /usr/include/fcntl.h:342, from gup_test.c:1: In func