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


  22  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 
  26 #include <sys/types.h>
  27 #include <sys/systm.h>
  28 #include <sys/modctl.h>
  29 #include <sys/cmn_err.h>
  30 #include <sys/ddi.h>
  31 
  32 extern struct mod_ops mod_cryptoops;
  33 
  34 /*
  35  * Module linkage information for the kernel.
  36  */
  37 static struct modlmisc modlmisc = {
  38         &mod_miscops, "bignum utility module"
  39 };
  40 
  41 static struct modlinkage modlinkage = {
  42         MODREV_1, (void *)&modlmisc, NULL
  43 };
  44 
  45 
  46 int
  47 _init(void)
  48 {
  49         return (mod_install(&modlinkage));
  50 }
  51 
  52 int
  53 _fini(void)
  54 {
  55         return (mod_remove(&modlinkage));
  56 }
  57 
  58 int
  59 _info(struct modinfo *modinfop)
  60 {
  61         return (mod_info(&modlinkage, modinfop));
  62 }


  22  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 
  26 #include <sys/types.h>
  27 #include <sys/systm.h>
  28 #include <sys/modctl.h>
  29 #include <sys/cmn_err.h>
  30 #include <sys/ddi.h>
  31 
  32 extern struct mod_ops mod_cryptoops;
  33 
  34 /*
  35  * Module linkage information for the kernel.
  36  */
  37 static struct modlmisc modlmisc = {
  38         &mod_miscops, "bignum utility module"
  39 };
  40 
  41 static struct modlinkage modlinkage = {
  42         MODREV_1, { (void *)&modlmisc, NULL }
  43 };
  44 
  45 
  46 int
  47 _init(void)
  48 {
  49         return (mod_install(&modlinkage));
  50 }
  51 
  52 int
  53 _fini(void)
  54 {
  55         return (mod_remove(&modlinkage));
  56 }
  57 
  58 int
  59 _info(struct modinfo *modinfop)
  60 {
  61         return (mod_info(&modlinkage, modinfop));
  62 }