Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1299861

[PATCH] OrangeFS: constify export_operations structures

From Julia Lawall <Julia.Lawall@lip6.fr>
Newsgroups linux.kernel
Subject [PATCH] OrangeFS: constify export_operations structures
Date 2016-01-01 10:20 +0100
Message-ID <qM42l-9N-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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,
 };

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] OrangeFS: constify export_operations structures Julia Lawall <Julia.Lawall@lip6.fr> - 2016-01-01 10:20 +0100
  Re: [PATCH] OrangeFS: constify export_operations structures Mike Marshall <hubcap@omnibond.com> - 2016-01-04 17:20 +0100
    Re: [PATCH] OrangeFS: constify export_operations structures Dan Carpenter <dan.carpenter@oracle.com> - 2016-01-04 19:50 +0100
      Re: [PATCH] OrangeFS: constify export_operations structures Mike Marshall <hubcap@omnibond.com> - 2016-01-05 16:40 +0100

csiph-web