* [PATCH] nfsd: declare several functions of nfs4callback as static
@ 2010-12-16 13:25 Kirill A. Shutsemov
2011-01-01 21:21 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Kirill A. Shutsemov @ 2010-12-16 13:25 UTC (permalink / raw)
To: J. Bruce Fields, Neil Brown; +Cc: linux-nfs, linux-kernel, Kirill A. Shutemov
From: Kirill A. Shutemov <kirill@shutemov.name>
setup_callback_client(), nfsd4_release_cb() and nfsd4_process_cb_update()
do not have users outside the translation unit. Let's declare it as
static.
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
---
fs/nfsd/nfs4callback.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index a95150d..515a9b1 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -474,7 +474,8 @@ static int max_cb_time(void)
/* Reference counting, callback cleanup, etc., all look racy as heck.
* And why is cl_cb_set an atomic? */
-int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn)
+static int setup_callback_client(struct nfs4_client *clp,
+ struct nfs4_cb_conn *conn)
{
struct rpc_timeout timeparms = {
.to_initval = max_cb_time(),
@@ -750,13 +751,13 @@ void nfsd4_shutdown_callback(struct nfs4_client *clp)
flush_workqueue(callback_wq);
}
-void nfsd4_release_cb(struct nfsd4_callback *cb)
+static void nfsd4_release_cb(struct nfsd4_callback *cb)
{
if (cb->cb_ops->rpc_release)
cb->cb_ops->rpc_release(cb);
}
-void nfsd4_process_cb_update(struct nfsd4_callback *cb)
+static void nfsd4_process_cb_update(struct nfsd4_callback *cb)
{
struct nfs4_cb_conn conn;
struct nfs4_client *clp = cb->cb_clp;
--
1.7.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nfsd: declare several functions of nfs4callback as static
2010-12-16 13:25 [PATCH] nfsd: declare several functions of nfs4callback as static Kirill A. Shutsemov
@ 2011-01-01 21:21 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2011-01-01 21:21 UTC (permalink / raw)
To: Kirill A. Shutsemov; +Cc: Neil Brown, linux-nfs, linux-kernel
On Thu, Dec 16, 2010 at 03:25:54PM +0200, Kirill A. Shutsemov wrote:
> From: Kirill A. Shutemov <kirill@shutemov.name>
>
> setup_callback_client(), nfsd4_release_cb() and nfsd4_process_cb_update()
> do not have users outside the translation unit. Let's declare it as
> static.
Thanks, applying for 2.6.38.--b.
>
> Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
> ---
> fs/nfsd/nfs4callback.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
> index a95150d..515a9b1 100644
> --- a/fs/nfsd/nfs4callback.c
> +++ b/fs/nfsd/nfs4callback.c
> @@ -474,7 +474,8 @@ static int max_cb_time(void)
> /* Reference counting, callback cleanup, etc., all look racy as heck.
> * And why is cl_cb_set an atomic? */
>
> -int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn)
> +static int setup_callback_client(struct nfs4_client *clp,
> + struct nfs4_cb_conn *conn)
> {
> struct rpc_timeout timeparms = {
> .to_initval = max_cb_time(),
> @@ -750,13 +751,13 @@ void nfsd4_shutdown_callback(struct nfs4_client *clp)
> flush_workqueue(callback_wq);
> }
>
> -void nfsd4_release_cb(struct nfsd4_callback *cb)
> +static void nfsd4_release_cb(struct nfsd4_callback *cb)
> {
> if (cb->cb_ops->rpc_release)
> cb->cb_ops->rpc_release(cb);
> }
>
> -void nfsd4_process_cb_update(struct nfsd4_callback *cb)
> +static void nfsd4_process_cb_update(struct nfsd4_callback *cb)
> {
> struct nfs4_cb_conn conn;
> struct nfs4_client *clp = cb->cb_clp;
> --
> 1.7.3.3
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-01 21:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16 13:25 [PATCH] nfsd: declare several functions of nfs4callback as static Kirill A. Shutsemov
2011-01-01 21:21 ` J. Bruce Fields
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).