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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/disp/rt.c
          +++ new/usr/src/uts/common/disp/rt.c
↓ open down ↓ 61 lines elided ↑ open up ↑
  62   62          "RT",
  63   63          rt_init,
  64   64          0
  65   65  };
  66   66  
  67   67  static struct modlsched modlsched = {
  68   68          &mod_schedops, "realtime scheduling class", &csw
  69   69  };
  70   70  
  71   71  static struct modlinkage modlinkage = {
  72      -        MODREV_1, (void *)&modlsched, NULL
       72 +        MODREV_1, { (void *)&modlsched, NULL }
  73   73  };
  74   74  
  75   75  int
  76   76  _init()
  77   77  {
  78   78          return (mod_install(&modlinkage));
  79   79  }
  80   80  
  81   81  int
  82   82  _fini()
↓ open down ↓ 59 lines elided ↑ open up ↑
 142  142  
 143  143  static id_t     rt_cid;         /* real-time class ID */
 144  144  static rtproc_t rt_plisthead;   /* dummy rtproc at head of rtproc list */
 145  145  static kmutex_t rt_dptblock;    /* protects realtime dispatch table */
 146  146  static kmutex_t rt_list_lock;   /* protects RT thread list */
 147  147  
 148  148  extern rtdpent_t *rt_getdptbl(void);
 149  149  
 150  150  static struct classfuncs rt_classfuncs = {
 151  151          /* class ops */
 152      -        rt_admin,
 153      -        rt_getclinfo,
 154      -        rt_parmsin,
 155      -        rt_parmsout,
 156      -        rt_vaparmsin,
 157      -        rt_vaparmsout,
 158      -        rt_getclpri,
 159      -        rt_alloc,
 160      -        rt_free,
      152 +        {   rt_admin,
      153 +            rt_getclinfo,
      154 +            rt_parmsin,
      155 +            rt_parmsout,
      156 +            rt_vaparmsin,
      157 +            rt_vaparmsout,
      158 +            rt_getclpri,
      159 +            rt_alloc,
      160 +            rt_free },
 161  161          /* thread ops */
 162      -        rt_enterclass,
 163      -        rt_exitclass,
 164      -        rt_canexit,
 165      -        rt_fork,
 166      -        rt_forkret,
 167      -        rt_parmsget,
 168      -        rt_parmsset,
 169      -        rt_nullsys,     /* stop */
 170      -        rt_nullsys,     /* exit */
 171      -        rt_nullsys,     /* active */
 172      -        rt_nullsys,     /* inactive */
 173      -        rt_swapin,
 174      -        rt_swapout,
 175      -        rt_nullsys,     /* trapret */
 176      -        rt_preempt,
 177      -        rt_setrun,
 178      -        rt_nullsys,     /* sleep */
 179      -        rt_tick,
 180      -        rt_wakeup,
 181      -        rt_donice,
 182      -        rt_globpri,
 183      -        rt_nullsys,     /* set_process_group */
 184      -        rt_yield,
 185      -        rt_doprio,
      162 +        {   rt_enterclass,
      163 +            rt_exitclass,
      164 +            rt_canexit,
      165 +            rt_fork,
      166 +            rt_forkret,
      167 +            rt_parmsget,
      168 +            rt_parmsset,
      169 +            rt_nullsys, /* stop */
      170 +            rt_nullsys, /* exit */
      171 +            rt_nullsys, /* active */
      172 +            rt_nullsys, /* inactive */
      173 +            rt_swapin,
      174 +            rt_swapout,
      175 +            rt_nullsys, /* trapret */
      176 +            rt_preempt,
      177 +            rt_setrun,
      178 +            rt_nullsys, /* sleep */
      179 +            rt_tick,
      180 +            rt_wakeup,
      181 +            rt_donice,
      182 +            rt_globpri,
      183 +            rt_nullsys, /* set_process_group */
      184 +            rt_yield,
      185 +            rt_doprio },
 186  186  };
 187  187  
 188  188  /*
 189  189   * Real-time class initialization. Called by dispinit() at boot time.
 190  190   * We can ignore the clparmsz argument since we know that the smallest
 191  191   * possible parameter buffer is big enough for us.
 192  192   */
 193  193  /* ARGSUSED */
 194  194  pri_t
 195  195  rt_init(id_t cid, int clparmsz, classfuncs_t **clfuncspp)
↓ open down ↓ 937 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX