Print this page
fixup .text where possible
7127 remove -Wno-missing-braces from Makefile.uts
@@ -137,12 +137,12 @@
"Kernel Random number Provider"
};
static struct modlinkage modlinkage = {
MODREV_1,
- (void *)&modlcrypto,
- NULL
+ { (void *)&modlcrypto,
+ NULL }
};
/*
* CSPI information (entry points, provider info, etc.)
*/
@@ -161,39 +161,24 @@
swrand_seed_random,
swrand_generate_random
};
static crypto_ops_t swrand_crypto_ops = {
- &swrand_control_ops,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- &swrand_random_number_ops,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
+ .co_control_ops = &swrand_control_ops,
+ .co_random_ops = &swrand_random_number_ops
};
-static crypto_provider_info_t swrand_prov_info = {
+static crypto_provider_info_t swrand_prov_info = {{{{
CRYPTO_SPI_VERSION_4,
"Kernel Random Number Provider",
CRYPTO_SW_PROVIDER,
{&modlinkage},
NULL,
&swrand_crypto_ops,
0,
NULL
-};
+}}}};
int
_init(void)
{
int ret;