All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rakhi Sharma <rakhish1994@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: Julia.Lawall@lip6.fr, daniel.baluta@gmail.com,
	gregkh@linuxfoundation.org, Rakhi Sharma <rakhish1994@gmail.com>
Subject: [PATCH] drivers: staging: lustre: lustre: lov: lov_pool: Fixed a warning
Date: Wed, 10 Feb 2016 05:28:46 +0530	[thread overview]
Message-ID: <1455062326-20870-1-git-send-email-rakhish1994@gmail.com> (raw)

Fixed a checkpatch warning.
WARNING: struct file_operations should normally be const

Signed-off-by: Rakhi Sharma <rakhish1994@gmail.com>
---
 drivers/staging/lustre/lustre/lov/lov_pool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/lov/lov_pool.c b/drivers/staging/lustre/lustre/lov/lov_pool.c
index b43ce6c..bba37bf 100644
--- a/drivers/staging/lustre/lustre/lov/lov_pool.c
+++ b/drivers/staging/lustre/lustre/lov/lov_pool.c
@@ -288,7 +288,7 @@ static int pool_proc_open(struct inode *inode, struct file *file)
 	return rc;
 }
 
-static struct file_operations pool_proc_operations = {
+static const struct file_operations pool_proc_operations = {
 	.open	   = pool_proc_open,
 	.read	   = seq_read,
 	.llseek	 = seq_lseek,
-- 
1.9.1



             reply	other threads:[~2016-02-09 23:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 23:58 Rakhi Sharma [this message]
2016-02-10  6:14 ` [Outreachy kernel] [PATCH] drivers: staging: lustre: lustre: lov: lov_pool: Fixed a warning Sudip Mukherjee
2016-02-10  6:54   ` RAKHI SHARMA
2016-02-10  7:03     ` Julia Lawall
2016-02-10  7:37     ` Sudip Mukherjee
2016-02-10  7:23 ` Julia Lawall

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=1455062326-20870-1-git-send-email-rakhish1994@gmail.com \
    --to=rakhish1994@gmail.com \
    --cc=Julia.Lawall@lip6.fr \
    --cc=daniel.baluta@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --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.