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


  79 #define DBG2(_f, _a, _b) \
  80         if (strplumbdebug != 0) \
  81                 printf("strplumb: " _f, (_a), (_b))
  82 
  83 #define DBG3(_f, _a, _b, _c) \
  84         if (strplumbdebug != 0) \
  85                 printf("strplumb: " _f, (_a), (_b), (_c))
  86 
  87 /*
  88  * Module linkage information for the kernel.
  89  */
  90 #define STRPLUMB_IDENT  "STREAMS Plumbing Module"
  91 
  92 static struct modlmisc modlmisc = {
  93         &mod_miscops,
  94         STRPLUMB_IDENT
  95 };
  96 
  97 static struct modlinkage modlinkage = {
  98         MODREV_1,
  99         &modlmisc,
 100         NULL
 101 };
 102 
 103 int
 104 _init(void)
 105 {
 106         return (mod_install(&modlinkage));
 107 }
 108 
 109 int
 110 _fini(void)
 111 {
 112         return (mod_remove(&modlinkage));
 113 }
 114 
 115 int
 116 _info(struct modinfo *modinfop)
 117 {
 118         return (mod_info(&modlinkage, modinfop));
 119 }
 120 




  79 #define DBG2(_f, _a, _b) \
  80         if (strplumbdebug != 0) \
  81                 printf("strplumb: " _f, (_a), (_b))
  82 
  83 #define DBG3(_f, _a, _b, _c) \
  84         if (strplumbdebug != 0) \
  85                 printf("strplumb: " _f, (_a), (_b), (_c))
  86 
  87 /*
  88  * Module linkage information for the kernel.
  89  */
  90 #define STRPLUMB_IDENT  "STREAMS Plumbing Module"
  91 
  92 static struct modlmisc modlmisc = {
  93         &mod_miscops,
  94         STRPLUMB_IDENT
  95 };
  96 
  97 static struct modlinkage modlinkage = {
  98         MODREV_1,
  99         { &modlmisc, NULL }

 100 };
 101 
 102 int
 103 _init(void)
 104 {
 105         return (mod_install(&modlinkage));
 106 }
 107 
 108 int
 109 _fini(void)
 110 {
 111         return (mod_remove(&modlinkage));
 112 }
 113 
 114 int
 115 _info(struct modinfo *modinfop)
 116 {
 117         return (mod_info(&modlinkage, modinfop));
 118 }
 119