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


  20  */
  21 /*
  22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 /*
  27  * Data-Link Services Module
  28  */
  29 
  30 #include        <sys/modctl.h>
  31 #include        <sys/dld_impl.h>
  32 
  33 static struct modlmisc          i_dls_modlmisc = {
  34         &mod_miscops,
  35         DLS_INFO
  36 };
  37 
  38 static struct modlinkage        i_dls_modlinkage = {
  39         MODREV_1,
  40         &i_dls_modlmisc,
  41         NULL
  42 };
  43 
  44 /*
  45  * Module initialization functions.
  46  */
  47 
  48 static void
  49 i_dls_mod_init(void)
  50 {
  51         dls_link_init();
  52         dls_mgmt_init();
  53 }
  54 
  55 static int
  56 i_dls_mod_fini(void)
  57 {
  58         int     err;
  59 
  60         if ((err = dls_link_fini()) != 0)
  61                 return (err);




  20  */
  21 /*
  22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 /*
  27  * Data-Link Services Module
  28  */
  29 
  30 #include        <sys/modctl.h>
  31 #include        <sys/dld_impl.h>
  32 
  33 static struct modlmisc          i_dls_modlmisc = {
  34         &mod_miscops,
  35         DLS_INFO
  36 };
  37 
  38 static struct modlinkage        i_dls_modlinkage = {
  39         MODREV_1,
  40         { &i_dls_modlmisc, NULL }

  41 };
  42 
  43 /*
  44  * Module initialization functions.
  45  */
  46 
  47 static void
  48 i_dls_mod_init(void)
  49 {
  50         dls_link_init();
  51         dls_mgmt_init();
  52 }
  53 
  54 static int
  55 i_dls_mod_fini(void)
  56 {
  57         int     err;
  58 
  59         if ((err = dls_link_fini()) != 0)
  60                 return (err);