VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Arjan van de Ven <arjan@infradead.org> 2006-03-28 01:56:42 -0800 committer: Linus Torvalds <torvalds@g5.osdl.org> 2006-03-28 09:16:06 -0800 commit: 4b6f5d20b04dcbc3d888555522b90ba6d36c4106 parent: 99ac48f54a91d02140c497edc31dc57d4bc5c85d
Commit Summary:
[PATCH] Make most file operations structs in fs/ const
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/char_dev.c b/fs/char_dev.c
index b53dffa46bac..4e1b849f912f 100644
--- a/fs/char_dev.c
+++ b/fs/char_dev.c
@@ -406,7 +406,7 @@ static void cdev_purge(struct cdev *cdev)
  * is contain the open that then fills in the correct operations
  * depending on the special file...
  */
-struct file_operations def_chr_fops = {
+const struct file_operations def_chr_fops = {
 	.open = chrdev_open,
 };