X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=ipc%2Fshm.c;h=464694e0aa4a19c74b973a2a69f0d88049b9c512;hb=d1bde3f755e8652faad59e264c466c4baab68fa8;hp=9eb1488b543bc9e8ae419035a86e489e9bf4c8c6;hpb=c11f6c82581e8be4e1829c677db54e7f55cebece;p=~andy%2Flinux diff --git a/ipc/shm.c b/ipc/shm.c index 9eb1488b543..464694e0aa4 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -55,7 +55,7 @@ struct shm_file_data { #define shm_file_data(file) (*((struct shm_file_data **)&(file)->private_data)) static const struct file_operations shm_file_operations; -static struct vm_operations_struct shm_vm_ops; +static const struct vm_operations_struct shm_vm_ops; #define shm_ids(ns) ((ns)->ids[IPC_SHM_IDS]) @@ -312,7 +312,7 @@ static const struct file_operations shm_file_operations = { .get_unmapped_area = shm_get_unmapped_area, }; -static struct vm_operations_struct shm_vm_ops = { +static const struct vm_operations_struct shm_vm_ops = { .open = shm_open, /* callback for a new vm-area open */ .close = shm_close, /* callback for when the vm-area is released */ .fault = shm_fault,