Heading Rusty off at the pass...
This also changes and array initialiser...
}
struct seq_operations nfs_exports_op = {
- start: e_start,
- next: e_next,
- stop: e_stop,
- show: e_show,
+ .start = e_start,
+ .next = e_next,
+ .stop = e_stop,
+ .show = e_show,
};
/*
}
struct nlmsvc_binding nfsd_nlm_ops = {
- exp_readlock: exp_readlock, /* lock export table for reading */
- exp_unlock: exp_readunlock, /* unlock export table */
- exp_getclient: exp_getclient, /* look up NFS client */
- fopen: nlm_fopen, /* open file for locking */
- fclose: nlm_fclose, /* close file */
- detach: exp_nlmdetach, /* lockd shutdown notification */
+ .exp_readlock = exp_readlock, /* lock export table for reading */
+ .exp_unlock = exp_readunlock, /* unlock export table */
+ .exp_getclient = exp_getclient, /* look up NFS client */
+ .fopen = nlm_fopen, /* open file for locking */
+ .fclose = nlm_fclose, /* close file */
+ .detach = exp_nlmdetach, /* lockd shutdown notification */
};
/*
}
static struct file_operations writer_ops = {
- write: fs_write,
+ .write = fs_write,
};
static struct file_operations reader_ops = {
- write: fs_write,
- read: TA_read,
- open: TA_open,
- release:TA_release,
+ .write = fs_write,
+ .read = TA_read,
+ .open = TA_open,
+ .release = TA_release,
};
extern struct seq_operations nfs_exports_op;
return seq_open(file, &nfs_exports_op);
}
static struct file_operations exports_operations = {
- open: exports_open,
- read: seq_read,
- llseek: seq_lseek,
- release: seq_release,
+ .open = exports_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+ .release = seq_release,
};
/*
*/
static struct super_operations s_ops = {
- statfs: simple_statfs,
+ .statfs = simple_statfs,
};
static int nfsd_fill_super(struct super_block * sb, void * data, int silent)
}
static struct file_system_type nfsd_fs_type = {
- owner: THIS_MODULE,
- name: "nfsd",
- get_sb: nfsd_get_sb,
- kill_sb: kill_litter_super,
+ .owner = THIS_MODULE,
+ .name = "nfsd",
+ .get_sb = nfsd_get_sb,
+ .kill_sb = kill_litter_super,
};
static int __init init_nfsd(void)
}
static struct svc_version nfsd_version2 = {
- vs_vers: 2,
- vs_nproc: 18,
- vs_proc: nfsd_procedures2,
- vs_dispatch: nfsd_dispatch
+ .vs_vers = 2,
+ .vs_nproc = 18,
+ .vs_proc = nfsd_procedures2,
+ .vs_dispatch = nfsd_dispatch
};
#ifdef CONFIG_NFSD_V3
static struct svc_version nfsd_version3 = {
- vs_vers: 3,
- vs_nproc: 22,
- vs_proc: nfsd_procedures3,
- vs_dispatch: nfsd_dispatch
+ .vs_vers = 3,
+ .vs_nproc = 22,
+ .vs_proc = nfsd_procedures3,
+ .vs_dispatch = nfsd_dispatch
};
#endif
static struct svc_version * nfsd_version[] = {
- NULL,
- NULL,
- &nfsd_version2,
+ [2] = &nfsd_version2,
#ifdef CONFIG_NFSD_V3
- &nfsd_version3,
+ [3] = &nfsd_version3,
#endif
};
#define NFSD_NRVERS (sizeof(nfsd_version)/sizeof(nfsd_version[0]))
struct svc_program nfsd_program = {
- pg_prog: NFS_PROGRAM, /* program number */
- pg_lovers: 2, // version
- pg_hivers: NFSD_NRVERS-1, // range
- pg_nvers: NFSD_NRVERS, /* nr of entries in nfsd_version */
- pg_vers: nfsd_version, /* version table */
- pg_name: "nfsd", /* program name */
- pg_stats: &nfsd_svcstats, /* version table */
+ .pg_prog = NFS_PROGRAM, /* program number */
+ .pg_lovers = 2, // version
+ .pg_hivers = NFSD_NRVERS-1, // range
+ .pg_nvers = NFSD_NRVERS, /* nr of entries in nfsd_version */
+ .pg_vers = nfsd_version, /* version table */
+ .pg_name = "nfsd", /* program name */
+ .pg_stats = &nfsd_svcstats, /* version table */
};
struct nfsd_stats nfsdstats;
struct svc_stat nfsd_svcstats = {
- program: &nfsd_program,
+ .program = &nfsd_program,
};
static int