Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts

@@ -53,11 +53,11 @@
         &mod_cryptoops,
         "SHA2 Kernel SW Provider"
 };
 
 static struct modlinkage modlinkage = {
-        MODREV_1, &modlmisc, &modlcrypto, NULL
+        MODREV_1, { &modlmisc, &modlcrypto, NULL }
 };
 
 /*
  * Macros to access the SHA2 or SHA2-HMAC contexts from a context passed
  * by KCF to one of the entry points.

@@ -188,39 +188,26 @@
         sha2_create_ctx_template,
         sha2_free_context
 };
 
 static crypto_ops_t sha2_crypto_ops = {
-        &sha2_control_ops,
-        &sha2_digest_ops,
-        NULL,
-        &sha2_mac_ops,
-        NULL,
-        NULL,
-        NULL,
-        NULL,
-        NULL,
-        NULL,
-        NULL,
-        NULL,
-        NULL,
-        &sha2_ctx_ops,
-        NULL,
-        NULL,
-        NULL,
+        .co_control_ops = &sha2_control_ops,
+        .co_digest_ops = &sha2_digest_ops,
+        .co_mac_ops = &sha2_mac_ops,
+        .co_ctx_ops = &sha2_ctx_ops
 };
 
-static crypto_provider_info_t sha2_prov_info = {
+static crypto_provider_info_t sha2_prov_info = {{{{
         CRYPTO_SPI_VERSION_4,
         "SHA2 Software Provider",
         CRYPTO_SW_PROVIDER,
         {&modlinkage},
         NULL,
         &sha2_crypto_ops,
         sizeof (sha2_mech_info_tab)/sizeof (crypto_mech_info_t),
         sha2_mech_info_tab
-};
+}}}};
 
 static crypto_kcf_provider_handle_t sha2_prov_handle = NULL;
 
 int
 _init()