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


  89         nodev,          /* awrite */
  90 };
  91 
  92 static struct dev_ops bpf_ops = {
  93         DEVO_REV,
  94         0,
  95         bpf_getinfo,
  96         nulldev,
  97         nulldev,
  98         bpf_attach,
  99         bpf_detach,
 100         nodev,          /* reset */
 101         &bpf_cb_ops,
 102         (struct bus_ops *)0
 103 };
 104 
 105 extern struct mod_ops mod_driverops;
 106 static struct modldrv bpfmod = {
 107         &mod_driverops, "Berkely Packet Filter", &bpf_ops
 108 };
 109 static struct modlinkage modlink1 = { MODREV_1, &bpfmod, NULL };
 110 
 111 static dev_info_t *bpf_dev_info = NULL;
 112 static net_instance_t *bpf_inst = NULL;
 113 
 114 int
 115 _init()
 116 {
 117         int bpfinst;
 118 
 119         bpfinst = mod_install(&modlink1);
 120         return (bpfinst);
 121 }
 122 
 123 int
 124 _fini(void)
 125 {
 126         int bpfinst;
 127 
 128         bpfinst = mod_remove(&modlink1);
 129         return (bpfinst);




  89         nodev,          /* awrite */
  90 };
  91 
  92 static struct dev_ops bpf_ops = {
  93         DEVO_REV,
  94         0,
  95         bpf_getinfo,
  96         nulldev,
  97         nulldev,
  98         bpf_attach,
  99         bpf_detach,
 100         nodev,          /* reset */
 101         &bpf_cb_ops,
 102         (struct bus_ops *)0
 103 };
 104 
 105 extern struct mod_ops mod_driverops;
 106 static struct modldrv bpfmod = {
 107         &mod_driverops, "Berkely Packet Filter", &bpf_ops
 108 };
 109 static struct modlinkage modlink1 = { MODREV_1, { &bpfmod, NULL } };
 110 
 111 static dev_info_t *bpf_dev_info = NULL;
 112 static net_instance_t *bpf_inst = NULL;
 113 
 114 int
 115 _init()
 116 {
 117         int bpfinst;
 118 
 119         bpfinst = mod_install(&modlink1);
 120         return (bpfinst);
 121 }
 122 
 123 int
 124 _fini(void)
 125 {
 126         int bpfinst;
 127 
 128         bpfinst = mod_remove(&modlink1);
 129         return (bpfinst);