[PATCH] mark f_ops const in the inode
Mark the f_ops members of inodes as const, as well as fix the ripple-through this causes by places that copy this f_ops and then "do stuff" with it. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committad av
Linus Torvalds

förälder
ec1b9466cb
incheckning
99ac48f54a
@@ -233,7 +233,7 @@ static struct file_operations proc_applstats_ops = {
|
||||
};
|
||||
|
||||
static void
|
||||
create_seq_entry(char *name, mode_t mode, struct file_operations *f)
|
||||
create_seq_entry(char *name, mode_t mode, const struct file_operations *f)
|
||||
{
|
||||
struct proc_dir_entry *entry;
|
||||
entry = create_proc_entry(name, mode, NULL);
|
||||
|
Referens i nytt ärende
Block a user