10755 pset: NULL pointer errors

Review Request #1721 — Created April 12, 2019 and submitted

tsoome
illumos-gate
10755
add51a6...
general
In file included from ../../common/sys/param.h:48:0,
                 from ../../common/sys/t_lock.h:38,
                 from ../../common/sys/systm.h:39,
                 from ../../common/syscall/pset.c:26:
../../common/syscall/pset.c: In function 'pset_list':
../../common/sys/null.h:32:14: error: passing argument 2 of 'cpupart_list' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../common/syscall/pset.c:772:33: note: in expansion of macro 'NULL'
   real_npsets = cpupart_list(0, NULL, CP_ALL);
                                 ^~~~
In file included from ../../common/syscall/pset.c:34:0:
../../common/sys/cpupart.h:148:15: note: expected 'uint_t {aka unsigned int}' but argument is of type 'void *'
 extern uint_t cpupart_list(psetid_t *, uint_t, int);
               ^~~~~~~~~~~~
cc1: all warnings being treated as errors


wiedi
  1. Ship It!
  2. 
      
andy_js
  1. Ship It!
  2. 
      
tsoome
tsoome
tsoome
tsoome
Review request changed

Status: Closed (submitted)

Loading...