Designated initializers for shm
PATCH 1/1 Designated initializers for shm
[ This is the last remenant in kernel/, mm/ and ipc/ ]
Name: Designated initializers for kernel/, mm/ and ipc/
Author: Rusty Russell
Status: Trivial
D: The old form of designated initializers are obsolete: we need to
D: replace them with the ISO C forms before 2.6. Gcc has always supported
D: both forms anyway.
ipc/shm.c +4 -4
@@ -154,13 +154,13 @@ static int shm_mmap(struct file * file, }static struct file_operations shm_file_operations = { - mmap: shm_mmap + .mmap = shm_mmap };static 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 */ - nopage: shmem_nopage, + .open = shm_open,/* callback for a new vm-area open */ + .close = shm_close,/* callback for when the vm-area is released */ + .nopage = shmem_nopage, };static int newseg (key_t key,int shmflg,size_t size)
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.