mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
const: constify remaining file_operations
[[email protected]: fix KVM] Signed-off-by: Alexey Dobriyan <[email protected]> Acked-by: Mike Frysinger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1c4115e595
commit
828c09509b
57 changed files with 110 additions and 95 deletions
|
|
@ -498,7 +498,7 @@ const struct inode_operations omfs_dir_inops = {
|
|||
.rmdir = omfs_rmdir,
|
||||
};
|
||||
|
||||
struct file_operations omfs_dir_operations = {
|
||||
const struct file_operations omfs_dir_operations = {
|
||||
.read = generic_read_dir,
|
||||
.readdir = omfs_readdir,
|
||||
.llseek = generic_file_llseek,
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ static sector_t omfs_bmap(struct address_space *mapping, sector_t block)
|
|||
return generic_block_bmap(mapping, block, omfs_get_block);
|
||||
}
|
||||
|
||||
struct file_operations omfs_file_operations = {
|
||||
const struct file_operations omfs_file_operations = {
|
||||
.llseek = generic_file_llseek,
|
||||
.read = do_sync_read,
|
||||
.write = do_sync_write,
|
||||
|
|
|
|||
|
|
@ -44,14 +44,14 @@ extern int omfs_allocate_range(struct super_block *sb, int min_request,
|
|||
extern int omfs_clear_range(struct super_block *sb, u64 block, int count);
|
||||
|
||||
/* dir.c */
|
||||
extern struct file_operations omfs_dir_operations;
|
||||
extern const struct file_operations omfs_dir_operations;
|
||||
extern const struct inode_operations omfs_dir_inops;
|
||||
extern int omfs_make_empty(struct inode *inode, struct super_block *sb);
|
||||
extern int omfs_is_bad(struct omfs_sb_info *sbi, struct omfs_header *header,
|
||||
u64 fsblock);
|
||||
|
||||
/* file.c */
|
||||
extern struct file_operations omfs_file_operations;
|
||||
extern const struct file_operations omfs_file_operations;
|
||||
extern const struct inode_operations omfs_file_inops;
|
||||
extern const struct address_space_operations omfs_aops;
|
||||
extern void omfs_make_empty_table(struct buffer_head *bh, int offset);
|
||||
|
|
|
|||
Loading…
Reference in a new issue