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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/tpm/tpm.c
          +++ new/usr/src/uts/common/io/tpm/tpm.c
↓ open down ↓ 205 lines elided ↑ open up ↑
 206  206  /* modldrv structure */
 207  207  static struct modldrv modldrv = {
 208  208          &mod_driverops,         /* Type: This is a driver */
 209  209          "TPM 1.2 driver",       /* Name of the module. */
 210  210          &tpm_dev_ops
 211  211  };
 212  212  
 213  213  /* modlinkage structure */
 214  214  static struct modlinkage tpm_ml = {
 215  215          MODREV_1,
 216      -        &modldrv,
 217      -        NULL
      216 +        { &modldrv, NULL }
 218  217  };
 219  218  
 220  219  
 221  220  #ifdef KCF_TPM_RNG_PROVIDER
 222  221  
 223  222  #define IDENT_TPMRNG    "TPM Random Number Generator"
 224  223  
 225  224  #include <sys/crypto/common.h>
 226  225  #include <sys/crypto/impl.h>
 227  226  #include <sys/crypto/spi.h>
↓ open down ↓ 25 lines elided ↑ open up ↑
 253  252          tpmrng_ext_info,
 254  253          NULL,
 255  254          NULL,
 256  255          NULL
 257  256  };
 258  257  
 259  258  static int tpmrng_register(tpm_state_t *);
 260  259  static int tpmrng_unregister(tpm_state_t *);
 261  260  
 262  261  static crypto_ops_t tpmrng_crypto_ops = {
 263      -        &tpmrng_control_ops,
 264      -        NULL,
 265      -        NULL,
 266      -        NULL,
 267      -        NULL,
 268      -        NULL,
 269      -        NULL,
 270      -        NULL,
 271      -        &tpmrng_random_number_ops,
 272      -        NULL,
 273      -        NULL,
 274      -        NULL,
 275      -        &tpmrng_extinfo_op,
 276      -        NULL,
 277      -        NULL
      262 +        .co_control_ops = &tpmrng_control_ops,
      263 +        .co_random_ops = &tpmrng_random_number_ops,
      264 +        .co_provider_ops = &tpmrng_extinfo_op
 278  265  };
 279  266  
 280  267  static crypto_provider_info_t tpmrng_prov_info = {
 281  268          CRYPTO_SPI_VERSION_2,
 282  269          "TPM Random Number Provider",
 283  270          CRYPTO_HW_PROVIDER,
 284  271          NULL,
 285  272          NULL,
 286  273          &tpmrng_crypto_ops,
 287  274          0,
↓ open down ↓ 1968 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX