From c0beb7fb194f2eae2468727443f727eb089382d4 Mon Sep 17 00:00:00 2001 From: Andrei Tatar Date: Tue, 17 Dec 2024 20:48:25 +0100 Subject: [PATCH] lib/vfscore: Fix missing syscall declaration This change adds a declaration for `uk_syscall_r_fstat` as this syscall is no longer implemented in vfscore and thus no longer implicitly declared, previously causing a build warning. GCC 14 and Clang no longer accept implicitly declared functions and will error out in such situations. Signed-off-by: Andrei Tatar Reviewed-by: Stefan Jumarea Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu GitHub-Closes: #1556 --- lib/vfscore/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/vfscore/main.c b/lib/vfscore/main.c index 718ea7410..1de597dad 100644 --- a/lib/vfscore/main.c +++ b/lib/vfscore/main.c @@ -1695,6 +1695,9 @@ UK_SYSCALL_R_DEFINE(int, lstat, const char*, pathname, struct stat*, st) return __lxstat_helper(1, pathname, st); } +/* The fstat syscall is no longer implemented here; need to declare */ +long uk_syscall_r_fstat(long dirfd, long st); + static int __fxstatat_helper(int ver __unused, int dirfd, const char *pathname, struct stat *st, int flags) { -- 2.39.5