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


  56 
  57         if (resolve_pathname("/xpvd", &xpvd_dip, NULL, NULL) != 0)
  58                 cmn_err(CE_PANIC, "unable to configure /xpvd nexus");
  59 
  60         (void) ndi_devi_config_driver(xpvd_dip, 0, dev_major);
  61 
  62         dev_major = ddi_name_to_major("xnf");
  63         if (dev_major == (major_t)-1)
  64                 cmn_err(CE_PANIC, "unable to load xnf network driver");
  65         (void) ndi_devi_config_driver(xpvd_dip, 0, dev_major);
  66 
  67         ndi_rele_devi(xpvd_dip);
  68         return (0);
  69 }
  70 
  71 static struct modlmisc modlmisc = {
  72         &mod_miscops, "hvm_bootstrap misc module"
  73 };
  74 
  75 static struct modlinkage modlinkage = {
  76         MODREV_1, (void *)&modlmisc, NULL
  77 };
  78 
  79 int
  80 _info(struct modinfo *modinfop)
  81 {
  82         return (mod_info(&modlinkage, modinfop));
  83 }
  84 
  85 int
  86 _init()
  87 {
  88         return (mod_install(&modlinkage));
  89 }
  90 
  91 int
  92 _fini()
  93 {
  94         return (EBUSY);
  95 }


  56 
  57         if (resolve_pathname("/xpvd", &xpvd_dip, NULL, NULL) != 0)
  58                 cmn_err(CE_PANIC, "unable to configure /xpvd nexus");
  59 
  60         (void) ndi_devi_config_driver(xpvd_dip, 0, dev_major);
  61 
  62         dev_major = ddi_name_to_major("xnf");
  63         if (dev_major == (major_t)-1)
  64                 cmn_err(CE_PANIC, "unable to load xnf network driver");
  65         (void) ndi_devi_config_driver(xpvd_dip, 0, dev_major);
  66 
  67         ndi_rele_devi(xpvd_dip);
  68         return (0);
  69 }
  70 
  71 static struct modlmisc modlmisc = {
  72         &mod_miscops, "hvm_bootstrap misc module"
  73 };
  74 
  75 static struct modlinkage modlinkage = {
  76         MODREV_1, { (void *)&modlmisc, NULL }
  77 };
  78 
  79 int
  80 _info(struct modinfo *modinfop)
  81 {
  82         return (mod_info(&modlinkage, modinfop));
  83 }
  84 
  85 int
  86 _init()
  87 {
  88         return (mod_install(&modlinkage));
  89 }
  90 
  91 int
  92 _fini()
  93 {
  94         return (EBUSY);
  95 }