Content-Type: multipart/mixed; boundary="===============8053559278002810363==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] fat: msdos_ncache can be static Date: Mon, 30 Aug 2021 05:05:37 +0800 Message-ID: <20210829210537.GA61694@74a5018f4101> In-Reply-To: <20210829142459.56081-2-calebdsb@protonmail.com> List-Id: --===============8053559278002810363== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable fs/fat/namei_msdos.c:37:1: warning: symbol 'msdos_ncache' was not declared.= Should it be static? fs/fat/namei_msdos.c:38:1: warning: symbol 'msdos_ncache_mutex' was not dec= lared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- namei_msdos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fat/namei_msdos.c b/fs/fat/namei_msdos.c index 7561674b16a22..f44d590a11583 100644 --- a/fs/fat/namei_msdos.c +++ b/fs/fat/namei_msdos.c @@ -34,8 +34,8 @@ struct msdos_name_node { struct hlist_node h_list; }; = -DEFINE_HASHTABLE(msdos_ncache, 6); -DEFINE_MUTEX(msdos_ncache_mutex); /* protect the name cache */ +static DEFINE_HASHTABLE(msdos_ncache, 6); +static DEFINE_MUTEX(msdos_ncache_mutex); /* protect the name cache */ = /** * msdos_fname_hash() - quickly "hash" an msdos filename --===============8053559278002810363==--