Print this page
7127 remove -Wno-missing-braces from Makefile.uts
@@ -211,12 +211,11 @@
};
/* modlinkage structure */
static struct modlinkage tpm_ml = {
MODREV_1,
- &modldrv,
- NULL
+ { &modldrv, NULL }
};
#ifdef KCF_TPM_RNG_PROVIDER
@@ -258,25 +257,13 @@
static int tpmrng_register(tpm_state_t *);
static int tpmrng_unregister(tpm_state_t *);
static crypto_ops_t tpmrng_crypto_ops = {
- &tpmrng_control_ops,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- &tpmrng_random_number_ops,
- NULL,
- NULL,
- NULL,
- &tpmrng_extinfo_op,
- NULL,
- NULL
+ .co_control_ops = &tpmrng_control_ops,
+ .co_random_ops = &tpmrng_random_number_ops,
+ .co_provider_ops = &tpmrng_extinfo_op
};
static crypto_provider_info_t tpmrng_prov_info = {
CRYPTO_SPI_VERSION_2,
"TPM Random Number Provider",