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


 113  * Clean up after a failed mod_install()
 114  */
 115 static void
 116 gss_mech_fini()
 117 {
 118         /* Nothing to do */
 119 }
 120 
 121 
 122 /*
 123  * Module linkage information for the kernel.
 124  */
 125 extern struct mod_ops mod_miscops;
 126 
 127 static struct modlmisc modlmisc = {
 128         &mod_miscops, "in-kernel dummy GSS mechanism"
 129 };
 130 
 131 static struct modlinkage modlinkage = {
 132         MODREV_1,
 133         (void *)&modlmisc,
 134         NULL
 135 };
 136 
 137 static int dummy_fini_code = EBUSY;
 138 
 139 int
 140 _init()
 141 {
 142         int retval;
 143         gss_mechanism mech, tmp;
 144 
 145         mech = gss_mech_initialize();
 146 
 147         mutex_enter(&__kgss_mech_lock);
 148         tmp = __kgss_get_mechanism(&mech->mech_type);
 149         if (tmp != NULL) {
 150                 DUMMY_MECH_LOG0(8,
 151                         "dummy GSS mechanism: mechanism already in table.\n");
 152                 if (tmp->uses_kmod == TRUE) {
 153                         DUMMY_MECH_LOG0(8, "dummy GSS mechanism: mechanism "
 154                                 "table supports kernel operations!\n");




 113  * Clean up after a failed mod_install()
 114  */
 115 static void
 116 gss_mech_fini()
 117 {
 118         /* Nothing to do */
 119 }
 120 
 121 
 122 /*
 123  * Module linkage information for the kernel.
 124  */
 125 extern struct mod_ops mod_miscops;
 126 
 127 static struct modlmisc modlmisc = {
 128         &mod_miscops, "in-kernel dummy GSS mechanism"
 129 };
 130 
 131 static struct modlinkage modlinkage = {
 132         MODREV_1,
 133         { (void *)&modlmisc, NULL }

 134 };
 135 
 136 static int dummy_fini_code = EBUSY;
 137 
 138 int
 139 _init()
 140 {
 141         int retval;
 142         gss_mechanism mech, tmp;
 143 
 144         mech = gss_mech_initialize();
 145 
 146         mutex_enter(&__kgss_mech_lock);
 147         tmp = __kgss_get_mechanism(&mech->mech_type);
 148         if (tmp != NULL) {
 149                 DUMMY_MECH_LOG0(8,
 150                         "dummy GSS mechanism: mechanism already in table.\n");
 151                 if (tmp->uses_kmod == TRUE) {
 152                         DUMMY_MECH_LOG0(8, "dummy GSS mechanism: mechanism "
 153                                 "table supports kernel operations!\n");