public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OrangeFS: constify export_operations structures
@ 2016-01-01  9:01 Julia Lawall
  2016-01-04 16:18 ` Mike Marshall
  0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2016-01-01  9:01 UTC (permalink / raw)
  To: linux-kernel, Mike Marshall; +Cc: kernel-janitors

This export_operations structure is never modified, so declare it as const.
Most other structures of this type are already const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---

Mike, I saw your name on all of the patches for this driver, but you aren't
in the MAINTAINERS file.  If you are the maintainer of this file, maybe you
should add yourself there.

 fs/orangefs/super.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c
index 52bc522..bee67b3 100644
--- a/fs/orangefs/super.c
+++ b/fs/orangefs/super.c
@@ -342,7 +342,7 @@ out:
 	return type;
 }
 
-static struct export_operations orangefs_export_ops = {
+static const struct export_operations orangefs_export_ops = {
 	.encode_fh = orangefs_encode_fh,
 	.fh_to_dentry = orangefs_fh_to_dentry,
 };


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

end of thread, other threads:[~2016-01-05 15:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-01  9:01 [PATCH] OrangeFS: constify export_operations structures Julia Lawall
2016-01-04 16:18 ` Mike Marshall
2016-01-04 18:45   ` Dan Carpenter
2016-01-05 15:34     ` Mike Marshall

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