From: kbuild test robot <lkp@intel.com>
To: "Matias Bjørling" <m@bjorling.me>
Cc: kbuild-all@01.org, hch@infradead.org, axboe@fb.com,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-nvme@lists.infradead.org, keith.busch@intel.com,
jg@lightnvm.io, Stephen.Bates@pmcs.com,
"Matias Bjørling" <m@bjorling.me>
Subject: [RFC PATCH] lightnvm: nvm_find_target_type() can be static
Date: Thu, 15 Oct 2015 04:52:17 +0800 [thread overview]
Message-ID: <20151014205217.GA96356@lkp-sb04> (raw)
In-Reply-To: <1444850524-16827-2-git-send-email-m@bjorling.me>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
core.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c
index 9b06d75..7205e57 100644
--- a/drivers/lightnvm/core.c
+++ b/drivers/lightnvm/core.c
@@ -34,7 +34,7 @@ static LIST_HEAD(nvm_mgrs);
static LIST_HEAD(nvm_devices);
static DECLARE_RWSEM(nvm_lock);
-struct nvm_tgt_type *nvm_find_target_type(const char *name)
+static struct nvm_tgt_type *nvm_find_target_type(const char *name)
{
struct nvm_tgt_type *tt;
@@ -123,7 +123,7 @@ void nvm_unregister_mgr(struct nvmm_type *mt)
}
EXPORT_SYMBOL(nvm_unregister_mgr);
-struct nvm_dev *nvm_find_nvm_dev(const char *name)
+static struct nvm_dev *nvm_find_nvm_dev(const char *name)
{
struct nvm_dev *dev;
@@ -209,7 +209,7 @@ static void nvm_free(struct nvm_dev *dev)
nvm_core_free(dev);
}
-int nvm_validate_features(struct nvm_dev *dev)
+static int nvm_validate_features(struct nvm_dev *dev)
{
struct nvm_get_features gf;
int ret;
@@ -223,7 +223,7 @@ int nvm_validate_features(struct nvm_dev *dev)
return 0;
}
-int nvm_validate_responsibility(struct nvm_dev *dev)
+static int nvm_validate_responsibility(struct nvm_dev *dev)
{
if (!dev->ops->set_responsibility)
return 0;
@@ -231,7 +231,7 @@ int nvm_validate_responsibility(struct nvm_dev *dev)
return dev->ops->set_responsibility(dev->q, 0);
}
-int nvm_init(struct nvm_dev *dev)
+static int nvm_init(struct nvm_dev *dev)
{
struct nvmm_type *mt;
int ret = 0;
@@ -304,7 +304,7 @@ err:
return ret;
}
-void nvm_exit(struct nvm_dev *dev)
+static void nvm_exit(struct nvm_dev *dev)
{
if (dev->ppalist_pool)
dev->ops->destroy_dma_pool(dev->ppalist_pool);
next prev parent reply other threads:[~2015-10-14 20:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-14 19:21 [PATCH v10 0/5] Support for Open-Channel SSDs Matias Bjørling
2015-10-14 19:22 ` [PATCH v10 1/5] lightnvm: " Matias Bjørling
2015-10-14 20:52 ` kbuild test robot [this message]
2015-10-14 20:55 ` [RFC PATCH] lightnvm: nvm_find_target_type() can be static Matias Bjørling
2015-10-14 20:52 ` [PATCH v10 1/5] lightnvm: Support for Open-Channel SSDs kbuild test robot
2015-10-14 19:22 ` [PATCH v10 2/5] gennvm: Generic NVM manager Matias Bjørling
2015-10-14 23:03 ` kbuild test robot
2015-10-14 19:22 ` [PATCH v10 3/5] rrpc: Round-robin sector target with cost-based gc Matias Bjørling
2015-10-15 1:09 ` kbuild test robot
2015-10-14 19:22 ` [PATCH v10 4/5] null_nvm: LightNVM test driver Matias Bjørling
2015-10-14 19:22 ` [PATCH v10 5/5] nvme: LightNVM support Matias Bjørling
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151014205217.GA96356@lkp-sb04 \
--to=lkp@intel.com \
--cc=Stephen.Bates@pmcs.com \
--cc=axboe@fb.com \
--cc=hch@infradead.org \
--cc=jg@lightnvm.io \
--cc=kbuild-all@01.org \
--cc=keith.busch@intel.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=m@bjorling.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®