Commit 0ff25cbe authored by Art Haas's avatar Art Haas Committed by Christoph Hellwig

[PATCH] designated initializer patches for

Here are patches for designated initializers in kernel/*.
parent 9df35b7c
...@@ -245,8 +245,8 @@ static unsigned int futex_poll(struct file *filp, ...@@ -245,8 +245,8 @@ static unsigned int futex_poll(struct file *filp,
} }
static struct file_operations futex_fops = { static struct file_operations futex_fops = {
release: futex_close, .release = futex_close,
poll: futex_poll, .poll = futex_poll,
}; };
/* Signal allows caller to avoid the race which would occur if they /* Signal allows caller to avoid the race which would occur if they
...@@ -357,8 +357,8 @@ futexfs_get_sb(struct file_system_type *fs_type, ...@@ -357,8 +357,8 @@ futexfs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type futex_fs_type = { static struct file_system_type futex_fs_type = {
name: "futexfs", .name = "futexfs",
get_sb: futexfs_get_sb, .get_sb = futexfs_get_sb,
}; };
static int __init init(void) static int __init init(void)
......
...@@ -346,15 +346,15 @@ int call_usermodehelper(char *path, char **argv, char **envp) ...@@ -346,15 +346,15 @@ int call_usermodehelper(char *path, char **argv, char **envp)
{ {
DECLARE_COMPLETION(work); DECLARE_COMPLETION(work);
struct subprocess_info sub_info = { struct subprocess_info sub_info = {
complete: &work, .complete = &work,
path: path, .path = path,
argv: argv, .argv = argv,
envp: envp, .envp = envp,
retval: 0, .retval = 0,
}; };
struct tq_struct tqs = { struct tq_struct tqs = {
routine: __call_usermodehelper, .routine = __call_usermodehelper,
data: &sub_info, .data = &sub_info,
}; };
if (path[0] == '\0') if (path[0] == '\0')
......
...@@ -44,15 +44,15 @@ extern const char __stop___kallsyms[] __attribute__ ((weak)); ...@@ -44,15 +44,15 @@ extern const char __stop___kallsyms[] __attribute__ ((weak));
struct module kernel_module = struct module kernel_module =
{ {
size_of_struct: sizeof(struct module), .size_of_struct = sizeof(struct module),
name: "", .name = "",
uc: {ATOMIC_INIT(1)}, .uc = {ATOMIC_INIT(1)},
flags: MOD_RUNNING, .flags = MOD_RUNNING,
syms: __start___ksymtab, .syms = __start___ksymtab,
ex_table_start: __start___ex_table, .ex_table_start = __start___ex_table,
ex_table_end: __stop___ex_table, .ex_table_end = __stop___ex_table,
kallsyms_start: __start___kallsyms, .kallsyms_start = __start___kallsyms,
kallsyms_end: __stop___kallsyms, .kallsyms_end = __stop___kallsyms,
}; };
struct module *module_list = &kernel_module; struct module *module_list = &kernel_module;
...@@ -1132,10 +1132,10 @@ static int m_show(struct seq_file *m, void *p) ...@@ -1132,10 +1132,10 @@ static int m_show(struct seq_file *m, void *p)
return 0; return 0;
} }
struct seq_operations modules_op = { struct seq_operations modules_op = {
start: m_start, .start = m_start,
next: m_next, .next = m_next,
stop: m_stop, .stop = m_stop,
show: m_show .show = m_show
}; };
/* /*
...@@ -1214,10 +1214,10 @@ static int s_show(struct seq_file *m, void *p) ...@@ -1214,10 +1214,10 @@ static int s_show(struct seq_file *m, void *p)
} }
struct seq_operations ksyms_op = { struct seq_operations ksyms_op = {
start: s_start, .start = s_start,
next: s_next, .next = s_next,
stop: s_stop, .stop = s_stop,
show: s_show .show = s_show
}; };
#else /* CONFIG_MODULES */ #else /* CONFIG_MODULES */
......
...@@ -23,13 +23,13 @@ int default_suspend(int state, int flags) ...@@ -23,13 +23,13 @@ int default_suspend(int state, int flags)
} }
static struct platform_t default_platform = { static struct platform_t default_platform = {
name: "Default Platform", .name = "Default Platform",
suspend_states: 0, .suspend_states = 0,
reboot: default_reboot, .reboot = default_reboot,
halt: default_halt, .halt = default_halt,
power_off: default_halt, .power_off = default_halt,
suspend: default_suspend, .suspend = default_suspend,
idle: default_idle, .idle = default_idle,
}; };
struct platform_t * platform = &default_platform; struct platform_t * platform = &default_platform;
......
...@@ -1819,7 +1819,7 @@ void set_cpus_allowed(task_t *p, unsigned long new_mask) ...@@ -1819,7 +1819,7 @@ void set_cpus_allowed(task_t *p, unsigned long new_mask)
static int migration_thread(void * bind_cpu) static int migration_thread(void * bind_cpu)
{ {
int cpu = (int) (long) bind_cpu; int cpu = (int) (long) bind_cpu;
struct sched_param param = { sched_priority: MAX_RT_PRIO-1 }; struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
runqueue_t *rq; runqueue_t *rq;
int ret; int ret;
......
...@@ -391,7 +391,7 @@ static void deferred_cad(void *dummy) ...@@ -391,7 +391,7 @@ static void deferred_cad(void *dummy)
void ctrl_alt_del(void) void ctrl_alt_del(void)
{ {
static struct tq_struct cad_tq = { static struct tq_struct cad_tq = {
routine: deferred_cad, .routine = deferred_cad,
}; };
if (C_A_D) if (C_A_D)
......
...@@ -126,12 +126,12 @@ static ssize_t proc_writesys(struct file *, const char *, size_t, loff_t *); ...@@ -126,12 +126,12 @@ static ssize_t proc_writesys(struct file *, const char *, size_t, loff_t *);
static int proc_sys_permission(struct inode *, int); static int proc_sys_permission(struct inode *, int);
struct file_operations proc_sys_file_operations = { struct file_operations proc_sys_file_operations = {
read: proc_readsys, .read = proc_readsys,
write: proc_writesys, .write = proc_writesys,
}; };
static struct inode_operations proc_sys_inode_operations = { static struct inode_operations proc_sys_inode_operations = {
permission: proc_sys_permission, .permission = proc_sys_permission,
}; };
extern struct proc_dir_entry *proc_sys_root; extern struct proc_dir_entry *proc_sys_root;
......
...@@ -28,9 +28,9 @@ static struct list_head uidhash_table[UIDHASH_SZ]; ...@@ -28,9 +28,9 @@ static struct list_head uidhash_table[UIDHASH_SZ];
static spinlock_t uidhash_lock = SPIN_LOCK_UNLOCKED; static spinlock_t uidhash_lock = SPIN_LOCK_UNLOCKED;
struct user_struct root_user = { struct user_struct root_user = {
__count: ATOMIC_INIT(1), .__count = ATOMIC_INIT(1),
processes: ATOMIC_INIT(1), .processes = ATOMIC_INIT(1),
files: ATOMIC_INIT(0) .files = ATOMIC_INIT(0)
}; };
/* /*
......
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