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


  58 #include <sys/modctl.h>
  59 
  60 static vfsdef_t vfw = {
  61         VFSDEF_VERSION,
  62         "specfs",
  63         specinit,
  64         VSW_ZMOUNT,
  65         NULL
  66 };
  67 
  68 extern struct mod_ops mod_fsops;
  69 
  70 /*
  71  * Module linkage information for the kernel.
  72  */
  73 static struct modlfs modlfs = {
  74         &mod_fsops, "filesystem for specfs", &vfw
  75 };
  76 
  77 static struct modlinkage modlinkage = {
  78         MODREV_1, (void *)&modlfs, NULL
  79 };
  80 
  81 int
  82 _init(void)
  83 {
  84         return (mod_install(&modlinkage));
  85 }
  86 
  87 int
  88 _info(struct modinfo *modinfop)
  89 {
  90         return (mod_info(&modlinkage, modinfop));
  91 }
  92 
  93 /*
  94  * N.B.
  95  * No _fini routine. This module cannot be unloaded once loaded.
  96  * The NO_UNLOAD_STUB in modstub.s must change if this module ever
  97  * is modified to become unloadable.
  98  */




  58 #include <sys/modctl.h>
  59 
  60 static vfsdef_t vfw = {
  61         VFSDEF_VERSION,
  62         "specfs",
  63         specinit,
  64         VSW_ZMOUNT,
  65         NULL
  66 };
  67 
  68 extern struct mod_ops mod_fsops;
  69 
  70 /*
  71  * Module linkage information for the kernel.
  72  */
  73 static struct modlfs modlfs = {
  74         &mod_fsops, "filesystem for specfs", &vfw
  75 };
  76 
  77 static struct modlinkage modlinkage = {
  78         MODREV_1, { (void *)&modlfs, NULL }
  79 };
  80 
  81 int
  82 _init(void)
  83 {
  84         return (mod_install(&modlinkage));
  85 }
  86 
  87 int
  88 _info(struct modinfo *modinfop)
  89 {
  90         return (mod_info(&modlinkage, modinfop));
  91 }
  92 
  93 /*
  94  * N.B.
  95  * No _fini routine. This module cannot be unloaded once loaded.
  96  * The NO_UNLOAD_STUB in modstub.s must change if this module ever
  97  * is modified to become unloadable.
  98  */