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


  28  * Private interfaces for graphics drivers for which there
  29  * are yet no acceptable DDI interfaces.
  30  */
  31 
  32 #include <sys/types.h>
  33 #include <sys/param.h>
  34 #include <sys/sunddi.h>
  35 #include <sys/ddi_subrdefs.h>
  36 #include <sys/bootconf.h>
  37 #include <sys/psw.h>
  38 #include <sys/modctl.h>
  39 #include <sys/errno.h>
  40 #include <sys/reboot.h>
  41 #include "gfx_private.h"
  42 
  43 static struct modlmisc modlmisc = {
  44         &mod_miscops, "gfx private interfaces"
  45 };
  46 
  47 static struct modlinkage modlinkage = {
  48         MODREV_1, (void *)&modlmisc, NULL
  49 };
  50 
  51 int
  52 _init(void)
  53 {
  54         int     err;
  55 
  56         if ((err = mod_install(&modlinkage)) != 0)
  57                 return (err);
  58         return (0);
  59 }
  60 
  61 int
  62 _fini(void)
  63 {
  64         int     err;
  65 
  66         if ((err = mod_remove(&modlinkage)) != 0)
  67                 return (err);
  68 


  28  * Private interfaces for graphics drivers for which there
  29  * are yet no acceptable DDI interfaces.
  30  */
  31 
  32 #include <sys/types.h>
  33 #include <sys/param.h>
  34 #include <sys/sunddi.h>
  35 #include <sys/ddi_subrdefs.h>
  36 #include <sys/bootconf.h>
  37 #include <sys/psw.h>
  38 #include <sys/modctl.h>
  39 #include <sys/errno.h>
  40 #include <sys/reboot.h>
  41 #include "gfx_private.h"
  42 
  43 static struct modlmisc modlmisc = {
  44         &mod_miscops, "gfx private interfaces"
  45 };
  46 
  47 static struct modlinkage modlinkage = {
  48         MODREV_1, { (void *)&modlmisc, NULL }
  49 };
  50 
  51 int
  52 _init(void)
  53 {
  54         int     err;
  55 
  56         if ((err = mod_install(&modlinkage)) != 0)
  57                 return (err);
  58         return (0);
  59 }
  60 
  61 int
  62 _fini(void)
  63 {
  64         int     err;
  65 
  66         if ((err = mod_remove(&modlinkage)) != 0)
  67                 return (err);
  68