From 9b84de4b0ae3e24d2a0458f8ceb456b6afed5256 Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Wed, 15 Sep 2021 17:48:39 +0200 Subject: [PATCH] hsavmcore: fix compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiling against fuse3 shows 'incompatible pointer type' warnings due to the additional function arguments in the new API. Therefore, adjust the declarations of vmcore_fuse_getattr() and vmcore_fuse_readdir() to match. GitHub-ID: https://github.com/ibm-s390-linux/s390-tools/pull/117 Signed-off-by: Graham Inggs Reviewed-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- hsavmcore/overlay.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hsavmcore/overlay.c b/hsavmcore/overlay.c index 1d963992..a4d59020 100644 --- a/hsavmcore/overlay.c +++ b/hsavmcore/overlay.c @@ -31,8 +31,11 @@ struct vmcore_overlay { bool fuse_debug; }; -static int vmcore_fuse_getattr(const char *path, struct stat *stbuf) +static int vmcore_fuse_getattr(const char *path, struct stat *stbuf, + struct fuse_file_info *fi) { + (void)fi; + struct vmcore_overlay *overlay = fuse_get_context()->private_data; int ret = 0; @@ -54,10 +57,12 @@ static int vmcore_fuse_getattr(const char *path, struct stat *stbuf) static int vmcore_fuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, - struct fuse_file_info *fi) + struct fuse_file_info *fi, + enum fuse_readdir_flags flags) { (void)offset; (void)fi; + (void)flags; if (strcmp(path, ROOT_DIR) != 0) return -ENOENT;