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


  39 #include <xen/sys/xenbus_impl.h>
  40 #include <xen/sys/xendev.h>
  41 
  42 extern int xen_boot_debug;
  43 
  44 /*
  45  * Internal structures and functions
  46  */
  47 int xendev_nounload = 0;
  48 void xendev_enumerate(int);
  49 
  50 /*
  51  * Interface routines
  52  */
  53 
  54 static struct modlmisc modlmisc = {
  55         &mod_miscops, "virtual device probe"
  56 };
  57 
  58 static struct modlinkage modlinkage = {
  59         MODREV_1, (void *)&modlmisc, NULL
  60 };
  61 
  62 int
  63 _init(void)
  64 {
  65         int     err;
  66 
  67         if ((err = mod_install(&modlinkage)) != 0)
  68                 return (err);
  69 
  70         impl_bus_add_probe(xendev_enumerate);
  71         return (0);
  72 }
  73 
  74 int
  75 _fini(void)
  76 {
  77         int     err;
  78 
  79         if (xendev_nounload)




  39 #include <xen/sys/xenbus_impl.h>
  40 #include <xen/sys/xendev.h>
  41 
  42 extern int xen_boot_debug;
  43 
  44 /*
  45  * Internal structures and functions
  46  */
  47 int xendev_nounload = 0;
  48 void xendev_enumerate(int);
  49 
  50 /*
  51  * Interface routines
  52  */
  53 
  54 static struct modlmisc modlmisc = {
  55         &mod_miscops, "virtual device probe"
  56 };
  57 
  58 static struct modlinkage modlinkage = {
  59         MODREV_1, { (void *)&modlmisc, NULL }
  60 };
  61 
  62 int
  63 _init(void)
  64 {
  65         int     err;
  66 
  67         if ((err = mod_install(&modlinkage)) != 0)
  68                 return (err);
  69 
  70         impl_bus_add_probe(xendev_enumerate);
  71         return (0);
  72 }
  73 
  74 int
  75 _fini(void)
  76 {
  77         int     err;
  78 
  79         if (xendev_nounload)