From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael David Tinoco Date: Wed, 20 Mar 2019 17:04:36 -0300 Subject: [LTP] check_sync_file_range() Message-ID: <2A02D5B5-F67F-43C4-BABA-B0C7EFF6C9F5@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: ltp@lists.linux.it I believe check_sync_file_range() logic, from commit c0dc8876fb1486ee85f6dd43e36ec5b3d9d9a4ed, should use a different names since glibc seems to be implementing the syscall wrapper in recent versions and a conflict exists for me at least: gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition -D_FORTIFY_SOURCE=2 -I../../../../include -I../../../../include -I../../../../include/old/ -L../../../../lib sync_file_range02.c -lltp -o sync_file_range02 In file included from sync_file_range02.c:21: ../../../../include/lapi/sync_file_range.h:24:20: error: conflicting types for ‘sync_file_range’ static inline long sync_file_range(int fd, off64_t offset, off64_t nbytes, ^~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/bits/fcntl.h:61, from /usr/include/fcntl.h:35, from ../../../../include/tst_safe_macros.h:27, from ../../../../include/tst_test.h:90, from sync_file_range02.c:20: /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:397:12: note: previous declaration of ‘sync_file_range’ was here extern int sync_file_range (int __fd, __off64_t __offset, __off64_t __count, ^~~~~~~~~~~~~~~