From: Julia Lawall Date: Fri, 1 Jan 2016 09:01:52 +0000 (+0100) Subject: OrangeFS: constify export_operations structures X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=acaca36dd94d1bfe381a7425984991a06ba58f53;p=openwrt%2Fstaging%2Fblogic.git OrangeFS: constify export_operations structures 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 Signed-off-by: Mike Marshall --- diff --git a/fs/orangefs/super.c b/fs/orangefs/super.c index 52bc522ea21c..bee67b37d805 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, };