All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shraddha Barke <shraddha.6596@gmail.com>
To: <outreachy-kernel@googlegroups.com>
Subject: [PATCH 2/2] Staging: lustre: obdclass: Declare structure as static.
Date: Thu,  1 Oct 2015 15:07:58 +0530	[thread overview]
Message-ID: <1443692278-9074-3-git-send-email-shraddha.6596@gmail.com> (raw)
In-Reply-To: <1443692278-9074-1-git-send-email-shraddha.6596@gmail.com>

Declare structure as static since it is not accessed anywhere
apart from this particular file.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
 drivers/staging/lustre/lustre/obdclass/lu_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/obdclass/lu_object.c b/drivers/staging/lustre/lustre/obdclass/lu_object.c
index c892e82..897c089 100644
--- a/drivers/staging/lustre/lustre/obdclass/lu_object.c
+++ b/drivers/staging/lustre/lustre/obdclass/lu_object.c
@@ -440,7 +440,7 @@ LU_KEY_INIT_FINI(lu_global, struct lu_cdebug_data);
  * Key, holding temporary buffer. This key is registered very early by
  * lu_global_init().
  */
-struct lu_context_key lu_global_key = {
+static struct lu_context_key lu_global_key = {
 	.lct_tags = LCT_MD_THREAD | LCT_DT_THREAD |
 		    LCT_MG_THREAD | LCT_CL_THREAD | LCT_LOCAL,
 	.lct_init = lu_global_key_init,
-- 
2.1.4



  parent reply	other threads:[~2015-10-01  9:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01  9:37 [PATCH 0/2] Declare functions and structures as static Shraddha Barke
2015-10-01  9:37 ` [PATCH 1/2] Staging: lustre: ptlrpc: Make functions static Shraddha Barke
2015-10-01 10:03   ` [Outreachy kernel] " Arnd Bergmann
2015-10-01 10:05     ` Shraddha Barke
2015-10-01 13:20       ` Julia Lawall
2015-10-01 13:34         ` Shraddha Barke
2015-10-01 13:37         ` Arnd Bergmann
2015-10-01 13:49           ` Julia Lawall
2015-10-01 13:57             ` Arnd Bergmann
2015-10-01 14:12               ` Julia Lawall
2015-10-01 20:53                 ` Arnd Bergmann
2015-10-01 21:21                   ` Julia Lawall
2015-10-01 11:54   ` Sudip Mukherjee
2015-10-01  9:37 ` Shraddha Barke [this message]
2015-10-01  9:54   ` [Outreachy kernel] [PATCH 2/2] Staging: lustre: obdclass: Declare structure as static Arnd Bergmann

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=1443692278-9074-3-git-send-email-shraddha.6596@gmail.com \
    --to=shraddha.6596@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.