]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/vfscore: Fix missing syscall declaration
authorAndrei Tatar <andrei@unikraft.io>
Tue, 17 Dec 2024 19:48:25 +0000 (20:48 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 19 Dec 2024 21:02:57 +0000 (21:02 +0000)
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 <andrei@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1556

lib/vfscore/main.c

index 718ea7410b98648420b0c425ffd7df4a8d34a14b..1de597dadc17f1f89eeaf495d84697770d7c13ac 100644 (file)
@@ -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)
 {