Print this page
7127  remove -Wno-missing-braces from Makefile.uts

@@ -930,11 +930,11 @@
 map_unity_domain(domain_t *domain)
 {
         struct memlist *mp;
         uint64_t start;
         uint64_t npages;
-        immu_dcookie_t dcookies[1] = {0};
+        immu_dcookie_t dcookies[1] = {{(uintptr_t)NULL}};
         int dcount = 0;
 
         /*
          * UNITY arenas are a mirror of the physical memory
          * installed on the system.

@@ -1315,11 +1315,11 @@
         int kmflags;
         domain_t *domain;
         char mod_hash_name[128];
         immu_devi_t *immu_devi;
         int did;
-        immu_dcookie_t dcookies[1] = {0};
+        immu_dcookie_t dcookies[1] = {{(uintptr_t)NULL}};
         int dcount = 0;
 
         immu_devi = immu_devi_get(rdip);
 
         /*

@@ -1962,11 +1962,11 @@
 
 void
 immu_print_fault_info(uint_t sid, uint64_t dvma)
 {
         int nlevels;
-        xlate_t xlate[IMMU_PGTABLE_MAX_LEVELS + 1] = {0};
+        xlate_t xlate[IMMU_PGTABLE_MAX_LEVELS + 1] = {{0}};
         xlate_t *xlatep;
         hw_pdte_t pte;
         domain_t *domain;
         immu_t *immu;
         uint64_t dvma_arg;

@@ -2353,11 +2353,11 @@
 {
         uint64_t dvma;
         uint64_t n;
         immu_t *immu = domain->dom_immu;
         int nlevels = immu->immu_dvma_nlevels;
-        xlate_t xlate[IMMU_PGTABLE_MAX_LEVELS + 1] = {0};
+        xlate_t xlate[IMMU_PGTABLE_MAX_LEVELS + 1] = {{0}};
         boolean_t pde_set = B_FALSE;
 
         n = snvpages;
         dvma = sdvma;
 

@@ -2393,11 +2393,11 @@
 dvma_unmap(domain_t *domain, uint64_t sdvma, uint64_t snpages,
     dev_info_t *rdip)
 {
         immu_t *immu = domain->dom_immu;
         int nlevels = immu->immu_dvma_nlevels;
-        xlate_t xlate[IMMU_PGTABLE_MAX_LEVELS + 1] = {0};
+        xlate_t xlate[IMMU_PGTABLE_MAX_LEVELS + 1] = {{0}};
         uint64_t n;
         uint64_t dvma;
 
         dvma = sdvma;
         n = snpages;

@@ -2449,11 +2449,11 @@
 
 static void
 dvma_prealloc(dev_info_t *rdip, immu_hdl_priv_t *ihp, ddi_dma_attr_t *dma_attr)
 {
         int nlevels;
-        xlate_t xlate[IMMU_PGTABLE_MAX_LEVELS + 1] = {0}, *xlp;
+        xlate_t xlate[IMMU_PGTABLE_MAX_LEVELS + 1] = {{0}}, *xlp;
         uint64_t dvma, n;
         size_t xsize, align;
         uint64_t minaddr, maxaddr, dmamax;
         int on, npte, pindex;
         hw_pdte_t *shwp;

@@ -2831,11 +2831,11 @@
 immu_dvma_physmem_update(uint64_t addr, uint64_t size)
 {
         uint64_t start;
         uint64_t npages;
         int dcount;
-        immu_dcookie_t dcookies[1] = {0};
+        immu_dcookie_t dcookies[1] = {{(uintptr_t)NULL}};
         domain_t *domain;
 
         /*
          * Just walk the system-wide list of domains with
          * UNITY mapping. Both the list of *all* domains

@@ -2954,11 +2954,11 @@
 }
 
 int
 immu_map_memrange(dev_info_t *rdip, memrng_t *mrng)
 {
-        immu_dcookie_t dcookies[1] = {0};
+        immu_dcookie_t dcookies[1] = {{(uintptr_t)NULL}};
         boolean_t pde_set;
         immu_t *immu;
         domain_t *domain;
         immu_inv_wait_t iw;