From 08ba5d9512a7b022b09d5286986c0c3793c4817f Mon Sep 17 00:00:00 2001 From: zhang-daiyue Date: Tue, 28 Mar 2023 07:30:29 +0000 Subject: [PATCH] Fix epfs compiling warnings Signed-off-by: zhang-daiyue Change-Id: I4bde8ddd24a9e9d5406f11d767b68f54ceef6120 --- fs/epfs/Kconfig | 4 ++-- fs/epfs/file.c | 2 +- fs/epfs/super.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/epfs/Kconfig b/fs/epfs/Kconfig index 059c3a0cc10d..6a631dba7ad8 100644 --- a/fs/epfs/Kconfig +++ b/fs/epfs/Kconfig @@ -1,12 +1,12 @@ # SPDX-License-Identifier: GPL-2.0 config EPFS - tristate "Enhanced Proxy File System support" + bool "Enhanced Proxy File System support" depends on TMPFS help Enhanced Proxy File System support. If unsure, say N. config EPFS_DEBUG - tristate "Debug message of Enhanced Proxy File System" + bool "Debug message of Enhanced Proxy File System" depends on EPFS help Enhanced Proxy File System debug support. diff --git a/fs/epfs/file.c b/fs/epfs/file.c index 5b236150f8b4..430cb26737f6 100644 --- a/fs/epfs/file.c +++ b/fs/epfs/file.c @@ -236,7 +236,7 @@ static ssize_t epfs_read(struct file *file, char __user *buf, size_t count, // read directly when epfs range gone; if (IS_ENABLED(CONFIG_EPFS_DEBUG)) epfs_debug( - "read from %llu with len %lu at the end.", + "read from %llu with len %zu at the end.", pos, count); ret = vfs_read(origin_file, buf, count, &pos); break; diff --git a/fs/epfs/super.c b/fs/epfs/super.c index 4d708f855d1f..7368af775c8d 100644 --- a/fs/epfs/super.c +++ b/fs/epfs/super.c @@ -79,7 +79,7 @@ static int epfs_statfs(struct dentry *dentry, struct kstatfs *buf) struct super_operations epfs_sops = { .alloc_inode = epfs_alloc_inode, .destroy_inode = epfs_destroy_inode, -#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0) .free_inode = epfs_free_inode, #endif .evict_inode = epfs_evict_inode, -- Gitee