summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/ofw/libofw/ofw_disk.c2
-rw-r--r--sys/dev/ksyms/ksyms.c2
-rw-r--r--sys/dev/led/led.c2
-rw-r--r--sys/dev/md/md.c2
-rw-r--r--sys/dev/sound/pcm/channel.c2
-rw-r--r--sys/dev/sound/pcm/sndstat.c2
-rw-r--r--sys/geom/gate/g_gate.c2
-rw-r--r--sys/ia64/ia64/sscdisk.c2
-rw-r--r--sys/kern/kern_conf.c2
-rw-r--r--sys/kern/kern_jail.c2
-rw-r--r--sys/kern/uipc_accf.c2
-rw-r--r--sys/kern/vfs_mount.c2
-rw-r--r--sys/netgraph/atm/uni/ng_uni.c20
-rw-r--r--sys/netgraph/ng_base.c2
-rw-r--r--sys/netinet/ip_encap.c2
-rw-r--r--sys/netinet/libalias/alias_mod.c4
-rw-r--r--sys/rpc/rpcsec_gss/svc_rpcsec_gss.c4
-rw-r--r--sys/vm/uma_core.c4
18 files changed, 30 insertions, 30 deletions
diff --git a/sys/boot/ofw/libofw/ofw_disk.c b/sys/boot/ofw/libofw/ofw_disk.c
index c364984..aaad196 100644
--- a/sys/boot/ofw/libofw/ofw_disk.c
+++ b/sys/boot/ofw/libofw/ofw_disk.c
@@ -67,7 +67,7 @@ struct opened_dev {
SLIST_ENTRY(opened_dev) link;
};
-SLIST_HEAD(, opened_dev) opened_devs = SLIST_HEAD_INITIALIZER(opened_dev);
+SLIST_HEAD(, opened_dev) opened_devs = SLIST_HEAD_INITIALIZER(opened_devs);
static int
ofwd_init(void)
diff --git a/sys/dev/ksyms/ksyms.c b/sys/dev/ksyms/ksyms.c
index fc368c7..bca6448 100644
--- a/sys/dev/ksyms/ksyms.c
+++ b/sys/dev/ksyms/ksyms.c
@@ -94,7 +94,7 @@ struct ksyms_softc {
static struct mtx ksyms_mtx;
static struct cdev *ksyms_dev;
static LIST_HEAD(, ksyms_softc) ksyms_list =
- LIST_HEAD_INITIALIZER(&ksyms_list);
+ LIST_HEAD_INITIALIZER(ksyms_list);
static const char ksyms_shstrtab[] =
"\0" STR_SYMTAB "\0" STR_STRTAB "\0" STR_SHSTRTAB "\0";
diff --git a/sys/dev/led/led.c b/sys/dev/led/led.c
index 1d902d5..fdd0fa2 100644
--- a/sys/dev/led/led.c
+++ b/sys/dev/led/led.c
@@ -40,7 +40,7 @@ struct ledsc {
static struct unrhdr *led_unit;
static struct mtx led_mtx;
static struct sx led_sx;
-static LIST_HEAD(, ledsc) led_list = LIST_HEAD_INITIALIZER(&led_list);
+static LIST_HEAD(, ledsc) led_list = LIST_HEAD_INITIALIZER(led_list);
static struct callout led_ch;
static MALLOC_DEFINE(M_LED, "LED", "LED driver");
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 87e5ac9..2006099 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -152,7 +152,7 @@ struct g_class g_md_class = {
DECLARE_GEOM_CLASS(g_md_class, g_md);
-static LIST_HEAD(, md_s) md_softc_list = LIST_HEAD_INITIALIZER(&md_softc_list);
+static LIST_HEAD(, md_s) md_softc_list = LIST_HEAD_INITIALIZER(md_softc_list);
#define NINDIR (PAGE_SIZE / sizeof(uintptr_t))
#define NMASK (NINDIR-1)
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index 42ea86f..ec7cb98 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -220,7 +220,7 @@ MTX_SYSINIT(pcm_syncgroup, &snd_pcm_syncgroups_mtx, "PCM channel sync group lock
*
* See SNDCTL_DSP_SYNCGROUP for more information.
*/
-struct pcm_synclist snd_pcm_syncgroups = SLIST_HEAD_INITIALIZER(head);
+struct pcm_synclist snd_pcm_syncgroups = SLIST_HEAD_INITIALIZER(snd_pcm_syncgroups);
static void
chn_lockinit(struct pcm_channel *c, int dir)
diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c
index 6d35803..293c777 100644
--- a/sys/dev/sound/pcm/sndstat.c
+++ b/sys/dev/sound/pcm/sndstat.c
@@ -79,7 +79,7 @@ static int sndstat_files = 0;
} \
} while (0)
-static SLIST_HEAD(, sndstat_entry) sndstat_devlist = SLIST_HEAD_INITIALIZER(none);
+static SLIST_HEAD(, sndstat_entry) sndstat_devlist = SLIST_HEAD_INITIALIZER(sndstat_devlist);
int snd_verbose = 1;
TUNABLE_INT("hw.snd.verbose", &snd_verbose);
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c
index 3737ee0..26df0f4 100644
--- a/sys/geom/gate/g_gate.c
+++ b/sys/geom/gate/g_gate.c
@@ -72,7 +72,7 @@ static struct cdevsw g_gate_cdevsw = {
static LIST_HEAD(, g_gate_softc) g_gate_list =
- LIST_HEAD_INITIALIZER(&g_gate_list);
+ LIST_HEAD_INITIALIZER(g_gate_list);
static struct mtx g_gate_list_mtx;
diff --git a/sys/ia64/ia64/sscdisk.c b/sys/ia64/ia64/sscdisk.c
index 0d5e321..f9abc0a 100644
--- a/sys/ia64/ia64/sscdisk.c
+++ b/sys/ia64/ia64/sscdisk.c
@@ -76,7 +76,7 @@ MALLOC_DEFINE(M_SSC, "ssc_disk", "Simulator Disk");
static d_strategy_t sscstrategy;
-static LIST_HEAD(, ssc_s) ssc_softc_list = LIST_HEAD_INITIALIZER(&ssc_softc_list);
+static LIST_HEAD(, ssc_s) ssc_softc_list = LIST_HEAD_INITIALIZER(ssc_softc_list);
struct ssc_s {
int unit;
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index 8504e48..e570fdd 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -63,7 +63,7 @@ static struct cdev *make_dev_credv(int flags,
static struct cdev_priv_list cdevp_free_list =
TAILQ_HEAD_INITIALIZER(cdevp_free_list);
static SLIST_HEAD(free_cdevsw, cdevsw) cdevsw_gt_post_list =
- SLIST_HEAD_INITIALIZER();
+ SLIST_HEAD_INITIALIZER(cdevsw_gt_post_list);
void
dev_lock(void)
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index 0900541..7ee68c4 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -87,7 +87,7 @@ struct prison prison0 = {
.pr_securelevel = -1,
.pr_childmax = JAIL_MAX,
.pr_hostuuid = DEFAULT_HOSTUUID,
- .pr_children = LIST_HEAD_INITIALIZER(&prison0.pr_children),
+ .pr_children = LIST_HEAD_INITIALIZER(prison0.pr_children),
#ifdef VIMAGE
.pr_flags = PR_HOST|PR_VNET,
#else
diff --git a/sys/kern/uipc_accf.c b/sys/kern/uipc_accf.c
index 102c04f..236b60d 100644
--- a/sys/kern/uipc_accf.c
+++ b/sys/kern/uipc_accf.c
@@ -54,7 +54,7 @@ MTX_SYSINIT(accept_filter, &accept_filter_mtx, "accept_filter_mtx",
#define ACCEPT_FILTER_UNLOCK() mtx_unlock(&accept_filter_mtx)
static SLIST_HEAD(, accept_filter) accept_filtlsthd =
- SLIST_HEAD_INITIALIZER(&accept_filtlsthd);
+ SLIST_HEAD_INITIALIZER(accept_filtlsthd);
MALLOC_DEFINE(M_ACCF, "accf", "accept filter data");
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 962ad67..b443152 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1354,7 +1354,7 @@ struct root_hold_token {
};
static LIST_HEAD(, root_hold_token) root_holds =
- LIST_HEAD_INITIALIZER(&root_holds);
+ LIST_HEAD_INITIALIZER(root_holds);
static int root_mount_complete;
diff --git a/sys/netgraph/atm/uni/ng_uni.c b/sys/netgraph/atm/uni/ng_uni.c
index e6fa04b..5b2a7ff 100644
--- a/sys/netgraph/atm/uni/ng_uni.c
+++ b/sys/netgraph/atm/uni/ng_uni.c
@@ -771,18 +771,18 @@ struct unimem_debug {
LIST_HEAD(unimem_debug_list, unimem_debug);
static struct unimem_debug_list nguni_freemem[UNIMEM_TYPES] = {
- LIST_HEAD_INITIALIZER(unimem_debug),
- LIST_HEAD_INITIALIZER(unimem_debug),
- LIST_HEAD_INITIALIZER(unimem_debug),
- LIST_HEAD_INITIALIZER(unimem_debug),
- LIST_HEAD_INITIALIZER(unimem_debug),
+ LIST_HEAD_INITIALIZER(nguni_freemem[0]),
+ LIST_HEAD_INITIALIZER(nguni_freemem[1]),
+ LIST_HEAD_INITIALIZER(nguni_freemem[2]),
+ LIST_HEAD_INITIALIZER(nguni_freemem[3]),
+ LIST_HEAD_INITIALIZER(nguni_freemem[4]),
};
static struct unimem_debug_list nguni_usedmem[UNIMEM_TYPES] = {
- LIST_HEAD_INITIALIZER(unimem_debug),
- LIST_HEAD_INITIALIZER(unimem_debug),
- LIST_HEAD_INITIALIZER(unimem_debug),
- LIST_HEAD_INITIALIZER(unimem_debug),
- LIST_HEAD_INITIALIZER(unimem_debug),
+ LIST_HEAD_INITIALIZER(nguni_usedmem[0]),
+ LIST_HEAD_INITIALIZER(nguni_usedmem[1]),
+ LIST_HEAD_INITIALIZER(nguni_usedmem[2]),
+ LIST_HEAD_INITIALIZER(nguni_usedmem[3]),
+ LIST_HEAD_INITIALIZER(nguni_usedmem[4]),
};
static struct mtx nguni_unilist_mtx;
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 65707b2..fdfe878 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -120,7 +120,7 @@ struct ng_node ng_deadnode = {
0, /* numhooks */
NULL, /* private */
0, /* ID */
- LIST_HEAD_INITIALIZER(ng_deadnode.hooks),
+ LIST_HEAD_INITIALIZER(ng_deadnode.nd_hooks),
{}, /* all_nodes list entry */
{}, /* id hashtable list entry */
{ 0,
diff --git a/sys/netinet/ip_encap.c b/sys/netinet/ip_encap.c
index 0efd22a..ce1319d 100644
--- a/sys/netinet/ip_encap.c
+++ b/sys/netinet/ip_encap.c
@@ -103,7 +103,7 @@ static void encap_fillarg(struct mbuf *, const struct encaptab *);
*/
static struct mtx encapmtx;
MTX_SYSINIT(encapmtx, &encapmtx, "encapmtx", MTX_DEF);
-LIST_HEAD(, encaptab) encaptab = LIST_HEAD_INITIALIZER(&encaptab);
+LIST_HEAD(, encaptab) encaptab = LIST_HEAD_INITIALIZER(encaptab);
/*
* We currently keey encap_init() for source code compatibility reasons --
diff --git a/sys/netinet/libalias/alias_mod.c b/sys/netinet/libalias/alias_mod.c
index 2713137..b2576da 100644
--- a/sys/netinet/libalias/alias_mod.c
+++ b/sys/netinet/libalias/alias_mod.c
@@ -52,11 +52,11 @@ __FBSDID("$FreeBSD$");
#endif
/* Protocol and userland module handlers chains. */
-LIST_HEAD(handler_chain, proto_handler) handler_chain = LIST_HEAD_INITIALIZER(foo);
+LIST_HEAD(handler_chain, proto_handler) handler_chain = LIST_HEAD_INITIALIZER(handler_chain);
#ifdef _KERNEL
struct rwlock handler_rw;
#endif
-SLIST_HEAD(dll_chain, dll) dll_chain = SLIST_HEAD_INITIALIZER(foo);
+SLIST_HEAD(dll_chain, dll) dll_chain = SLIST_HEAD_INITIALIZER(dll_chain);
#ifdef _KERNEL
diff --git a/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c b/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c
index b6e328e..55c0a83 100644
--- a/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c
+++ b/sys/rpc/rpcsec_gss/svc_rpcsec_gss.c
@@ -100,7 +100,7 @@ struct svc_rpc_gss_callback {
rpc_gss_callback_t cb_callback;
};
static SLIST_HEAD(svc_rpc_gss_callback_list, svc_rpc_gss_callback)
- svc_rpc_gss_callbacks = SLIST_HEAD_INITIALIZER(&svc_rpc_gss_callbacks);
+ svc_rpc_gss_callbacks = SLIST_HEAD_INITIALIZER(svc_rpc_gss_callbacks);
struct svc_rpc_gss_svc_name {
SLIST_ENTRY(svc_rpc_gss_svc_name) sn_link;
@@ -112,7 +112,7 @@ struct svc_rpc_gss_svc_name {
u_int sn_version;
};
static SLIST_HEAD(svc_rpc_gss_svc_name_list, svc_rpc_gss_svc_name)
- svc_rpc_gss_svc_names = SLIST_HEAD_INITIALIZER(&svc_rpc_gss_svc_names);
+ svc_rpc_gss_svc_names = SLIST_HEAD_INITIALIZER(svc_rpc_gss_svc_names);
enum svc_rpc_gss_client_state {
CLIENT_NEW, /* still authenticating */
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 8125482..a2d5633 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -122,14 +122,14 @@ static MALLOC_DEFINE(M_UMAHASH, "UMAHash", "UMA Hash Buckets");
static int bucketdisable = 1;
/* Linked list of all kegs in the system */
-static LIST_HEAD(,uma_keg) uma_kegs = LIST_HEAD_INITIALIZER(&uma_kegs);
+static LIST_HEAD(,uma_keg) uma_kegs = LIST_HEAD_INITIALIZER(uma_kegs);
/* This mutex protects the keg list */
static struct mtx uma_mtx;
/* Linked list of boot time pages */
static LIST_HEAD(,uma_slab) uma_boot_pages =
- LIST_HEAD_INITIALIZER(&uma_boot_pages);
+ LIST_HEAD_INITIALIZER(uma_boot_pages);
/* This mutex protects the boot time pages list */
static struct mtx uma_boot_pages_mtx;
OpenPOWER on IntegriCloud