[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201226235402.GA43122@75b6b98162fe>
Date: Sun, 27 Dec 2020 07:54:02 +0800
From: kernel test robot <lkp@...el.com>
To: Chengguang Xu <cgxu519@...ernel.net>, jack@...e.com
Cc: kbuild-all@...ts.01.org, linux-ext4@...r.kernel.org,
Chengguang Xu <cgxu519@...ernel.net>
Subject: [RFC PATCH] ext2: ext2_page_mkwrite() can be static
Reported-by: kernel test robot <lkp@...el.com>
Signed-off-by: kernel test robot <lkp@...el.com>
---
file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext2/file.c b/fs/ext2/file.c
index a34119415ef16d..4a5dbf349f6e13 100644
--- a/fs/ext2/file.c
+++ b/fs/ext2/file.c
@@ -30,7 +30,7 @@
#include "xattr.h"
#include "acl.h"
-vm_fault_t ext2_page_mkwrite(struct vm_fault *vmf)
+static vm_fault_t ext2_page_mkwrite(struct vm_fault *vmf)
{
struct vm_area_struct *vma = vmf->vma;
struct inode *inode = file_inode(vma->vm_file);
@@ -47,7 +47,7 @@ vm_fault_t ext2_page_mkwrite(struct vm_fault *vmf)
return block_page_mkwrite_return(err);
}
-const struct vm_operations_struct ext2_vm_ops = {
+static const struct vm_operations_struct ext2_vm_ops = {
.fault = filemap_fault,
.map_pages = filemap_map_pages,
.page_mkwrite = ext2_page_mkwrite,
Powered by blists - more mailing lists