Print this page
8626 make pcplusmp and apix warning-free
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/io/pcplusmp/apic_common.c
          +++ new/usr/src/uts/i86pc/io/pcplusmp/apic_common.c
↓ open down ↓ 840 lines elided ↑ open up ↑
 841  841  
 842  842          return ((processorid_t)-1);
 843  843  }
 844  844  
 845  845  int
 846  846  apic_cpu_add(psm_cpu_request_t *reqp)
 847  847  {
 848  848          int i, rv = 0;
 849  849          ulong_t iflag;
 850  850          boolean_t first = B_TRUE;
 851      -        uchar_t localver;
      851 +        uchar_t localver = 0;
 852  852          uint32_t localid, procid;
 853  853          processorid_t cpuid = (processorid_t)-1;
 854  854          mach_cpu_add_arg_t *ap;
 855  855  
 856  856          ASSERT(reqp != NULL);
 857  857          reqp->req.cpu_add.cpuid = (processorid_t)-1;
 858  858  
 859  859          /* Check whether CPU hotplug is supported. */
 860  860          if (!plat_dr_support_cpu() || apic_max_nproc == -1) {
 861  861                  return (ENOTSUP);
↓ open down ↓ 887 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX