Print this page
7127 remove -Wno-missing-braces from Makefile.uts
@@ -176,13 +176,13 @@
static kstat_t *
ilb_kstat_g_init(netstackid_t stackid, ilb_stack_t *ilbs)
{
kstat_t *ksp;
ilb_g_kstat_t template = {
- { "num_rules", KSTAT_DATA_UINT64, 0 },
- { "ip_frag_in", KSTAT_DATA_UINT64, 0 },
- { "ip_frag_dropped", KSTAT_DATA_UINT64, 0 }
+ { "num_rules", KSTAT_DATA_UINT64, {{0}} },
+ { "ip_frag_in", KSTAT_DATA_UINT64, {{0}} },
+ { "ip_frag_dropped", KSTAT_DATA_UINT64, {{0}} }
};
ksp = kstat_create_netstack(ILB_KSTAT_MOD_NAME, 0, ILB_G_KS_NAME,
ILB_G_KS_CNAME, KSTAT_TYPE_NAMED, NUM_OF_FIELDS(ilb_g_kstat_t),
KSTAT_FLAG_VIRTUAL, stackid);
@@ -210,23 +210,23 @@
static kstat_t *
ilb_rule_kstat_init(netstackid_t stackid, ilb_rule_t *rule)
{
kstat_t *ksp;
ilb_rule_kstat_t template = {
- { "num_servers", KSTAT_DATA_UINT64, 0 },
- { "bytes_not_processed", KSTAT_DATA_UINT64, 0 },
- { "pkt_not_processed", KSTAT_DATA_UINT64, 0 },
- { "bytes_dropped", KSTAT_DATA_UINT64, 0 },
- { "pkt_dropped", KSTAT_DATA_UINT64, 0 },
- { "nomem_bytes_dropped", KSTAT_DATA_UINT64, 0 },
- { "nomem_pkt_dropped", KSTAT_DATA_UINT64, 0 },
- { "noport_bytes_dropped", KSTAT_DATA_UINT64, 0 },
- { "noport_pkt_dropped", KSTAT_DATA_UINT64, 0 },
- { "icmp_echo_processed", KSTAT_DATA_UINT64, 0 },
- { "icmp_dropped", KSTAT_DATA_UINT64, 0 },
- { "icmp_too_big_processed", KSTAT_DATA_UINT64, 0 },
- { "icmp_too_big_dropped", KSTAT_DATA_UINT64, 0 }
+ { "num_servers", KSTAT_DATA_UINT64, {{0}} },
+ { "bytes_not_processed", KSTAT_DATA_UINT64, {{0}} },
+ { "pkt_not_processed", KSTAT_DATA_UINT64, {{0}} },
+ { "bytes_dropped", KSTAT_DATA_UINT64, {{0}} },
+ { "pkt_dropped", KSTAT_DATA_UINT64, {{0}} },
+ { "nomem_bytes_dropped", KSTAT_DATA_UINT64, {{0}} },
+ { "nomem_pkt_dropped", KSTAT_DATA_UINT64, {{0}} },
+ { "noport_bytes_dropped", KSTAT_DATA_UINT64, {{0}} },
+ { "noport_pkt_dropped", KSTAT_DATA_UINT64, {{0}} },
+ { "icmp_echo_processed", KSTAT_DATA_UINT64, {{0}} },
+ { "icmp_dropped", KSTAT_DATA_UINT64, {{0}} },
+ { "icmp_too_big_processed", KSTAT_DATA_UINT64, {{0}} },
+ { "icmp_too_big_dropped", KSTAT_DATA_UINT64, {{0}} }
};
ksp = kstat_create_netstack(ILB_KSTAT_MOD_NAME, rule->ir_ks_instance,
rule->ir_name, ILB_RULE_KS_CNAME, KSTAT_TYPE_NAMED,
NUM_OF_FIELDS(ilb_rule_kstat_t), KSTAT_FLAG_VIRTUAL, stackid);
@@ -245,13 +245,13 @@
ilb_server_kstat_init(netstackid_t stackid, ilb_rule_t *rule,
ilb_server_t *server)
{
kstat_t *ksp;
ilb_server_kstat_t template = {
- { "bytes_processed", KSTAT_DATA_UINT64, 0 },
- { "pkt_processed", KSTAT_DATA_UINT64, 0 },
- { "ip_address", KSTAT_DATA_STRING, 0 }
+ { "bytes_processed", KSTAT_DATA_UINT64, {{0}} },
+ { "pkt_processed", KSTAT_DATA_UINT64, {{0}} },
+ { "ip_address", KSTAT_DATA_STRING, {{0}} }
};
char cname_buf[KSTAT_STRLEN];
/* 7 is "-sstat" */
ASSERT(strlen(rule->ir_name) + 7 < KSTAT_STRLEN);