Commit 78642ee8 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Designated initializers for shm

The old form of designated initializers are obsolete: we need to
replace them with the ISO C forms before 2.6.  Gcc has always supported
both forms anyway.
parent 9bbe1a9c
...@@ -154,13 +154,13 @@ static int shm_mmap(struct file * file, struct vm_area_struct * vma) ...@@ -154,13 +154,13 @@ static int shm_mmap(struct file * file, struct vm_area_struct * vma)
} }
static struct file_operations shm_file_operations = { static struct file_operations shm_file_operations = {
mmap: shm_mmap .mmap = shm_mmap
}; };
static struct vm_operations_struct shm_vm_ops = { static struct vm_operations_struct shm_vm_ops = {
open: shm_open, /* callback for a new vm-area open */ .open = shm_open, /* callback for a new vm-area open */
close: shm_close, /* callback for when the vm-area is released */ .close = shm_close, /* callback for when the vm-area is released */
nopage: shmem_nopage, .nopage = shmem_nopage,
}; };
static int newseg (key_t key, int shmflg, size_t size) static int newseg (key_t key, int shmflg, size_t size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment