When build xfstests in some platform it will return no-return-in-nonvoid-function error in dio-buf-fault.c:83 and fake-dump-rootino.c:224, add return value to solve the issue. Signed-off-by: Yong Sun <yosun@xxxxxxxx> --- src/dio-buf-fault.c | 2 +- src/fake-dump-rootino.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dio-buf-fault.c b/src/dio-buf-fault.c index 911c3e1f..6b07c729 100644 --- a/src/dio-buf-fault.c +++ b/src/dio-buf-fault.c @@ -79,5 +79,5 @@ int main(int argc, char *argv[]) { c = ((char *)buf)[0]; printf("%u\n", c); - do_dio(argv[2], buf, sz); + return do_dio(argv[2], buf, sz); } diff --git a/src/fake-dump-rootino.c b/src/fake-dump-rootino.c index 8a30dffd..cada223a 100644 --- a/src/fake-dump-rootino.c +++ b/src/fake-dump-rootino.c @@ -221,4 +221,5 @@ int main(int argc, char *argv[]) { munmap(header, GLOBAL_HDR_SZ); close(fd); + return 0; } -- 2.43.0