[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>
此提交包含在:
@@ -52,7 +52,7 @@ static int ppc_htab_open(struct inode *inode, struct file *file)
|
||||
return single_open(file, ppc_htab_show, NULL);
|
||||
}
|
||||
|
||||
struct file_operations ppc_htab_operations = {
|
||||
const struct file_operations ppc_htab_operations = {
|
||||
.open = ppc_htab_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
新增問題並參考
封鎖使用者