public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging : lustre: Struct file_operations should be const
@ 2015-08-02 11:02 Shraddha Barke
  2015-08-02 11:26 ` Julia Lawall
  2015-08-02 17:34 ` [PATCH v2] Revert "Staging : lustre: Struct file_operations should be const" Shraddha Barke
  0 siblings, 2 replies; 4+ messages in thread
From: Shraddha Barke @ 2015-08-02 11:02 UTC (permalink / raw)
  To: Oleg Drokin, Andreas Dilger, Al Viro, Julia Lawall,
	Greg Kroah-Hartman, Frank Zago, devel, linux-kernel
  Cc: Shraddha Barke

This patch fixes the following checkpatch.pl warning:

WARNING: struct file_operations should normally be const

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

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index dcd0c6d..369a722 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -3116,7 +3116,7 @@ int ll_inode_permission(struct inode *inode, int mask)
 }
 
 /* -o localflock - only provides locally consistent flock locks */
-struct file_operations ll_file_operations = {
+const struct file_operations ll_file_operations = {
 	.read_iter = ll_file_read_iter,
 	.write_iter = ll_file_write_iter,
 	.unlocked_ioctl = ll_file_ioctl,
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-03  5:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-02 11:02 [PATCH] Staging : lustre: Struct file_operations should be const Shraddha Barke
2015-08-02 11:26 ` Julia Lawall
2015-08-02 17:34 ` [PATCH v2] Revert "Staging : lustre: Struct file_operations should be const" Shraddha Barke
2015-08-03  5:29   ` Sudip Mukherjee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox