Content-Type: multipart/mixed; boundary="===============7640620430159458834==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] ovl: ovl_get_realfile() can be static Date: Sat, 29 Aug 2020 20:16:59 +0800 Message-ID: <20200829121659.GA88931@e23a33e1793c> In-Reply-To: <20200829095101.25350-3-cgxu519@mykernel.net> List-Id: --===============7640620430159458834== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Signed-off-by: kernel test robot --- file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c index 14ab5344a91833..71ef43a140a55f 100644 --- a/fs/overlayfs/file.c +++ b/fs/overlayfs/file.c @@ -26,28 +26,28 @@ struct ovl_file_entry { void *vm_ops; }; = -struct file *ovl_get_realfile(struct file *file) +static struct file *ovl_get_realfile(struct file *file) { struct ovl_file_entry *ofe =3D file->private_data; = return ofe->realfile; } = -void ovl_set_realfile(struct file *file, struct file *realfile) +static void ovl_set_realfile(struct file *file, struct file *realfile) { struct ovl_file_entry *ofe =3D file->private_data; = ofe->realfile =3D realfile; } = -void *ovl_get_real_vmops(struct file *file) +static void *ovl_get_real_vmops(struct file *file) { struct ovl_file_entry *ofe =3D file->private_data; = return ofe->vm_ops; } = -void ovl_set_real_vmops(struct file *file, void *vm_ops) +static void ovl_set_real_vmops(struct file *file, void *vm_ops) { struct ovl_file_entry *ofe =3D file->private_data; =20 --===============7640620430159458834==--