From 5c468a220e11c0bec8e9e5fc3f1314f3361cea9e Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Wed, 15 Sep 2021 21:01:34 +0200 Subject: [PATCH] hmcdrvfs: 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 hmcdrv_fuse_getattr(), hmcdrv_fuse_readdir() and hmcdrv_fuse_init() to match. GitHub-ID: https://github.com/ibm-s390-linux/s390-tools/pull/117 Signed-off-by: Graham Inggs Signed-off-by: Jan Höppner --- hmcdrvfs/hmcdrvfs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hmcdrvfs/hmcdrvfs.c b/hmcdrvfs/hmcdrvfs.c index ab6eaed3..73c34b77 100644 --- a/hmcdrvfs/hmcdrvfs.c +++ b/hmcdrvfs/hmcdrvfs.c @@ -1109,7 +1109,8 @@ static struct hmcdrv_fuse_file *hmcdrv_file_get(const char *path) * * Note: The most important function which FUSE calls (very often). */ -static int hmcdrv_fuse_getattr(const char *path, struct stat *stbuf) +static int hmcdrv_fuse_getattr(const char *path, struct stat *stbuf, + struct fuse_file_info *UNUSED(fi)) { struct hmcdrv_fuse_file *fp; int rc = 0; @@ -1175,7 +1176,8 @@ static int hmcdrv_fuse_opendir(const char *UNUSED(path), */ static int hmcdrv_fuse_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t UNUSED(offset), - struct fuse_file_info *UNUSED(fi)) + struct fuse_file_info *UNUSED(fi), + enum fuse_readdir_flags UNUSED(flags)) { int ret; @@ -1232,7 +1234,8 @@ static int hmcdrv_fuse_read(const char *path, char *buf, size_t size, * Return: value to be passed in the private_data field of fuse_context to * all file operations and as a parameter to the destroy() method */ -static void *hmcdrv_fuse_init(struct fuse_conn_info *UNUSED(conn)) +static void *hmcdrv_fuse_init(struct fuse_conn_info *UNUSED(conn), + struct fuse_config *UNUSED(cfg)) { pthread_mutexattr_t attr;