aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/lustre/llite/llite_internal.h
diff options
context:
space:
mode:
authorJames Simmons <jsimmons@infradead.org>2017-06-14 11:01:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-24 00:17:02 +0800
commitae839184d354b1251bf928307e663ed80806be6e (patch)
tree38df0d5eab765a4ff37c8012a7205c6d14e0eb74 /drivers/staging/lustre/lustre/llite/llite_internal.h
parentstaging: lustre: lustre: resolve "use spaces between elements" checkpatch errors (diff)
downloadlinux-dev-ae839184d354b1251bf928307e663ed80806be6e.tar.xz
linux-dev-ae839184d354b1251bf928307e663ed80806be6e.zip
staging: lustre: lustre: make all struct file_operations constant
Checkpatch reported several cases of struct file_operations not being const. This resolves those warnings. Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/llite/llite_internal.h')
-rw-r--r--drivers/staging/lustre/lustre/llite/llite_internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/lustre/lustre/llite/llite_internal.h b/drivers/staging/lustre/lustre/llite/llite_internal.h
index de09ddfdfa6a..41a0c8d95a00 100644
--- a/drivers/staging/lustre/lustre/llite/llite_internal.h
+++ b/drivers/staging/lustre/lustre/llite/llite_internal.h
@@ -470,7 +470,7 @@ struct ll_sb_info {
struct ll_ra_info ll_ra_info;
unsigned int ll_namelen;
- struct file_operations *ll_fop;
+ const struct file_operations *ll_fop;
unsigned int ll_md_brw_pages; /* readdir pages per RPC */
@@ -736,9 +736,9 @@ void ll_cl_remove(struct file *file, const struct lu_env *env);
extern const struct address_space_operations ll_aops;
/* llite/file.c */
-extern struct file_operations ll_file_operations;
-extern struct file_operations ll_file_operations_flock;
-extern struct file_operations ll_file_operations_noflock;
+extern const struct file_operations ll_file_operations;
+extern const struct file_operations ll_file_operations_flock;
+extern const struct file_operations ll_file_operations_noflock;
extern const struct inode_operations ll_file_inode_operations;
int ll_have_md_lock(struct inode *inode, __u64 *bits,
enum ldlm_mode l_req_mode);