10306 mdb: NULL pointer errors

Review Request #1399 - Created Jan. 27, 2019 and submitted

Information
Toomas Soome
illumos-gate
10306
b6ed5cb...
Reviewers
general
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_is
o.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:
462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.
h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h
:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/strings.h:3
2,
                 from ../../../common/kmdb/kmdb_terminfo_skel.c:37:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompat
ible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic ansi data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompat
ible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic at386 data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompat
ible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic dtterm data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompat
ible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic h19 data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompat
ible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic sun data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic sun-cmd data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic sun-color data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic vt100 data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic vt52 data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic wyse30 data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic wyse50 data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic wyse60 data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic xterm data from tigen:38:10: note: in expansion of macro 'NULL'
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
dynamic xterms data from tigen:38:10: note: in expansion of macro 'NULL'
../../../common/kmdb/kmdb_promif.c: In function 'kmdb_prom_getchar':
../../../common/kmdb/kmdb_promif.c:75:22: error: comparison between pointer and
integer [-Werror]
  if (!wait && ischar != NULL && !kmdb_dpi_call(ischar, 1, &arg))
                      ^~

../../../common/kmdb/kmdb_kvm.c: In function 'kmt_mapping_iter':
../../../common/kmdb/kmdb_kvm.c:1158:30: error: comparison between pointer and i
nteger [-Werror]
  if ((kas = kmt_read_kas(t)) == NULL)
                              ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_is
o.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:
462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.
h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h
:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/modctl.
h:32,
                 from ../../../common/kmdb/kmdb_kvm.h:36,
                 from ../../../common/kmdb/kmdb_kvm.c:28:
../../../common/kmdb/kmdb_kvm.c: In function 'kmt_brkpt_info':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initiali
zation makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/kmdb/kmdb_kvm.c:1699:19: note: in expansion of macro 'NULL'
  uintptr_t addr = NULL;
                   ^~~~
../../../common/kmdb/kmdb_kvm.c: In function 'kmt_add_sbrkpt':
../../../common/kmdb/kmdb_kvm.c:2230:14: error: assignment makes integer from po
inter without a cast [-Werror=int-conversion]
  ka->ka_addr = NULL;
              ^

../../kmdb/kaif.c: In function 'kaif_toxic_text':
../../kmdb/kaif.c:271:28: error: comparison between pointer and integer [-Werror
]
  if (toxic_syms[0].st_name == NULL) {
                            ^~
../../kmdb/kaif.c: In function 'kaif_dump_crumbs':
../../kmdb/kaif.c:696:11: error: comparison between pointer and integer [-Werror
]
  if (addr != NULL) {
           ^~
../xpv_psm.c: In function 'print_bus':
../xpv_psm.c:284:15: error: comparison between pointer and integer [-Werror]
  if (dip_addr == NULL)
               ^~

../xpv.c: In function 'domain_walk_init':
../xpv.c:100:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../xpv.c:101:42: error: comparison between pointer and integer [-Werror]
   if ((wsp->walk_addr = get_dom0_addr()) == NULL)
                                          ^~
../xpv.c: In function 'domain_walk_step':
../xpv.c:117:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../xpv.c: In function 'vcpu_walk_init':
../xpv.c:151:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../xpv.c:152:42: error: comparison between pointer and integer [-Werror]
   if ((wsp->walk_addr = get_dom0_addr()) == NULL)
                                          ^~
../xpv.c: In function 'vcpu_walk_step':
../xpv.c:177:22: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr == NULL) ||
                      ^~

../i86mmu.c: In function 'memseg_walk_init':
../i86mmu.c:115:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../i86mmu.c: In function 'init_mmu':
../i86mmu.c:203:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   mfn_list_addr = NULL;
                 ^
../i86mmu.c:206:25: error: comparison between pointer and integer [-Werror]
  is_xpv = mfn_list_addr != NULL;
                         ^~

../unix.c: In function 'ttrace_walk_init':
../unix.c:93:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../unix.c:116:22: error: comparison between pointer and integer [-Werror]
   if (ttc->ttc_first == NULL)
                      ^~
../unix.c: In function 'ttrace_walk_step':
../unix.c:147:24: error: comparison between pointer and integer [-Werror]
   if (ttc->ttc_current == NULL)
                        ^~
../unix.c:177:20: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   ttc->ttc_current = NULL;
                    ^
../unix.c: In function 'mutex_owner_step':
../unix.c:617:45: error: comparison between pointer and integer [-Werror]
  if ((owner = (uintptr_t)MUTEX_OWNER(&mtx)) == NULL)
                                             ^~
../xhci.c: In function 'xhci_mdb_walk_xhci_endpoint_step':
../xhci.c:588:11: error: comparison between pointer and integer [-Werror]
  if (addr != NULL) {
           ^~
../sata.c: In function 'sata_dmsg_walk_i':
../sata.c:56:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../sata.c: In function 'sata_dmsg_walk_s':
../sata.c:90:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../sata.c:110:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   wsp->walk_addr = NULL;
                  ^
../sata.c: In function 'sata_rbuf_dump':
../sata.c:227:12: error: comparison between pointer and integer [-Werror]
  if ((addr == NULL) || !(flags & DCMD_ADDRSPEC)) {
            ^~

../gcpu.c: In function 'cmih_walk_init':
../gcpu.c:163:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../gcpu.c:217:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  wsp->walk_addr = NULL;
                 ^
In file included from ../../../../common/mdb/mdb_modapi.h:40:0,
                 from ../gcpu.c:26:
../gcpu.c: In function 'cmih_walk_step':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../gcpu.c:228:19: note: in expansion of macro 'NULL'
  uintptr_t addr = NULL;
                   ^~~~
../gcpu.c:235:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL || addr == NULL)
                     ^~
../gcpu.c:235:37: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL || addr == NULL)
                                     ^~
../gcpu.c: In function 'cmihdl':
../gcpu.c:496:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   cb.mod_hdladdr = NULL;
                  ^
../gcpu.c:502:22: error: comparison between pointer and integer [-Werror]
   if (cb.mod_hdladdr == NULL) {
                      ^~
../gcpu.c: In function 'gcpu_mptwalk_init':
../gcpu.c:605:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../mdb_kb.c: In function 'xkb_walk_syms':
../mdb_kb.c:922:15: error: comparison between pointer and integer [-Werror]
   if (modulep == NULL)
               ^~

../../../common/modules/uhci/uhci.c: In function 'uhci_td':
../../../common/modules/uhci/uhci.c:234:53: error: comparison between pointer and integer [-Werror]
  if (!(td.link_ptr & HC_END_OF_LIST) && td.link_ptr != NULL) {
                                                     ^~
../../../common/modules/uhci/uhci.c:261:18: error: comparison between pointer and integer [-Werror]
  if (td.link_ptr == NULL)  {
                  ^~
../../../common/modules/uhci/uhci.c: In function 'uhci_qh':
../../../common/modules/uhci/uhci.c:346:53: error: comparison between pointer and integer [-Werror]
  if (!(qh.link_ptr & HC_END_OF_LIST) && qh.link_ptr != NULL) {
                                                     ^~
../../../common/modules/uhci/uhci.c:358:59: error: comparison between pointer and integer [-Werror]
  if (!(qh.element_ptr & HC_END_OF_LIST) && qh.element_ptr != NULL) {
                                                           ^~
../../../common/modules/uhci/uhci.c:378:18: error: comparison between pointer and integer [-Werror]
  if (qh.link_ptr == NULL)  {
                  ^~
../../../common/modules/uhci/uhci.c:401:21: error: comparison between pointer and integer [-Werror]
  if (qh.element_ptr == NULL)  {
                     ^~
../../../common/modules/uhci/uhci.c: In function 'uhci_td_walk_init':
../../../common/modules/uhci/uhci.c:452:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)  {
                     ^~
../../../common/modules/uhci/uhci.c: In function 'uhci_td_walk_step':
../../../common/modules/uhci/uhci.c:498:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL || wsp->walk_addr & HC_END_OF_LIST)
                     ^~
../../../common/modules/uhci/uhci.c:510:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/uhci/uhci.c: In function 'uhci_qh_walk_init':
../../../common/modules/uhci/uhci.c:531:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/uhci/uhci.c: In function 'uhci_qh_walk_step':
../../../common/modules/uhci/uhci.c:563:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) /* Should never occur */
                     ^~
../../../common/modules/uhci/uhci.c:580:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL || wsp->walk_addr & HC_END_OF_LIST)  {
                     ^~
../../../common/modules/uhci/uhci.c:593:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/srpt/srpt.c: In function 'srpt_list_walk_step':
../../../common/modules/srpt/srpt.c:79:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/srpt/srpt.c: In function 'srpt_tgt_walk_init':
../../../common/modules/srpt/srpt.c:99:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/srpt/srpt.c: In function 'srpt_tgt_walk_step':
../../../common/modules/srpt/srpt.c:117:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/srpt/srpt.c: In function 'srpt_channel_walk_init':
../../../common/modules/srpt/srpt.c:146:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/srpt/srpt.c: In function 'srpt_scsi_session_walk_init':
../../../common/modules/srpt/srpt.c:171:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/srpt/srpt.c: In function 'srpt_task_walk_init':
../../../common/modules/srpt/srpt.c:192:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/srpt/srpt.c: In function 'srpt_print_ioc':
../../../common/modules/srpt/srpt.c:214:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~

../../../common/modules/sctp/sctp.c: In function 'sctp_istr_msgs':
../../../common/modules/sctp/sctp.c:422:18: error: comparison between pointer and integer [-Werror]
   } while (daddr != NULL);
                  ^~
../../../common/modules/sctp/sctp.c:425:16: error: comparison between pointer and integer [-Werror]
  } while (addr != NULL);
                ^~
../../../common/modules/sctp/sctp.c: In function 'sctp_reass_list':
../../../common/modules/sctp/sctp.c:478:18: error: comparison between pointer and integer [-Werror]
   } while (daddr != NULL);
                  ^~
../../../common/modules/sctp/sctp.c:481:16: error: comparison between pointer and integer [-Werror]
  } while (addr != NULL);
                ^~
../../../common/modules/sctp/sctp.c: In function 'sctp_uo_reass_list':
../../../common/modules/sctp/sctp.c:520:16: error: comparison between pointer and integer [-Werror]
  } while (addr != NULL);
                ^~
../../../common/modules/sctp/sctp.c: In function 'find_next_hash_item':
../../../common/modules/sctp/sctp.c:1058:15: error: comparison between pointer and integer [-Werror]
  if (fw->sctp != NULL) {
               ^~
../../../common/modules/sctp/sctp.c:1062:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/sctp/sctp.c:1065:16: error: comparison between pointer and integer [-Werror]
   if (fw->sctp != NULL)
                ^~
../../../common/modules/sctp/sctp.c:1079:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/sctp/sctp.c:1087:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../../common/modules/sctp/sctp.c: In function 'fanout_stack_walk_init':
../../../common/modules/sctp/sctp.c:1108:11: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  lw->sctp = NULL;
           ^
../../../common/modules/sctp/sctp.c:1112:49: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = find_next_hash_item(lw)) == NULL) {
                                                 ^~
../../../common/modules/sctp/sctp.c: In function 'fanout_stack_walk_step':
../../../common/modules/sctp/sctp.c:1136:49: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = find_next_hash_item(fw)) == NULL)
                                                 ^~
../../../common/modules/sctp/sctp.c: In function 'sctp_walk_faddr_init':
../../../common/modules/sctp/sctp.c:1206:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/sctp/sctp.c:1213:53: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = (uintptr_t)sctp.sctp_faddrs) != NULL)
                                                     ^~
../../../common/modules/sctp/sctp.c: In function 'sctp_walk_faddr_step':
../../../common/modules/sctp/sctp.c:1233:50: error: comparison between pointer and integer [-Werror]
  if ((faddr_ptr = (uintptr_t)sctp_faddr.sf_next) == NULL) {
                                                  ^~
../../../common/modules/sctp/sctp.c: In function 'sctp_walk_saddr_init':
../../../common/modules/sctp/sctp.c:1259:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/sctp/sctp.c: In function 'sctp_stack_ill_walk_init':
../../../common/modules/sctp/sctp.c:1405:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/sctp/sctp.c: In function 'sctp_stack_ipif_walk_init':
../../../common/modules/sctp/sctp.c:1477:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/sctp/sctp.c: In function 'sctps_sc_walk_init':
../../../common/modules/sctp/sctp.c:1512:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/stmf/stmf.c: In function 'stmf_ilport_walk_i':
../../../common/modules/stmf/stmf.c:45:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/stmf/stmf.c: In function 'stmf_ilport_walk_s':
../../../common/modules/stmf/stmf.c:65:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/stmf/stmf.c: In function 'next_stmf_port':
../../../common/modules/stmf/stmf.c:170:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/stmf/stmf.c:175:22: error: comparison between pointer and integer [-Werror]
   if (wsp->walk_addr == NULL)
                      ^~
../../../common/modules/stmf/stmf.c:184:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/stmf/stmf.c: In function 'stmf_iss':
../../../common/modules/stmf/stmf.c:212:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/stmf/stmf.c: In function 'fct_irp_walk_i':
../../../common/modules/stmf/stmf.c:564:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/stmf/stmf.c: In function 'fct_irp_walk_s':
../../../common/modules/stmf/stmf.c:598:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/stmf/stmf.c: In function 'fct_irp_walk_f':
../../../common/modules/stmf/stmf.c:624:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  wsp->walk_addr = NULL;
                 ^
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/mdb_modapi.h:40:0,
                 from ../../../common/modules/stmf/stmf.c:27:
../../../common/modules/stmf/stmf.c: At top level:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/stmf/stmf.c:691:43: note: in expansion of macro 'NULL'
 static uintptr_t cur_iport_for_irp_loop = NULL;
                                           ^~~~
../../../common/modules/stmf/stmf.c: In function 'next_rport':
../../../common/modules/stmf/stmf.c:701:19: error: comparison between pointer and integer [-Werror]
  if (ws.walk_addr == NULL || cur_iport_for_irp_loop !=
                   ^~
../../../common/modules/stmf/stmf.c:710:20: error: comparison between pointer and integer [-Werror]
   if (ws.walk_addr == NULL) {
                    ^~
../../../common/modules/stmf/stmf.c: In function 'find_irp_by_wwn':
../../../common/modules/stmf/stmf.c:808:25: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  cur_iport_for_irp_loop = NULL;
                         ^
../../../common/modules/stmf/stmf.c: In function 'stmf_scsi_task_walk_init':
../../../common/modules/stmf/stmf.c:1145:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/stmf/stmf.c: In function 'stmf_scsi_task_walk_step':
../../../common/modules/stmf/stmf.c:1168:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/stmf/stmf.c: In function 'stmf_worker_walk_step':
../../../common/modules/stmf/stmf.c:1332:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/mdb_modapi.h:40:0,
                 from ../../../common/modules/qlc/qlc.c:39:
../../../common/modules/qlc/qlc.c: In function 'qlclinks_dcmd':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/qlc/qlc.c:262:22: note: in expansion of macro 'NULL'
  uintptr_t  hbaptr = NULL;
                      ^~~~
../../../common/modules/qlc/qlc.c:291:16: error: comparison between pointer and integer [-Werror]
  while (hbaptr != NULL) {
                ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/mdb_modapi.h:40:0,
                 from ../../../common/modules/qlc/qlc.c:39:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/qlc/qlc.c:312:25: note: in expansion of macro 'NULL'
    uintptr_t  vhbaptr = NULL;
                         ^~~~
../../../common/modules/qlc/qlc.c:328:19: error: comparison between pointer and integer [-Werror]
    while (vhbaptr != NULL) {
                   ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/mdb_modapi.h:40:0,
                 from ../../../common/modules/qlc/qlc.c:39:
../../../common/modules/qlc/qlc.c: In function 'qlcver_dcmd':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/qlc/qlc.c:418:23: note: in expansion of macro 'NULL'
   uintptr_t  hbaptr = NULL;
                       ^~~~
../../../common/modules/qlc/qlc.c:450:12: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     hbaptr = NULL;
            ^
../../../common/modules/qlc/qlc.c:456:18: error: comparison between pointer and integer [-Werror]
    while (hbaptr != NULL) {
                  ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/mdb_modapi.h:40:0,
                 from ../../../common/modules/qlc/qlc.c:39:
../../../common/modules/qlc/qlc.c: In function 'qlc_el_dcmd':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/qlc/qlc.c:528:22: note: in expansion of macro 'NULL'
  uintptr_t  hbaptr = NULL;
                      ^~~~
../../../common/modules/qlc/qlc.c:593:17: error: comparison between pointer and integer [-Werror]
   while (hbaptr != NULL) {
                 ^~
../../../common/modules/qlc/qlc.c:614:18: error: comparison between pointer and integer [-Werror]
    while (hbaptr != NULL) {
                  ^~
../../../common/modules/qlc/qlc.c:630:15: error: comparison between pointer and integer [-Werror]
    if (hbaptr == NULL) {
               ^~
../../../common/modules/qlc/qlc.c: In function 'qlstates_walk_init':
../../../common/modules/qlc/qlc.c:1157:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/qlc/qlc.c: In function 'qlstates_walk_step':
../../../common/modules/qlc/qlc.c:1192:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/qlc/qlc.c: In function 'qlsrb_walk_init':
../../../common/modules/qlc/qlc.c:1262:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/qlc/qlc.c: In function 'qlsrb_walk_step':
../../../common/modules/qlc/qlc.c:1292:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/qlc/qlc.c: In function 'qllunq_walk_init':
../../../common/modules/qlc/qlc.c:1354:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/qlc/qlc.c: In function 'qllunq_walk_step':
../../../common/modules/qlc/qlc.c:1386:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/qlc/qlc.c: In function 'qltgtq_dcmd':
../../../common/modules/qlc/qlc.c:1475:41: error: comparison between pointer and integer [-Werror]
  if ((!(flags & DCMD_ADDRSPEC)) || addr == NULL) {
                                         ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/mdb_modapi.h:40:0,
                 from ../../../common/modules/qlc/qlc.c:39:
../../../common/modules/qlc/qlc.c: In function 'qlc_getdump_dcmd':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/qlc/qlc.c:1736:22: note: in expansion of macro 'NULL'
  uintptr_t  hbaptr = NULL;
                      ^~~~
../../../common/modules/qlc/qlc.c:1739:41: error: comparison between pointer and integer [-Werror]
  if ((!(flags & DCMD_ADDRSPEC)) || addr == NULL) {
                                         ^~
../../../common/modules/qlc/qlc.c:1768:17: error: comparison between pointer and integer [-Werror]
   while (hbaptr != NULL) {
                 ^~
../../../common/modules/qlc/qlc.c: In function 'qlc_gettrace_dcmd':
../../../common/modules/qlc/qlc.c:3191:41: error: comparison between pointer and integer [-Werror]
  if ((!(flags & DCMD_ADDRSPEC)) || addr == NULL) {
                                         ^~
../../../common/modules/qlc/qlc.c:3273:25: error: comparison between pointer and integer [-Werror]
  } else if (*trace_next != NULL) {
                         ^~
../../../common/modules/qlc/qlc.c:3303:28: error: comparison between pointer and integer [-Werror]
   } else if (*dump_current == NULL) {
                            ^~

../../../common/modules/sppp/sppp.c: In function 'sppp_walk_step':
../../../common/modules/sppp/sppp.c:67:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/sppp/sppp.c: In function 'sps_format':
../../../common/modules/sppp/sppp.c:113:17: error: comparison between pointer and integer [-Werror]
   while (upaddr != NULL) {
                 ^~
../../../common/modules/sppp/sppp.c: In function 'sppa_walk_step':
../../../common/modules/sppp/sppp.c:222:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/sppp/sppp.c: In function 'sppp_rnext':
../../../common/modules/sppp/sppp.c:297:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../../common/modules/sppp/sppp.c: In function 'sppp_wnext':
../../../common/modules/sppp/sppp.c:307:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/sppp/sppp.c:314:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../../common/modules/sppp/sppp.c: In function 'tuncl_walk_step':
../../../common/modules/sppp/sppp.c:390:36: error: comparison between pointer and integer [-Werror]
  if (wsp == NULL || wsp->walk_addr == NULL)
                                    ^~
../../../common/modules/sppp/sppp.c: In function 'sppptun_rnext':
../../../common/modules/sppp/sppp.c:630:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/sppp/sppp.c: In function 'sppptun_wnext':
../../../common/modules/sppp/sppp.c:646:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/sppp/sppp.c:650:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/sppp/sppp.c:653:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^

../../../common/modules/genunix/mdi.c: In function 'mdi_pi_client_link_walk_init':
../../../common/modules/genunix/mdi.c:309:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/mdi.c: In function 'mdi_pi_client_link_walk_step':
../../../common/modules/genunix/mdi.c:329:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/mdi.c: In function 'mdi_pi_phci_link_walk_init':
../../../common/modules/genunix/mdi.c:379:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/mdi.c: In function 'mdi_pi_phci_link_walk_step':
../../../common/modules/genunix/mdi.c:398:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/mdi.c: In function 'mdi_phci_ph_next_walk_init':
../../../common/modules/genunix/mdi.c:446:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/mdi.c: In function 'mdi_phci_ph_next_walk_step':
../../../common/modules/genunix/mdi.c:465:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/genunix/typegraph.c: In function 'typegraph_couldbe':
../../../common/modules/genunix/typegraph.c:907:10: error: comparison between pointer and integer [-Werror]
  if (val == NULL || rsize == 0)
          ^~
../../../common/modules/genunix/typegraph.c: In function 'typegraph_build_anchored':
../../../common/modules/genunix/typegraph.c:1212:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL || size < sizeof (uintptr_t))
           ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/genunix/typegraph.c:180:
../../../common/modules/genunix/typegraph.c: In function 'findlocks_findmutex':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/typegraph.c:2935:21: note: in expansion of macro 'NULL'
   uintptr_t owner = NULL;
                     ^~~~
../../../common/modules/genunix/typegraph.c:2946:13: error: comparison between pointer and integer [-Werror]
   if (owner == NULL || (node = typegraph_search(owner)) == NULL)
             ^~
../../../common/modules/genunix/typegraph.c:2960:21: error: comparison between pointer and integer [-Werror]
   if (fl->fl_thread != NULL && owner != fl->fl_thread)
                     ^~
../../../common/modules/genunix/typegraph.c: In function 'findlocks':
../../../common/modules/genunix/typegraph.c:3142:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~

../../../common/modules/stmf_sbd/stmf_sbd.c: In function 'stmf_sbd_lu_walk_init':
../../../common/modules/stmf_sbd/stmf_sbd.c:260:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/stmf_sbd/stmf_sbd.c: In function 'stmf_sbd_lu_walk_step':
../../../common/modules/stmf_sbd/stmf_sbd.c:275:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/stmf_sbd/stmf_sbd.c: In function 'stmf_sbd_pgr_key_walk_init':
../../../common/modules/stmf_sbd/stmf_sbd.c:329:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/stmf_sbd/stmf_sbd.c: In function 'stmf_sbd_pgr_key_walk_step':
../../../common/modules/stmf_sbd/stmf_sbd.c:342:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/stmf_sbd/stmf_sbd.c: In function 'stmf_sbd_it_walk_init':
../../../common/modules/stmf_sbd/stmf_sbd.c:386:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/stmf_sbd/stmf_sbd.c: In function 'stmf_sbd_it_walk_step':
../../../common/modules/stmf_sbd/stmf_sbd.c:399:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/ufs/ufs.c: In function 'inode_walk_init':
../../../common/modules/ufs/ufs.c:53:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/ufs/ufs.c: In function 'acl_walk_init':
../../../common/modules/ufs/ufs.c:345:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/ufs/ufs.c: In function 'acl_walk_step':
../../../common/modules/ufs/ufs.c:385:14: error: comparison between pointer and integer [-Werror]
  while (addr == NULL) {
              ^~

../../../common/modules/ufs/ufs_log.c: In function 'ufslogmap_walk_init':
../../../common/modules/ufs/ufs_log.c:53:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/usba/usb.c: In function 'find_dip':
../../../common/modules/usba/usb.c:103:57: error: comparison between pointer and integer [-Werror]
  if ((cur_usb_dev = mdb_usba_get_usba_device(dip_addr)) == NULL) {
                                                         ^~
../../../common/modules/usba/usb.c: In function 'usba_list_walk_init':
../../../common/modules/usba/usb.c:187:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/usba/usb.c: In function 'usba_list_walk_step':
../../../common/modules/usba/usb.c:220:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/usba/usb.c: In function 'usb_pipe_handle_walk_init':
../../../common/modules/usba/usb.c:242:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/usba/usb.c: In function 'usba_device_walk_init':
../../../common/modules/usba/usb.c:408:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stddef_iso.h:53:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/stddef.h:35,
                 from ../../../common/modules/usba/usb.c:28:
../../../common/modules/usba/usb.c: In function 'usba_device':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/usba/usb.c:508:22: note: in expansion of macro 'NULL'
  uint_t  usb_flag  = NULL;
                      ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/usba/usb.c:580:22: note: in expansion of macro 'NULL'
   uintptr_t statep = NULL;
                      ^~~~
../../../common/modules/usba/usb.c: In function 'usba_debug_buf':
../../../common/modules/usba/usb.c:789:30: error: comparison between pointer and integer [-Werror]
  if (strlen(local_debug_buf) == NULL) {
                              ^~

../../../common/modules/usba/usba.c: In function 'mdb_usba_is_root_hub':
../../../common/modules/usba/usba.c:51:11: error: comparison between pointer and integer [-Werror]
  while (p != NULL) {
           ^~
../../../common/modules/usba/usba.c: In function 'mdb_usba_get_usba_device':
../../../common/modules/usba/usba.c:101:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/usba/usba.c:117:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/usba/usba.c:125:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/usba/usba.c:137:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^

../../../common/modules/sd/sd.c: In function 'buf_avforw_walk_init':
../../../common/modules/sd/sd.c:98:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/sd/sd.c: In function 'buf_avforw_walk_step':
../../../common/modules/sd/sd.c:130:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/sd/sd.c: In function 'sd_state_walk_init':
../../../common/modules/sd/sd.c:311:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/sd/sd.c: In function 'process_semo_sleepq':
../../../common/modules/sd/sd.c:461:14: error: comparison between pointer and integer [-Werror]
  if (rootBuf == NULL) {
              ^~
../../../common/modules/sd/sd.c: In function 'process_sdlun_waitq':
../../../common/modules/sd/sd.c:519:14: error: comparison between pointer and integer [-Werror]
  if (rootBuf == NULL) {
              ^~
../../../common/modules/sd/sd.c: In function 'process_xbuf':
../../../common/modules/sd/sd.c:546:16: error: comparison between pointer and integer [-Werror]
  if (xbuf_attr == NULL) {
                ^~

../../../common/modules/nsmb/nsmb.c: In function 'smb_co_walk_init':
../../../common/modules/nsmb/nsmb.c:88:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/nsmb/nsmb.c: In function 'smb_vc_walk_init':
../../../common/modules/nsmb/nsmb.c:143:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/nsmb/nsmb.c: In function 'smb_co_walk_step':
../../../common/modules/nsmb/nsmb.c:186:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/nsmb/nsmb.c: In function 'rqlist_walk_step':
../../../common/modules/nsmb/nsmb.c:393:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/nsmb/nsmb.c: In function 'pwtree_walk_init':
../../../common/modules/nsmb/nsmb.c:469:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~

../../../common/modules/genunix/tsd.c: In function 'tsd_walk_init':
../../../common/modules/genunix/tsd.c:40:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/genunix/tsd.c: In function 'tsd_walk_step':
../../../common/modules/genunix/tsd.c:55:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/t_lock.h:38,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/thread.h:36,
                 from ../../../common/modules/genunix/tsd.c:30:
../../../common/modules/genunix/tsd.c: In function 'ttotsd':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/tsd.c:86:18: note: in expansion of macro 'NULL'
  uintptr_t key = NULL;
                  ^~~~
../../../common/modules/genunix/tsd.c:93:38: error: comparison between pointer and integer [-Werror]
  if (!(flags & DCMD_ADDRSPEC) || key == NULL)
                                      ^~
../../../common/modules/genunix/contract.c: In function 'ct_walk_init':
../../../common/modules/genunix/contract.c:36:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/genunix/contract.c: In function 'ct_event_walk_init':
../../../common/modules/genunix/contract.c:57:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/contract.c: In function 'ct_listener_walk_init':
../../../common/modules/genunix/contract.c:74:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/genunix/fm.c: In function 'ereportq_pend_walk_init':
../../../common/modules/genunix/fm.c:50:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/genunix/fm.c: In function 'ereportq_pend_walk_step':
../../../common/modules/genunix/fm.c:79:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/fm.c: In function 'ereportq_dump_walk_init':
../../../common/modules/genunix/fm.c:102:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/genunix/fm.c: In function 'ereportq_dump_walk_step':
../../../common/modules/genunix/fm.c:131:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~

../../../common/modules/genunix/modhash.c: In function 'modhash_walk_step':
../../../common/modules/genunix/modhash.c:122:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/modhash.c: In function 'modent_walk_init':
../../../common/modules/genunix/modhash.c:147:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/modhash.c:190:32: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  hwp->hwalk_msd.msd_first_addr = NULL;
                                ^
../../../common/modules/genunix/modhash.c:192:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  wsp->walk_addr = NULL;
                 ^
../../../common/modules/genunix/modhash.c: In function 'modent_walk_step':
../../../common/modules/genunix/modhash.c:207:24: error: comparison between pointer and integer [-Werror]
  while (wsp->walk_addr == NULL) {
                        ^~
../../../common/modules/genunix/modhash.c: In function 'modchain_walk_step':
../../../common/modules/genunix/modhash.c:254:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/lgrp.c:146:24: error: comparison between pointer and integer [-Werror]
  if (lcw->lcw_cpusleft == NULL && addr != lcw->lcw_firstcpu) {
                        ^~
../../../common/modules/genunix/lgrp.c: In function 'lgrp_walk_step_common':
../../../common/modules/genunix/lgrp.c:483:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/lgrp.c: In function 'lgrp_walk_step':
../../../common/modules/genunix/lgrp.c:512:23: error: comparison between pointer and integer [-Werror]
    if (wsp->walk_addr == NULL) {
                       ^~
../../../common/modules/genunix/lgrp.c: In function 'lgrp_parents_walk_step':
../../../common/modules/genunix/lgrp.c:543:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/bio.c: In function 'buf_walk_init':
../../../common/modules/genunix/bio.c:55:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/genunix/bio.c: In function 'buf_walk_step':
../../../common/modules/genunix/bio.c:104:24: error: comparison between pointer and integer [-Werror]
  while (wsp->walk_addr == NULL || wsp->walk_addr == (bwp->bw_hbufbase +
                        ^~
../../../common/modules/genunix/bio.c: In function 'bufpagefind':
../../../common/modules/genunix/bio.c:156:41: error: comparison between pointer and integer [-Werror]
  for (addr = (uintptr_t)b.b_pages; addr != NULL;
                                         ^~

../../../common/modules/specfs/specfs.c: In function 'snode_walk_step':
../../../common/modules/specfs/specfs.c:87:14: error: comparison between pointer and integer [-Werror]
  while (addr == NULL) {
              ^~

../../../common/modules/fctl/fctl.c: In function 'port_walk_i':
../../../common/modules/fctl/fctl.c:74:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/fctl/fctl.c: In function 'port_walk_s':
../../../common/modules/fctl/fctl.c:93:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/fctl/fctl.c: In function 'ulp_walk_i':
../../../common/modules/fctl/fctl.c:201:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/fctl/fctl.c: In function 'ulp_walk_s':
../../../common/modules/fctl/fctl.c:218:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/fctl/fctl.c: In function 'ulpmod_walk_i':
../../../common/modules/fctl/fctl.c:311:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/fctl/fctl.c: In function 'ulpmod_walk_s':
../../../common/modules/fctl/fctl.c:328:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/fctl/fctl.c: In function 'pd_by_pwwn_walk_i':
../../../common/modules/fctl/fctl.c:580:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fctl/fctl.c: In function 'pd_by_pwwn_walk_s':
../../../common/modules/fctl/fctl.c:632:22: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr == NULL) &&
                      ^~
../../../common/modules/fctl/fctl.c:649:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fctl/fctl.c: In function 'pd_by_did_walk_i':
../../../common/modules/fctl/fctl.c:694:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fctl/fctl.c: In function 'pd_by_did_walk_s':
../../../common/modules/fctl/fctl.c:745:22: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr == NULL) &&
                      ^~
../../../common/modules/fctl/fctl.c:762:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fctl/fctl.c: In function 'job_request_walk_i':
../../../common/modules/fctl/fctl.c:1175:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fctl/fctl.c: In function 'job_request_walk_s':
../../../common/modules/fctl/fctl.c:1204:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/fctl/fctl.c: In function 'orphan_walk_i':
../../../common/modules/fctl/fctl.c:1245:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fctl/fctl.c: In function 'orphan_walk_s':
../../../common/modules/fctl/fctl.c:1274:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/sysevent.c: In function 'sysevent_channel_walk_init':
../../../common/modules/genunix/sysevent.c:381:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/genunix/sysevent.c: In function 'sysevent_channel_walk_step':
../../../common/modules/genunix/sysevent.c:409:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/genunix/sysevent.c: In function 'sysevent_pend_walk_init':
../../../common/modules/genunix/sysevent.c:445:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/sysevent.c: In function 'sysevent_walk_step':
../../../common/modules/genunix/sysevent.c:462:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/sysevent.c: In function 'sysevent_sent_walk_init':
../../../common/modules/genunix/sysevent.c:481:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/genunix/zone.c: In function 'zone_walk_init':
../../../common/modules/genunix/zone.c:258:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/zone.c: In function 'zsd_walk_init':
../../../common/modules/genunix/zone.c:282:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/genunix/taskq.c: In function 'taskq_ent_walk_init':
../../../common/modules/genunix/taskq.c:323:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/taskq.c: In function 'taskq_thread_walk_init':
../../../common/modules/genunix/taskq.c:405:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL &&
                     ^~
../../../common/modules/genunix/taskq.c: In function 'taskq_thread_walk_step':
../../../common/modules/genunix/taskq.c:452:12: error: comparison between pointer and integer [-Werror]
   if (addr == NULL)
            ^~

../../../common/modules/s1394/s1394.c: In function 'speedmap_walk_init':
../../../common/modules/s1394/s1394.c:69:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/s1394/s1394.c: In function 'speedmap_walk_step':
../../../common/modules/s1394/s1394.c:91:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~

../../../common/modules/ipp/ipp.c: In function 'ref_walk_init':
../../../common/modules/ipp/ipp.c:498:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/ipp/ipp.c: In function 'ref_walk_step':
../../../common/modules/ipp/ipp.c:511:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/vfs.c: In function 'vfs_walk_init':
../../../common/modules/genunix/vfs.c:56:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/genunix/vfs.c: In function 'next_realvp':
../../../common/modules/genunix/vfs.c:376:31: error: comparison between pointer and integer [-Werror]
  if (*outvp == invp || *outvp == NULL)
                               ^~
../../../common/modules/genunix/vfs.c: In function 'pfiles_dig_pathname':
../../../common/modules/genunix/vfs.c:502:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     vp = NULL;
        ^
../../../common/modules/genunix/vfs.c: In function 'pfile_callback':
../../../common/modules/genunix/vfs.c:938:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/genunix/vfs.c:961:20: error: comparison between pointer and integer [-Werror]
   if (next_realvpp != NULL)
                    ^~
../../../common/modules/genunix/vfs.c: In function 'file_t_callback':
../../../common/modules/genunix/vfs.c:1121:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~

../../../common/modules/pmcs/pmcs.c: In function 'display_iport_damap':
../../../common/modules/pmcs/pmcs.c:231:11: error: comparison between pointer and integer [-Werror]
  if (dam0 != NULL) {
           ^~
../../../common/modules/pmcs/pmcs.c:239:11: error: comparison between pointer and integer [-Werror]
  if (dam1 != NULL) {
           ^~
../../../common/modules/pmcs/pmcs.c: In function 'get_devid_from_ob_iomb':
../../../common/modules/pmcs/pmcs.c:1548:12: error: comparison between pointer and integer [-Werror]
   if (_phy != NULL) {
            ^~
../../../common/modules/pmcs/pmcs.c: In function 'display_outbound_queues':
../../../common/modules/pmcs/pmcs.c:1744:12: error: comparison between pointer and integer [-Werror]
   if (obqp == NULL) {
            ^~
../../../common/modules/pmcs/pmcs.c: In function 'display_inbound_queues':
../../../common/modules/pmcs/pmcs.c:1876:12: error: comparison between pointer and integer [-Werror]
   if (ibqp == NULL) {
            ^~
../../../common/modules/pmcs/pmcs.c: In function 'targets_walk_i':
../../../common/modules/pmcs/pmcs.c:2370:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/pmcs/pmcs.c: In function 'targets_walk_s':
../../../common/modules/pmcs/pmcs.c:2421:27: error: comparison between pointer and integer [-Werror]
  } while ((wsp->walk_addr == NULL) && (target_idx < ss.max_dev));
                           ^~
../../../common/modules/pmcs/pmcs.c: In function 'phy_walk_i':
../../../common/modules/pmcs/pmcs.c:2481:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/pmcs/pmcs.c: In function 'phy_walk_s':
../../../common/modules/pmcs/pmcs.c:2525:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/tsol.c: In function 'tnrh_walk_step':
../../../common/modules/genunix/tsol.c:131:24: error: comparison between pointer and integer [-Werror]
  while (wsp->walk_addr == NULL) {
                        ^~

../../../common/modules/krtld/krtld.c: In function 'modctl_walk_init':
../../../common/modules/krtld/krtld.c:48:34: error: comparison between pointer and integer [-Werror]
  mwd->mwd_head = (wsp->walk_addr == NULL ? module_head : wsp->walk_addr);
                                  ^~
../../../common/modules/krtld/krtld.c:50:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  wsp->walk_addr = NULL;
                 ^
../../../common/modules/krtld/krtld.c: In function 'modctl_walk_step':
../../../common/modules/krtld/krtld.c:64:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/lofs/lofs.c: In function 'lnode_walk_init':
../../../common/modules/lofs/lofs.c:57:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/lofs/lofs.c: In function 'lnode_walk_step':
../../../common/modules/lofs/lofs.c:162:24: error: comparison between pointer and integer [-Werror]
  while (wsp->walk_addr == NULL) {
                        ^~

../../../common/modules/ipc/ipc.c: In function 'ds_walk_init':
../../../common/modules/ipc/ipc.c:358:46: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_arg != NULL && wsp->walk_addr != NULL)
                                              ^~

../../../common/modules/ptm/ptm.c: In function 'ptms_walk_init':
../../../common/modules/ptm/ptm.c:216:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/ptm/ptm.c: In function 'ptms_walk_step':
../../../common/modules/ptm/ptm.c:256:10: error: comparison between pointer and integer [-Werror]
  if (ptr == NULL) {
          ^~

../../../common/modules/genunix/mmd.c: In function 'mmdq_walk_init':
../../../common/modules/genunix/mmd.c:506:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/mmd.c: In function 'pdesc_slab_walk_init':
../../../common/modules/genunix/mmd.c:593:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/mmd.c: In function 'pdesc_walk_init':
../../../common/modules/genunix/mmd.c:652:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/mmd.c: In function 'pattr_walk_init':
../../../common/modules/genunix/mmd.c:820:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/thread.c: In function 'thread_walk_init':
../../../common/modules/genunix/thread.c:61:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/thread.c: In function 'thread_walk_step':
../../../common/modules/genunix/thread.c:97:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/thread.c: In function 'deathrow_walk_step':
../../../common/modules/genunix/thread.c:152:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/thread.c: In function 'cpu_dispq_walk_init':
../../../common/modules/genunix/thread.c:203:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/genunix/thread.c: In function 'cpupart_dispq_walk_init':
../../../common/modules/genunix/thread.c:244:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/genunix/thread.c: In function 'dispq_walk_step':
../../../common/modules/genunix/thread.c:281:14: error: comparison between pointer and integer [-Werror]
  while (addr == NULL) {
              ^~
../../../common/modules/genunix/thread.c:302:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   wsp->walk_addr = NULL;
                  ^
../../../common/modules/genunix/thread.c: In function 'stackinfo':
../../../common/modules/genunix/thread.c:827:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   allthreads = NULL;
              ^
../../../common/modules/genunix/thread.c:854:13: error: comparison between pointer and integer [-Werror]
   if (kaddr == NULL) {
             ^~

../../../common/modules/mac/mac.c: In function 'mac_common_walk_step':
../../../common/modules/mac/mac.c:475:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/mac/mac.c: In function 'mac_group_walk_init':
../../../common/modules/mac/mac.c:1046:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/mac/mac.c: In function 'mac_group_walk_step':
../../../common/modules/mac/mac.c:1072:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/mac/mac.c:1084:13: error: comparison between pointer and integer [-Werror]
  while (mgp != NULL) {
             ^~
../../../common/modules/mac/mac.c:1097:13: error: comparison between pointer and integer [-Werror]
  while (mgp != NULL) {
             ^~
../../../common/modules/mac/mac.c: In function 'mac_group_count_clients':
../../../common/modules/mac/mac.c:1118:13: error: comparison between pointer and integer [-Werror]
  while (mcp != NULL) {
             ^~

../../../common/modules/genunix/rctl.c: In function 'rctl_list':
../../../common/modules/genunix/rctl.c:207:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  rdict.dict_addr = NULL;
                  ^
../../../common/modules/genunix/rctl.c:233:23: error: comparison between pointer and integer [-Werror]
   if (rdict.dict_addr == NULL)
                       ^~
../../../common/modules/genunix/rctl.c: In function 'rctl_dict_walk_step':
../../../common/modules/genunix/rctl.c:340:12: error: comparison between pointer and integer [-Werror]
  while (dp != NULL) {
            ^~
../../../common/modules/genunix/rctl.c: In function 'rctl_set_walk_step':
../../../common/modules/genunix/rctl.c:425:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/rctl.c:442:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   wsp->walk_addr = NULL;
                  ^
../../../common/modules/genunix/rctl.c: In function 'rctl_val_walk_step':
../../../common/modules/genunix/rctl.c:490:49: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = (uintptr_t)val.rcv_next) == NULL)
                                                 ^~

../../../common/modules/mpt_sas/mpt_sas.c: In function 'mdi_info_cb':
../../../common/modules/mpt_sas/mpt_sas.c:122:12: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  *dev_path = NULL;
            ^
../../../common/modules/mpt_sas/mpt_sas.c: In function 'klist_head':
../../../common/modules/mpt_sas/mpt_sas.c:230:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/mpt_sas/mpt_sas.c: In function 'klist_next':
../../../common/modules/mpt_sas/mpt_sas.c:244:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/mpt_sas/mpt_sas.c: In function 'krefhash_next':
../../../common/modules/mpt_sas/mpt_sas.c:287:48: error: comparison between pointer and integer [-Werror]
      khp + offsetof(refhash_t, rh_objs), &ml)) != NULL) {
                                                ^~
../../../common/modules/mpt_sas/mpt_sas.c: In function 'display_slotinfo':
../../../common/modules/mpt_sas/mpt_sas.c:477:45: error: comparison between pointer and integer [-Werror]
  if (state != MDB_STATE_STOPPED && panicstr == NULL) {
                                             ^~

../../../common/modules/genunix/memory.c: In function 'page_walk_init':
../../../common/modules/genunix/memory.c:86:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/memory.c: In function 'page_walk_step':
../../../common/modules/genunix/memory.c:160:10: error: comparison between pointer and integer [-Werror]
   if (pp == NULL || pp == pwd->pw_first)
          ^~
../../../common/modules/genunix/memory.c:173:21: error: comparison between pointer and integer [-Werror]
   if (pwd->pw_first == NULL)
                     ^~
../../../common/modules/genunix/memory.c:184:10: error: comparison between pointer and integer [-Werror]
   if (pp == NULL) {
          ^~
../../../common/modules/genunix/memory.c:199:37: error: comparison between pointer and integer [-Werror]
    } while (pwd->pw_hashleft && (pp == NULL));
                                     ^~
../../../common/modules/genunix/memory.c:204:11: error: comparison between pointer and integer [-Werror]
    if (pp == NULL)
           ^~
../../../common/modules/genunix/memory.c: In function 'swap_walk_step':
../../../common/modules/genunix/memory.c:815:10: error: comparison between pointer and integer [-Werror]
  if (sip == NULL)
          ^~
../../../common/modules/genunix/memory.c: In function 'memlist_walk_step':
../../../common/modules/genunix/memory.c:870:10: error: comparison between pointer and integer [-Werror]
  if (mlp == NULL)
          ^~
../../../common/modules/genunix/memory.c: In function 'memlist':
../../../common/modules/genunix/memory.c:911:13: error: comparison between pointer and integer [-Werror]
        (ptr == NULL)) {
             ^~
../../../common/modules/genunix/memory.c: In function 'seg_walk_init':
../../../common/modules/genunix/memory.c:942:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/memory.c: In function 'anon_walk_init_common':
../../../common/modules/genunix/memory.c:1140:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/memory.c: In function 'anon_walk_step':
../../../common/modules/genunix/memory.c:1226:18: error: comparison between pointer and integer [-Werror]
    if (levtwoptr == NULL) {
                  ^~
../../../common/modules/genunix/memory.c:1261:14: error: comparison between pointer and integer [-Werror]
  if (anonptr != NULL) {
              ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/genunix/memory.c:26:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 1 of 'wsp->walk_callback' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/memory.c:1266:30: note: in expansion of macro 'NULL'
   return (wsp->walk_callback(NULL, NULL, wsp->walk_cbdata));
                              ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: expected 'uintptr_t {aka long unsigned int}' but argument is of type 'void *'
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/memory.c:1266:30: note: in expansion of macro 'NULL'
   return (wsp->walk_callback(NULL, NULL, wsp->walk_cbdata));
                              ^~~~
../../../common/modules/genunix/memory.c: In function 'segvn_anon_walk_init':
../../../common/modules/genunix/memory.c:1299:15: error: comparison between pointer and integer [-Werror]
  if (svd_addr == NULL) {
               ^~
../../../common/modules/genunix/memory.c: In function 'segvn_pages_walk_init':
../../../common/modules/genunix/memory.c:1408:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/memory.c: In function 'segvn_pages_walk_step':
../../../common/modules/genunix/memory.c:1517:7: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    pp = NULL;
       ^
../../../common/modules/genunix/memory.c:1526:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     pp = NULL;
        ^
../../../common/modules/genunix/memory.c:1533:48: error: comparison between pointer and integer [-Werror]
  } else if (svd->amp == NULL || wsp->walk_addr == NULL) {
                                                ^~
../../../common/modules/genunix/memory.c:1542:7: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    pp = NULL;
       ^
../../../common/modules/genunix/memory.c:1566:7: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    pp = NULL; /* nothing at this offset */
       ^
../../../common/modules/genunix/memory.c:1571:9: error: comparison between pointer and integer [-Werror]
  if (pp != NULL) {
         ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/genunix/memory.c:26:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 1 of 'wsp->walk_callback' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/memory.c:1579:30: note: in expansion of macro 'NULL'
   return (wsp->walk_callback(NULL, NULL, wsp->walk_cbdata));
                              ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: note: expected 'uintptr_t {aka long unsigned int}' but argument is of type 'void *'
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/memory.c:1579:30: note: in expansion of macro 'NULL'
   return (wsp->walk_callback(NULL, NULL, wsp->walk_cbdata));
                              ^~~~
../../../common/modules/genunix/memory.c: In function 'vnode2smap':
../../../common/modules/genunix/memory.c:1674:17: error: comparison between pointer and integer [-Werror]
  } while (saddr != NULL);
                 ^~

../../../common/modules/genunix/streams.c: In function 'queue':
../../../common/modules/genunix/streams.c:391:63: error: comparison between pointer and integer [-Werror]
  if (flag != NULL || not_flag != NULL || mod != NULL || syncq != NULL)
                                                               ^~
../../../common/modules/genunix/streams.c:417:43: error: comparison between pointer and integer [-Werror]
  for (maddr = (uintptr_t)q.q_first; maddr != NULL; nblks++) {
                                           ^~
../../../common/modules/genunix/streams.c: In function 'queue_walk_init':
../../../common/modules/genunix/streams.c:892:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/genunix/streams.c: In function 'queue_link_step':
../../../common/modules/genunix/streams.c:907:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/streams.c: In function 'queue_next_step':
../../../common/modules/genunix/streams.c:927:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/streams.c: In function 'str_walk_init':
../../../common/modules/genunix/streams.c:953:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/streams.c: In function 'strr_walk_step':
../../../common/modules/genunix/streams.c:975:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/streams.c: In function 'strw_walk_step':
../../../common/modules/genunix/streams.c:1002:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/streams.c: In function 'b_cont_step':
../../../common/modules/genunix/streams.c:1109:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/streams.c: In function 'b_next_step':
../../../common/modules/genunix/streams.c:1129:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/streams.c: In function 'strftblk_step':
../../../common/modules/genunix/streams.c:1441:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/sobj.c: In function 'wchan_walk_init':
../../../common/modules/genunix/sobj.c:151:40: error: comparison between pointer and integer [-Werror]
  if ((ww->ww_compare = wsp->walk_addr) == NULL) {
                                        ^~
../../../common/modules/genunix/sobj.c: In function 'wchan_walk_step':
../../../common/modules/genunix/sobj.c:183:25: error: comparison between pointer and integer [-Werror]
  for (t = ww->ww_thr; t == NULL; ) {
                         ^~
../../../common/modules/genunix/sobj.c:194:9: error: comparison between pointer and integer [-Werror]
   if (t == NULL && ww->ww_compare != NULL)
         ^~
../../../common/modules/genunix/sobj.c:194:35: error: comparison between pointer and integer [-Werror]
   if (t == NULL && ww->ww_compare != NULL)
                                   ^~
../../../common/modules/genunix/sobj.c:210:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   ww->ww_thr = NULL;
              ^
../../../common/modules/genunix/sobj.c:223:21: error: comparison between pointer and integer [-Werror]
  if (ww->ww_compare != NULL) {
                     ^~
../../../common/modules/genunix/sobj.c:227:18: error: comparison between pointer and integer [-Werror]
   if (ww->ww_thr == NULL)
                  ^~
../../../common/modules/genunix/sobj.c:248:17: error: comparison between pointer and integer [-Werror]
  if (ww->ww_thr != NULL) {
                 ^~
../../../common/modules/genunix/sobj.c: In function 'blocked_walk_init':
../../../common/modules/genunix/sobj.c:368:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  wsp->walk_addr = NULL;
                 ^
../../../common/modules/genunix/sobj.c: In function 'rwlock':
../../../common/modules/genunix/sobj.c:497:39: error: comparison between pointer and integer [-Werror]
  if (!(flags & DCMD_ADDRSPEC) || addr == NULL || argc != 0)
                                       ^~
../../../common/modules/hook/hook.c: In function 'hookevent_stack_walk_init':
../../../common/modules/hook/hook.c:218:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/hook/hook.c: In function 'hookevent_stack_walk_step':
../../../common/modules/hook/hook.c:244:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/netstack.c: In function 'netstack_walk_step':
../../../common/modules/genunix/netstack.c:59:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/net.c: In function 'sonode_walk_init':
../../../common/modules/genunix/net.c:213:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/net.c: In function 'sonode_walk_step':
../../../common/modules/genunix/net.c:242:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/net.c: In function 'mi_walk_init':
../../../common/modules/genunix/net.c:276:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/net.c:284:22: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  wdp->mi_wd_miofirst = NULL;
                      ^
../../../common/modules/genunix/net.c: In function 'mi_walk_step':
../../../common/modules/genunix/net.c:309:26: error: comparison between pointer and integer [-Werror]
  if (wdp->mi_wd_miofirst == NULL) {
                          ^~

../../../common/modules/ip/ip.c: In function 'tcps_sc_walk_init':
../../../common/modules/ip/ip.c:422:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/ip/ip.c: In function 'th_hash_walk_init':
../../../common/modules/ip/ip.c:480:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/ip/ip.c: In function 'illif_stack_walk_init':
../../../common/modules/ip/ip.c:520:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/ip/ip.c: In function 'ire_next_walk_step':
../../../common/modules/ip/ip.c:866:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/ip/ip.c: In function 'ip_rnext':
../../../common/modules/ip/ip.c:1690:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../../common/modules/ip/ip.c: In function 'ip_wnext':
../../../common/modules/ip/ip.c:1703:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/t_lock.h:38,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/conf.h:37,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/stropts.h:38,
                 from ../../../common/modules/ip/ip.c:27:
../../../common/modules/ip/ip.c: In function 'th_trace':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'mdb_pwalk' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/ip/ip.c:1875:50: note: in expansion of macro 'NULL'
  if (mdb_pwalk("th_hash", th_hash_summary, &thw, NULL) == -1) {
                                                  ^~~~
In file included from ../../../common/modules/ip/ip.c:57:0:
../../../common/mdb/mdb_modapi.h:186:12: note: expected 'uintptr_t {aka long unsigned int}' but argument is of type 'void *'
 extern int mdb_pwalk(const char *, mdb_walk_cb_t, void *, uintptr_t);
            ^~~~~~~~~
../../../common/modules/ip/ip.c: In function 'ncec_get_next_hash_tbl':
../../../common/modules/ip/ip.c:2246:14: error: comparison between pointer and integer [-Werror]
  while (addr == NULL) {
              ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/t_lock.h:38,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/conf.h:37,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/stropts.h:38,
                 from ../../../common/modules/ip/ip.c:27:
../../../common/modules/ip/ip.c: In function 'ipcl_hash_get_next_connf_tbl':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/ip/ip.c:2291:19: note: in expansion of macro 'NULL'
  uintptr_t addr = NULL, next;
                   ^~~~
../../../common/modules/ip/ip.c:2297:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    addr = NULL;
         ^
../../../common/modules/ip/ip.c:2302:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/ip/ip.c:2305:16: error: comparison between pointer and integer [-Werror]
  } while (addr == NULL);
                ^~
../../../common/modules/ip/ip.c: In function 'ipcl_hash_walk_init':
../../../common/modules/ip/ip.c:2346:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL)
                     ^~
../../../common/modules/ip/ip.c: In function 'ipcl_hash_walk_step':
../../../common/modules/ip/ip.c:2360:14: error: comparison between pointer and integer [-Werror]
  while (addr != NULL) {
              ^~
../../../common/modules/ip/ip.c:2373:22: error: comparison between pointer and integer [-Werror]
   if (wsp->walk_addr != NULL)
                      ^~
../../../common/modules/ip/ip.c: In function 'ncec_stack_walk_init':
../../../common/modules/ip/ip.c:2399:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/t_lock.h:38,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/conf.h:37,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/stropts.h:38,
                 from ../../../common/modules/ip/ip.c:27:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 1 of 'ncec_get_next_hash_tbl' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/ip/ip.c:2418:42: note: in expansion of macro 'NULL'
  wsp->walk_addr = ncec_get_next_hash_tbl(NULL,
                                          ^~~~
../../../common/modules/ip/ip.c:2241:1: note: expected 'uintptr_t {aka long unsigned int}' but argument is of type 'void *'
 ncec_get_next_hash_tbl(uintptr_t start, int *index, struct ndp_g_s ndp)
 ^~~~~~~~~~~~~~~~~~~~~~
../../../common/modules/ip/ip.c: In function 'ncec_stack_walk_step':
../../../common/modules/ip/ip.c:2431:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/ip/ip.c: In function 'ip_list_walk_init':
../../../common/modules/ip/ip.c:2716:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/ip/ip.c: In function 'ip_list_walk_step':
../../../common/modules/ip/ip.c:2738:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/ip/ip.c: In function 'ilb_rules_walk_init':
../../../common/modules/ip/ip.c:3186:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/ip/ip.c:3193:56: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = (uintptr_t)ilbs.ilbs_rule_head) != NULL)
                                                        ^~
../../../common/modules/ip/ip.c: In function 'ilb_rules_walk_step':
../../../common/modules/ip/ip.c:3212:49: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = (uintptr_t)rule.ir_next) == NULL)
                                                 ^~
../../../common/modules/ip/ip.c: In function 'ilb_servers_walk_init':
../../../common/modules/ip/ip.c:3223:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/ip/ip.c:3230:52: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = (uintptr_t)rule.ir_servers) != NULL)
                                                    ^~
../../../common/modules/ip/ip.c: In function 'ilb_servers_walk_step':
../../../common/modules/ip/ip.c:3249:53: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = (uintptr_t)server.iser_next) == NULL)
                                                     ^~
../../../common/modules/ip/ip.c: In function 'ilb_nat_src_walk_init':
../../../common/modules/ip/ip.c:3274:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/ip/ip.c: In function 'ilb_conn_walk_init':
../../../common/modules/ip/ip.c:3413:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/ip/ip.c: In function 'ilb_sticky_walk_init':
../../../common/modules/ip/ip.c:3515:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

./../../common/modules/crypto/sched_impl.c: In function 'areq_walk_init_common':
../../../common/modules/crypto/sched_impl.c:254:37: error: comparison between pointer and integer [-Werror]
      (uintptr_t)gswq_copy.gs_last)) == NULL) {
                                     ^~
../../../common/modules/crypto/sched_impl.c: In function 'an_id_walk_init':
../../../common/modules/crypto/sched_impl.c:285:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/crypto/sched_impl.c: In function 'an_id_walk_step':
../../../common/modules/crypto/sched_impl.c:337:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) /* then we're done */
                     ^~
../../../common/modules/crypto/sched_impl.c:354:35: error: comparison between pointer and integer [-Werror]
        (uintptr_t)ptr->an_idnext) == NULL)
                                   ^~
../../../common/modules/crypto/sched_impl.c:360:35: error: comparison between pointer and integer [-Werror]
        (uintptr_t)ptr->an_idprev) == NULL)
                                   ^~
../../../common/modules/crypto/sched_impl.c:366:42: error: comparison between pointer and integer [-Werror]
        (uintptr_t)ptr->an_ctxchain_next) == NULL)
                                          ^~
../../../common/modules/crypto/sched_impl.c: In function 'an_walk_step_common':
../../../common/modules/crypto/sched_impl.c:428:32: error: comparison between pointer and integer [-Werror]
      (uintptr_t)ptr->an_prev)) == NULL)
                                ^~
../../../common/modules/crypto/sched_impl.c: In function 'crypto_pr_reqid':
../../../common/modules/crypto/sched_impl.c:559:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/crypto/sched_impl.c:588:17: error: comparison between pointer and integer [-Werror]
   if (node_addr == NULL)
                 ^~

../../../common/modules/crypto/impl.c: In function 'soft_conf_walk_step':
../../../common/modules/crypto/impl.c:427:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) /* then we're done */
                     ^~
../../../common/modules/crypto/impl.c: In function 'kcf_soft_conf_entry':
../../../common/modules/crypto/impl.c:471:12: error: comparison between pointer and integer [-Werror]
   if (addr == NULL)  /* not allowed with DCMD_ADDRSPEC */
            ^~

../../../common/modules/fcp/fcp.c: In function 'fcp_walk_i':
../../../common/modules/fcp/fcp.c:50:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/fcp/fcp.c: In function 'fcp_walk_s':
../../../common/modules/fcp/fcp.c:65:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/fcp/fcp.c: In function 'cmds_walk_i':
../../../common/modules/fcp/fcp.c:189:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fcp/fcp.c: In function 'cmds_walk_s':
../../../common/modules/fcp/fcp.c:216:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/fcp/fcp.c: In function 'luns_walk_i':
../../../common/modules/fcp/fcp.c:251:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fcp/fcp.c: In function 'luns_walk_s':
../../../common/modules/fcp/fcp.c:278:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/fcp/fcp.c: In function 'targets_walk_i':
../../../common/modules/fcp/fcp.c:313:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fcp/fcp.c: In function 'targets_walk_s':
../../../common/modules/fcp/fcp.c:348:22: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr == NULL) &&
                      ^~
../../../common/modules/fcp/fcp.c:365:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fcp/fcp.c: In function 'ipkt_walk_i':
../../../common/modules/fcp/fcp.c:406:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fcp/fcp.c: In function 'ipkt_walk_s':
../../../common/modules/fcp/fcp.c:435:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/fcp/fcp.c: In function 'pkt_walk_i':
../../../common/modules/fcp/fcp.c:470:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/fcp/fcp.c: In function 'pkt_walk_s':
../../../common/modules/fcp/fcp.c:499:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/cpc/cpc.c: In function 'cpc_ctx_walk_init':
../../../common/modules/cpc/cpc.c:159:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/cpc/cpc.c:174:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  wsp->walk_addr = NULL;
                 ^
../../../common/modules/cpc/cpc.c: In function 'cpc_ctx_walk_step':
../../../common/modules/cpc/cpc.c:185:24: error: comparison between pointer and integer [-Werror]
  while (wsp->walk_addr == NULL) {
                        ^~

../../../common/modules/genunix/hotplug.c: In function 'hotplug':
../../../common/modules/genunix/hotplug.c:133:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^

../../../common/modules/genunix/ldi.c: In function 'ldi_handle_walk_step':
../../../common/modules/genunix/ldi.c:107:24: error: comparison between pointer and integer [-Werror]
  while (wsp->walk_addr == NULL) {
                        ^~
../../../common/modules/genunix/ldi.c: In function 'ldi_ident_walk_step':
../../../common/modules/genunix/ldi.c:175:24: error: comparison between pointer and integer [-Werror]
  while (wsp->walk_addr == NULL) {
                        ^~

In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/dtrace/dtrace.c:35:
../../../common/modules/dtrace/dtrace.c: In function 'id2probe':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/dtrace/dtrace.c:55:20: note: in expansion of macro 'NULL'
  uintptr_t probe = NULL;
                    ^~~~
../../../common/modules/dtrace/dtrace.c: In function 'dtracemdb_eprobe':
../../../common/modules/dtrace/dtrace.c:117:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/dtrace/dtrace.c:138:56: error: comparison between pointer and integer [-Werror]
  for (ap = (uintptr_t)ecb.dte_action, nactions = 0; ap != NULL; ) {
                                                        ^~
../../../common/modules/dtrace/dtrace.c:157:56: error: comparison between pointer and integer [-Werror]
  for (ap = (uintptr_t)ecb.dte_action, nactions = 0; ap != NULL; ) {
                                                        ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtracemdb_probe':
../../../common/modules/dtrace/dtrace.c:207:13: error: comparison between pointer and integer [-Werror]
   if (paddr != NULL)
             ^~
../../../common/modules/dtrace/dtrace.c:211:12: error: comparison between pointer and integer [-Werror]
  if (paddr == NULL) {
            ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtracemdb_aggdesc':
../../../common/modules/dtrace/dtrace.c:277:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtracemdb_stat':
../../../common/modules/dtrace/dtrace.c:812:12: error: comparison between pointer and integer [-Werror]
  if (caddr == NULL)
            ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_errhash_init':
../../../common/modules/dtrace/dtrace.c:1179:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_helptrace_init':
../../../common/modules/dtrace/dtrace.c:1279:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/dtrace/dtrace.c:1289:13: error: comparison between pointer and integer [-Werror]
  if (buffer == NULL) {
             ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_state_init':
../../../common/modules/dtrace/dtrace.c:1523:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_aggkey_init':
../../../common/modules/dtrace/dtrace.c:1747:30: error: comparison between pointer and integer [-Werror]
  if ((addr = wsp->walk_addr) == NULL) {
                              ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_aggkey_step':
../../../common/modules/dtrace/dtrace.c:1791:35: error: comparison between pointer and integer [-Werror]
  while ((addr = data->dtakd_next) == NULL) {
                                   ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_dynvar_init':
../../../common/modules/dtrace/dtrace.c:1836:30: error: comparison between pointer and integer [-Werror]
  if ((addr = wsp->walk_addr) == NULL) {
                              ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_ecb_init':
../../../common/modules/dtrace/dtrace.c:2379:30: error: comparison between pointer and integer [-Werror]
  if ((addr = wsp->walk_addr) == NULL) {
                              ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_ecb_step':
../../../common/modules/dtrace/dtrace.c:2418:11: error: comparison between pointer and integer [-Werror]
  if (ecbp == NULL)
           ^~
../../../common/modules/dtrace/dtrace.c: In function 'pid2state_init':
../../../common/modules/dtrace/dtrace.c:2581:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_probes_walk':
../../../common/modules/dtrace/dtrace.c:2671:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/dtrace/dtrace.c: In function 'dtrace_probes':
../../../common/modules/dtrace/dtrace.c:2740:14: error: comparison between pointer and integer [-Werror]
    if (paddr == NULL)
              ^~

../../../common/modules/fcip/fcip.c: In function 'fcip_walk_i':
../../../common/modules/fcip/fcip.c:45:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/fcip/fcip.c: In function 'fcip_walk_s':
../../../common/modules/fcip/fcip.c:60:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/leaky_subr.c: In function 'leaky_subr_estimate':
../../../common/modules/genunix/leaky_subr.c:396:45: error: comparison between pointer and integer [-Werror]
  if (state != MDB_STATE_STOPPED && panicstr == NULL) {
                                             ^~
../../../common/modules/genunix/leaky_subr.c: In function 'leaky_subr_run':
../../../common/modules/genunix/leaky_subr.c:467:57: error: comparison between pointer and integer [-Werror]
  if ((mdb_readvar(&dmods, "kdi_dmods") != -1) && (dmods != NULL))
                                                         ^~

../../../common/modules/genunix/cpupart.c: In function 'cpupart_disp_threads':
../../../common/modules/genunix/cpupart.c:96:16: error: comparison between pointer and integer [-Werror]
   while (taddr != NULL) {
                ^~

../../../common/modules/genunix/ctxop.c: In function 'ctxop_walk_init':
../../../common/modules/genunix/ctxop.c:38:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/ctxop.c: In function 'ctxop_walk_step':
../../../common/modules/genunix/ctxop.c:58:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/dnlc.c: In function 'dnlc_walk_init':
../../../common/modules/genunix/dnlc.c:34:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/genunix/dnlc.c: In function 'dnlc_walk_step':
../../../common/modules/genunix/dnlc.c:69:38: error: comparison between pointer and integer [-Werror]
  while (addr == dwp->dw_head || addr == NULL) {
                                      ^~
../../../common/modules/genunix/dnlc.c:90:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   addr = NULL;
        ^

../../../common/modules/genunix/findstack_subr.c: In function 'crawl':
../../../common/modules/genunix/findstack_subr.c:120:9: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    *fpp = NULL;
         ^

../../../common/modules/genunix/group.c: In function 'group_walk_step':
../../../common/modules/genunix/group.c:163:26: error: comparison between pointer and integer [-Werror]
  status = wsp->walk_addr == NULL ?
                          ^~

../../../common/modules/genunix/kmem.c: In function 'kmem_cpu_cache_walk_init':
../../../common/modules/genunix/kmem.c:119:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/kmem.c: In function 'kmem_slab_walk_init':
../../../common/modules/genunix/kmem.c:248:12: error: comparison between pointer and integer [-Werror]
  if (caddr == NULL) {
            ^~
../../../common/modules/genunix/kmem.c: In function 'kmem_slab_walk_partial_init':
../../../common/modules/genunix/kmem.c:285:12: error: comparison between pointer and integer [-Werror]
  if (caddr == NULL) {
            ^~
../../../common/modules/genunix/kmem.c: In function 'kmem_hash_walk_init':
../../../common/modules/genunix/kmem.c:791:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/genunix/kmem.c:31:
../../../common/modules/genunix/kmem.c: In function 'kmem_hash_walk_step':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/kmem.c:831:19: note: in expansion of macro 'NULL'
  uintptr_t addr = NULL;
                   ^~~~
../../../common/modules/genunix/kmem.c:833:49: error: comparison between pointer and integer [-Werror]
  if ((addr = (uintptr_t)kmhw->kmhw_cur.bc_next) == NULL) {
                                                 ^~
../../../common/modules/genunix/kmem.c:835:52: error: comparison between pointer and integer [-Werror]
    if ((addr = kmhw->kmhw_table[kmhw->kmhw_pos++]) != NULL)
                                                    ^~
../../../common/modules/genunix/kmem.c:839:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/kmem.c: In function 'kmem_walk_init_common':
../../../common/modules/genunix/kmem.c:1165:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/genunix/kmem.c: In function 'kmem_walk_init':
../../../common/modules/genunix/kmem.c:1647:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/kmem.c: In function 'bufctl_walk_init':
../../../common/modules/genunix/kmem.c:1655:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/kmem.c: In function 'freemem_walk_init':
../../../common/modules/genunix/kmem.c:1663:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/kmem.c: In function 'freemem_constructed_walk_init':
../../../common/modules/genunix/kmem.c:1671:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/kmem.c: In function 'freectl_walk_init':
../../../common/modules/genunix/kmem.c:1679:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/kmem.c: In function 'freectl_constructed_walk_init':
../../../common/modules/genunix/kmem.c:1687:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/kmem.c: In function 'bufctl_history_walk_init':
../../../common/modules/genunix/kmem.c:1707:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/kmem.c: In function 'bufctl_history_walk_step':
../../../common/modules/genunix/kmem.c:1751:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/kmem.c: In function 'kmem_log_walk_init':
../../../common/modules/genunix/kmem.c:1805:9: error: comparison between pointer and integer [-Werror]
  if (lp == NULL && mdb_readvar(&lp, "kmem_transaction_log") == -1) {
         ^~
../../../common/modules/genunix/kmem.c:1810:9: error: comparison between pointer and integer [-Werror]
  if (lp == NULL) {
         ^~
../../../common/modules/genunix/kmem.c: In function 'allocdby_walk_init_common':
../../../common/modules/genunix/kmem.c:1951:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/genunix/kmem.c:31:
../../../common/modules/genunix/kmem.c: In function 'whatis_walk_kmem':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'whatis_print_kmem' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/kmem.c:2233:36: note: in expansion of macro 'NULL'
   whatis_print_kmem(wi, cur, addr, NULL);
                                    ^~~~
../../../common/modules/genunix/kmem.c:2192:1: note: expected 'uintptr_t {aka long unsigned int}' but argument is of type 'void *'
 whatis_print_kmem(whatis_info_t *wi, uintptr_t maddr, uintptr_t addr,
 ^~~~~~~~~~~~~~~~~
../../../common/modules/genunix/kmem.c: In function 'kmem_log':
../../../common/modules/genunix/kmem.c:2720:10: error: comparison between pointer and integer [-Werror]
  if (lhp == NULL) {
          ^~
../../../common/modules/genunix/kmem.c:2753:15: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  kmd.kmd_addr = NULL;
               ^
../../../common/modules/genunix/kmem.c:2758:14: error: comparison between pointer and integer [-Werror]
   if (cpu[i] == NULL)
              ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/genunix/kmem.c:31:
../../../common/modules/genunix/kmem.c: In function 'bufctl':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/kmem.c:2859:21: note: in expansion of macro 'NULL'
  uintptr_t caller = NULL, thread = NULL;
                     ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/kmem.c:2859:36: note: in expansion of macro 'NULL'
  uintptr_t caller = NULL, thread = NULL;
                                    ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/kmem.c:2860:34: note: in expansion of macro 'NULL'
  uintptr_t laddr, haddr, baddr = NULL;
                                  ^~~~
../../../common/modules/genunix/kmem.c:2939:13: error: comparison between pointer and integer [-Werror]
  if (caller != NULL) {
             ^~
../../../common/modules/genunix/kmem.c:2961:13: error: comparison between pointer and integer [-Werror]
  if (thread != NULL && (uintptr_t)bc.bc_thread != thread)
             ^~
../../../common/modules/genunix/kmem.c: In function 'vmem_walk_init':
../../../common/modules/genunix/kmem.c:3327:15: error: comparison between pointer and integer [-Werror]
  while (vaddr != NULL) {
               ^~
../../../common/modules/genunix/kmem.c:3346:50: error: comparison between pointer and integer [-Werror]
   if ((paddr = (uintptr_t)vp->vn_vmem.vm_source) == NULL) {
                                                  ^~
../../../common/modules/genunix/kmem.c: In function 'vmem_seg_walk_common_init':
../../../common/modules/genunix/kmem.c:3495:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/kmem.c: In function 'vmem':
../../../common/modules/genunix/kmem.c:3612:45: error: comparison between pointer and integer [-Werror]
  for (paddr = (uintptr_t)v.vm_source; paddr != NULL; ident += 2) {
                                             ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/genunix/kmem.c:31:
../../../common/modules/genunix/kmem.c: In function 'vmem_seg':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/kmem.c:3679:21: note: in expansion of macro 'NULL'
  uintptr_t caller = NULL, thread = NULL;
                     ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/kmem.c:3679:36: note: in expansion of macro 'NULL'
  uintptr_t caller = NULL, thread = NULL;
                                    ^~~~
../../../common/modules/genunix/kmem.c:3761:14: error: comparison between pointer and integer [-Werror]
   if (caller != NULL || thread != NULL || earliest != 0 ||
              ^~
../../../common/modules/genunix/kmem.c:3761:32: error: comparison between pointer and integer [-Werror]
   if (caller != NULL || thread != NULL || earliest != 0 ||
                                ^~
../../../common/modules/genunix/kmem.c:3765:14: error: comparison between pointer and integer [-Werror]
   if (caller != NULL) {
              ^~
../../../common/modules/genunix/kmem.c:3789:14: error: comparison between pointer and integer [-Werror]
   if (thread != NULL && (uintptr_t)vs.vs_thread != thread)
              ^~
../../../common/modules/genunix/kmem.c: In function 'kmalog':
../../../common/modules/genunix/kmem.c:3912:16: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   kma.kma_addr = NULL;
                ^
../../../common/modules/genunix/kmem.c: In function 'kmausers':
../../../common/modules/genunix/kmem.c:4198:16: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   kmu.kmu_addr = NULL;
                ^

../../../common/modules/genunix/gcore.c: In function 'gsvn_init':
../../../common/modules/genunix/gcore.c:168:18: error: comparison between pointer and integer [-Werror]
  if (seg->s_data != NULL) {
                  ^~
../../../common/modules/genunix/gcore.c: In function 'read_maps_cb':
../../../common/modules/genunix/gcore.c:783:15: error: comparison between pointer and integer [-Werror]
        svd.vp == NULL) {
               ^~
In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/genunix/gcore.c:37:
../../../common/modules/genunix/gcore.c: In function 'gcore_prchoose':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:878:21: note: in expansion of macro 'NULL'
  uintptr_t t_addr = NULL;
                     ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:879:23: note: in expansion of macro 'NULL'
  uintptr_t t_onproc = NULL; // running on processor
                       ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:880:20: note: in expansion of macro 'NULL'
  uintptr_t t_run = NULL;  // runnable, on disp queue
                    ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:881:22: note: in expansion of macro 'NULL'
  uintptr_t t_sleep = NULL;  // sleeping
                      ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:882:21: note: in expansion of macro 'NULL'
  uintptr_t t_susp = NULL;  // suspended stop
                     ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:883:22: note: in expansion of macro 'NULL'
  uintptr_t t_jstop = NULL;  // jobcontrol stop, w/o directed stop
                      ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:884:23: note: in expansion of macro 'NULL'
  uintptr_t t_jdstop = NULL; // jobcontrol stop with directed stop
                       ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:885:20: note: in expansion of macro 'NULL'
  uintptr_t t_req = NULL;  // requested stop
                    ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:886:22: note: in expansion of macro 'NULL'
  uintptr_t t_istop = NULL;  // event-of-interest stop
                      ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/gcore.c:887:23: note: in expansion of macro 'NULL'
  uintptr_t t_dtrace = NULL; // DTrace stop
                       ^~~~
../../../common/modules/genunix/gcore.c:892:30: error: comparison between pointer and integer [-Werror]
  if ((t_addr = p->p_agenttp) != NULL) {
                              ^~
../../../common/modules/genunix/gcore.c:896:28: error: comparison between pointer and integer [-Werror]
  if ((t_addr = p->p_tlist) == NULL) /* start at the head of the list */
                            ^~
../../../common/modules/genunix/gcore.c:905:14: error: comparison between pointer and integer [-Werror]
    if (t_req == NULL)
              ^~
../../../common/modules/genunix/gcore.c:914:16: error: comparison between pointer and integer [-Werror]
    if (t_sleep == NULL)
                ^~
../../../common/modules/genunix/gcore.c:919:14: error: comparison between pointer and integer [-Werror]
    if (t_run == NULL)
              ^~
../../../common/modules/genunix/gcore.c:923:17: error: comparison between pointer and integer [-Werror]
    if (t_onproc == NULL)
                 ^~
../../../common/modules/genunix/gcore.c:935:16: error: comparison between pointer and integer [-Werror]
     if (t_susp == NULL)
                ^~
../../../common/modules/genunix/gcore.c:940:19: error: comparison between pointer and integer [-Werror]
      if (t_jdstop == NULL)
                   ^~
../../../common/modules/genunix/gcore.c:943:18: error: comparison between pointer and integer [-Werror]
      if (t_jstop == NULL)
                  ^~
../../../common/modules/genunix/gcore.c:948:38: error: comparison between pointer and integer [-Werror]
     if (t->t_dtrace_stop && t_dtrace == NULL)
                                      ^~
../../../common/modules/genunix/gcore.c:950:20: error: comparison between pointer and integer [-Werror]
     else if (t_req == NULL)
                    ^~
../../../common/modules/genunix/gcore.c:961:17: error: comparison between pointer and integer [-Werror]
     if (t_istop == NULL ||
                 ^~
../../../common/modules/genunix/gcore.c: In function 'gcore_schedctl_finish_sigblock':
../../../common/modules/genunix/gcore.c:1099:20: error: comparison between pointer and integer [-Werror]
  if (t->t_schedctl == NULL) {
                    ^~
../../../common/modules/genunix/gcore.c: In function 'gcore_lstatus_cb':
../../../common/modules/genunix/gcore.c:1321:13: error: comparison between pointer and integer [-Werror]
  if (t_addr == NULL) {
             ^~
../../../common/modules/genunix/gcore.c: In function 'Pstatus_gcore':
../../../common/modules/genunix/gcore.c:1697:13: error: comparison between pointer and integer [-Werror]
  if (t_addr != NULL) {
             ^~
../../../common/modules/genunix/gcore.c: In function 'Ppsinfo_gcore':
../../../common/modules/genunix/gcore.c:1763:35: error: comparison between pointer and integer [-Werror]
  if ((t_addr = gcore_prchoose(p)) == NULL) {
                                   ^~
../../../common/modules/genunix/gcore.c: In function 'Pldt_gcore':
../../../common/modules/genunix/gcore.c:1940:15: error: comparison between pointer and integer [-Werror]
  if (p->p_ldt == NULL) {
               ^~

../../../common/modules/genunix/genunix.c: In function 'pgrep_cb':
../../../common/modules/genunix/genunix.c:420:22: error: comparison between pointer and integer [-Werror]
    if (pgp->pg_xaddr == NULL || start > pgp->pg_xstart) {
                      ^~
../../../common/modules/genunix/genunix.c:425:22: error: comparison between pointer and integer [-Werror]
    if (pgp->pg_xaddr == NULL || start < pgp->pg_xstart) {
                      ^~
../../../common/modules/genunix/genunix.c: In function 'callout_walk_init':
../../../common/modules/genunix/genunix.c:585:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'callout_walk_step':
../../../common/modules/genunix/genunix.c:602:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'callout_list_walk_init':
../../../common/modules/genunix/genunix.c:637:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'callout_list_walk_step':
../../../common/modules/genunix/genunix.c:650:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'callout_table_walk_init':
../../../common/modules/genunix/genunix.c:692:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'callout_t_cb':
../../../common/modules/genunix/genunix.c:1208:46: error: comparison between pointer and integer [-Werror]
      (ct->ct_heap == NULL) || (ct->ct_cyclic == NULL))) {
                                              ^~
../../../common/modules/genunix/genunix.c: In function 'callout':
../../../common/modules/genunix/genunix.c:1548:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   addr = NULL;
        ^
../../../common/modules/genunix/genunix.c:1550:11: error: comparison between pointer and integer [-Werror]
  if (addr != NULL) {
           ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/sys/param.h:48:0,
                 from ../../../common/mdb/mdb_param.h:58,
                 from ../../../common/modules/genunix/genunix.c:28:
../../../common/modules/genunix/genunix.c: In function 'lminfo':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'mdb_pwalk' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/genunix.c:1984:51: note: in expansion of macro 'NULL'
  return (mdb_pwalk("lock_graph", lminfo_cb, NULL, NULL));
                                                   ^~~~
In file included from ../../../common/modules/genunix/genunix.c:29:0:
../../../common/mdb/mdb_modapi.h:186:12: note: expected 'uintptr_t {aka long unsigned int}' but argument is of type 'void *'
 extern int mdb_pwalk(const char *, mdb_walk_cb_t, void *, uintptr_t);
            ^~~~~~~~~
../../../common/modules/genunix/genunix.c: In function 'whereopen_fwalk':
../../../common/modules/genunix/genunix.c:1993:11: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   *target = NULL;
           ^
../../../common/modules/genunix/genunix.c: In function 'whereopen_pwalk':
../../../common/modules/genunix/genunix.c:2010:8: error: comparison between pointer and integer [-Werror]
  if (t == NULL)
        ^~
../../../common/modules/genunix/genunix.c: In function 'whereopen':
../../../common/modules/genunix/genunix.c:2022:39: error: comparison between pointer and integer [-Werror]
  if (!(flags & DCMD_ADDRSPEC) || addr == NULL)
                                       ^~
../../../common/modules/genunix/genunix.c: In function 'kmastat_vmem':
../../../common/modules/genunix/genunix.c:2202:46: error: comparison between pointer and integer [-Werror]
  for (paddr = (uintptr_t)v->vm_source; paddr != NULL; ident += 4) {
                                              ^~
../../../common/modules/genunix/genunix.c: In function 'file_walk_init':
../../../common/modules/genunix/genunix.c:2485:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'file_walk_step':
../../../common/modules/genunix/genunix.c:2534:59: error: comparison between pointer and integer [-Werror]
  if ((fp = (uintptr_t)fw->fw_flist[fw->fw_ndx++].uf_file) == NULL)
                                                           ^~
../../../common/modules/genunix/genunix.c: In function 'allfile_walk_step':
../../../common/modules/genunix/genunix.c:2551:59: error: comparison between pointer and integer [-Werror]
  if ((fp = (uintptr_t)fw->fw_flist[fw->fw_ndx++].uf_file) != NULL)
                                                           ^~
../../../common/modules/genunix/genunix.c: In function 'port_walk_init':
../../../common/modules/genunix/genunix.c:2571:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'portev_walk_init':
../../../common/modules/genunix/genunix.c:2622:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'proc_walk_init':
../../../common/modules/genunix/genunix.c:2705:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'proc_walk_step':
../../../common/modules/genunix/genunix.c:2766:29: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = cld) != NULL) {
                             ^~
../../../common/modules/genunix/genunix.c:2792:10: error: comparison between pointer and integer [-Werror]
  if (sib != NULL && mdb_ctf_vread(&pr, "proc_t", "mdb_walk_proc_t",
          ^~
../../../common/modules/genunix/genunix.c:2796:7: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   sib = NULL;
       ^
../../../common/modules/genunix/genunix.c:2799:29: error: comparison between pointer and integer [-Werror]
  if ((wsp->walk_addr = sib) == NULL) {
                             ^~
../../../common/modules/genunix/genunix.c: In function 'project_walk_init':
../../../common/modules/genunix/genunix.c:2861:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/genunix.c: In function 'cpu_walk_init':
../../../common/modules/genunix/genunix.c:2944:15: error: comparison between pointer and integer [-Werror]
  if (panicstr != NULL) {
               ^~
../../../common/modules/genunix/genunix.c:2979:16: error: comparison between pointer and integer [-Werror]
   if (panicstr != NULL && panic_cpu.cpu_id == cpu.cpu_id) {
                ^~
../../../common/modules/genunix/genunix.c: In function 'cpu_walk_step':
../../../common/modules/genunix/genunix.c:2999:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/genunix.c: In function 'cpuinfo_walk_ithread':
../../../common/modules/genunix/genunix.c:3048:29: error: comparison between pointer and integer [-Werror]
  if (cid->cid_ithr[id][pil] != NULL) {
                             ^~
../../../common/modules/genunix/genunix.c: In function 'cpuinfo_walk_cpu':
../../../common/modules/genunix/genunix.c:3209:14: error: comparison between pointer and integer [-Werror]
    if (iaddr == NULL)
              ^~
../../../common/modules/genunix/genunix.c:3239:27: error: comparison between pointer and integer [-Werror]
   if (found_one && pinned != NULL) {
                           ^~
../../../common/modules/genunix/genunix.c:3288:17: error: comparison between pointer and integer [-Werror]
    while (taddr != NULL) {
                 ^~
../../../common/modules/genunix/genunix.c: In function 'ptree_walk':
../../../common/modules/genunix/genunix.c:3458:47: error: comparison between pointer and integer [-Werror]
  for (paddr = (uintptr_t)proc.p_parent; paddr != NULL; ident += 5) {
                                               ^~
../../../common/modules/genunix/genunix.c: In function 'ptree':
../../../common/modules/genunix/genunix.c:3492:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   addr = NULL;
        ^
../../../common/modules/genunix/genunix.c: In function 'errorq_walk_init':
../../../common/modules/genunix/genunix.c:3708:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL &&
                     ^~
../../../common/modules/genunix/genunix.c: In function 'errorq_walk_step':
../../../common/modules/genunix/genunix.c:3723:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/genunix.c: In function 'eqd_push_list':
../../../common/modules/genunix/genunix.c:3755:14: error: comparison between pointer and integer [-Werror]
  while (addr != NULL) {
              ^~

../../../common/modules/genunix/cyclic.c: In function 'cycomni_walk_init':
../../../common/modules/genunix/cyclic.c:91:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/cyclic.c: In function 'cycomni_walk_step':
../../../common/modules/genunix/cyclic.c:118:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/cyclic.c: In function 'cyctrace_walk_init':
../../../common/modules/genunix/cyclic.c:474:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/cyclic.c: In function 'cyctrace':
../../../common/modules/genunix/cyclic.c:598:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   addr = NULL;
        ^

../../../common/modules/genunix/devinfo.c: In function 'devinfo_parents_walk_init':
../../../common/modules/genunix/devinfo.c:141:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/genunix/devinfo.c:144:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'devinfo_children_walk_init':
../../../common/modules/genunix/devinfo.c:236:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/genunix/devinfo.c:239:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'devinfo_children_walk_step':
../../../common/modules/genunix/devinfo.c:269:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'devnames_walk_init':
../../../common/modules/genunix/devinfo.c:450:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'devinfo_siblings_walk_init':
../../../common/modules/genunix/devinfo.c:511:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/genunix/devinfo.c: In function 'devinfo_siblings_walk_step':
../../../common/modules/genunix/devinfo.c:542:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/devinfo.c: In function 'devi_next_walk_step':
../../../common/modules/genunix/devinfo.c:560:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'devinfo_print_props_guess':
../../../common/modules/genunix/devinfo.c:677:15: error: comparison between pointer and integer [-Werror]
  if (prop_len == NULL) {
               ^~
../../../common/modules/genunix/devinfo.c: In function 'prtconf':
../../../common/modules/genunix/devinfo.c:1064:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/genunix/devinfo.c: In function 'soft_state_walk_init':
../../../common/modules/genunix/devinfo.c:1567:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'binding_hash_walk_init':
../../../common/modules/genunix/devinfo.c:1710:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'binding_hash_walk_step':
../../../common/modules/genunix/devinfo.c:1738:16: error: comparison between pointer and integer [-Werror]
  while (bind_p != NULL) {
                ^~
../../../common/modules/genunix/devinfo.c: In function 'binding_hash_entry':
../../../common/modules/genunix/devinfo.c:1772:30: error: comparison between pointer and integer [-Werror]
  if ((flags & DCMD_ADDRSPEC) == NULL)
                              ^~
../../../common/modules/genunix/devinfo.c:1776:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/devinfo.c: In function 'devinfo_audit_log_walk_step':
../../../common/modules/genunix/devinfo.c:1858:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/devinfo.c:1871:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   wsp->walk_addr = NULL;
                  ^
../../../common/modules/genunix/devinfo.c: In function 'devinfo_audit_node_walk_step':
../../../common/modules/genunix/devinfo.c:1994:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'devinfo_fmc_walk_init':
../../../common/modules/genunix/devinfo.c:2120:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/devinfo.c: In function 'minornode_walk_init':
../../../common/modules/genunix/devinfo.c:2162:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/genunix/devinfo.c: In function 'minornode_walk_step':
../../../common/modules/genunix/devinfo.c:2182:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~

In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/idm/idm.c:25:
../../../common/modules/idm/idm.c: In function 'iscsi_cmd':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'mdb_pwalk' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/idm/idm.c:670:13: note: in expansion of macro 'NULL'
       &idc, NULL) == -1) {
             ^~~~
In file included from ../../../common/modules/idm/idm.c:25:0:
../../../common/mdb/mdb_modapi.h:186:12: note: expected 'uintptr_t {aka long unsigned int}' but argument is of type 'void *'
 extern int mdb_pwalk(const char *, mdb_walk_cb_t, void *, uintptr_t);
            ^~~~~~~~~
In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/idm/idm.c:25:
../../../common/modules/idm/idm.c: In function 'iscsi_walk_all_sess':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'mdb_pwalk' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/idm/idm.c:799:12: note: in expansion of macro 'NULL'
       idc, NULL) == -1) {
            ^~~~
In file included from ../../../common/modules/idm/idm.c:25:0:
../../../common/mdb/mdb_modapi.h:186:12: note: expected 'uintptr_t {aka long unsigned int}' but argument is of type 'void *'
 extern int mdb_pwalk(const char *, mdb_walk_cb_t, void *, uintptr_t);
            ^~~~~~~~~
../../../common/modules/idm/idm.c: In function 'iscsi_conn_impl':
../../../common/modules/idm/idm.c:1912:18: error: comparison between pointer and integer [-Werror]
    if (task_addr == NULL) {
                  ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_sess_walk_init':
../../../common/modules/idm/idm.c:3231:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_sess_step':
../../../common/modules/idm/idm.c:3250:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_conn_walk_init':
../../../common/modules/idm/idm.c:3272:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_conn_step':
../../../common/modules/idm/idm.c:3291:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_lun_walk_init':
../../../common/modules/idm/idm.c:3314:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_lun_step':
../../../common/modules/idm/idm.c:3332:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_cmd_walk_init':
../../../common/modules/idm/idm.c:3354:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_cmd_step':
../../../common/modules/idm/idm.c:3372:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/idm/idm.c: In function 'iscsi_ini_hba_walk_init':
../../../common/modules/idm/idm.c:3425:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~

../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_vnode2path':
../../../common/modules/mdb_ks/mdb_ks.c:511:12: error: comparison between pointer and integer [-Werror]
  if ((addr == NULL) && (path.mdp_nelem == 0)) {
            ^~
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_page_lookup':
../../../common/modules/mdb_ks/mdb_ks.c:669:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/mdb_ks/mdb_ks.c:678:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/mdb_ks/mdb_ks.c:681:12: error: comparison between pointer and integer [-Werror]
  while (pp != NULL) {
            ^~
../../../common/modules/mdb_ks/mdb_ks.c:687:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/mdb_ks/mdb_ks.c:707:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/mdb_ks/mdb_ks.c:713:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_addr2modctl':
../../../common/modules/mdb_ks/mdb_ks.c:840:16: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  a2m.a2m_where = NULL;
                ^
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_qrnext':
../../../common/modules/mdb_ks/mdb_ks.c:941:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_qwnext':
../../../common/modules/mdb_ks/mdb_ks.c:952:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../../common/modules/mdb_ks/mdb_ks.c: In function 'find_mbind':
../../../common/modules/mdb_ks/mdb_ks.c:995:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/mdb_ks/mdb_ks.c:1001:11: error: return makes integer from pointer without a cast [-Werror=int-conversion]
    return (NULL);
           ^
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_name_to_major':
../../../common/modules/mdb_ks/mdb_ks.c:1025:45: error: comparison between pointer and integer [-Werror]
  if ((mbind = find_mbind(name, mb_hashtab)) != NULL) {
                                             ^~
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_kproc_as':
../../../common/modules/mdb_ks/mdb_ks.c:1279:9: error: return makes integer from pointer without a cast [-Werror=int-conversion]
  return (NULL);
         ^
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_dump_print_content':
../../../common/modules/mdb_ks/mdb_ks.c:1434:60: error: comparison between pointer and integer [-Werror]
  if (mdb_readvar(&pt, "panic_thread") != sizeof (pt) || pt == NULL)
                                                            ^~
../../../common/modules/mdb_ks/mdb_ks.c:1438:31: error: comparison between pointer and integer [-Werror]
      t_procp)) == -1 || procp == NULL)
                               ^~
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_ddi_root_node':
../../../common/modules/mdb_ks/mdb_ks.c:1493:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/mdb_ks/mdb_ks.c: In function 'mdb_ddi_deviname':
../../../common/modules/mdb_ks/mdb_ks.c:1548:15: error: comparison between pointer and integer [-Werror]
  if (addrname != NULL) {
               ^~

../../../common/libstand/getopt.c: In function 'getopt':
../../../common/libstand/getopt.c:59:39: error: comparison between pointer and integer [-Werror]
   else if (strcmp(argv[optind], "--") == NULL) {
                                       ^~

../../mdb/kvm_amd64dep.c: In function 'kt_amd64_init':
../../mdb/kvm_amd64dep.c:274:62: error: comparison between pointer and integer [-Werror]
      MDB_TGT_OBJ_EXEC, "panic_reg") == sizeof (addr) && addr != NULL &&
                                                              ^~

../../../common/modules/genunix/avl.c: In function 'avl_walk_init_range':
../../../common/modules/genunix/avl.c:117:20: error: comparison between pointer and integer [-Werror]
  aw->aw_end = (end == NULL ? NULL : end + tree->avl_offset);
                    ^~
../../../common/modules/genunix/avl.c:117:35: error: pointer/integer type mismatch in conditional expression [-Werror]
  aw->aw_end = (end == NULL ? NULL : end + tree->avl_offset);
                                   ^
../../../common/modules/genunix/avl.c:117:13: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  aw->aw_end = (end == NULL ? NULL : end + tree->avl_offset);
             ^
../../../common/modules/genunix/avl.c:126:12: error: comparison between pointer and integer [-Werror]
  if (begin == NULL) {
            ^~
../../../common/modules/genunix/avl.c:128:12: error: comparison between pointer and integer [-Werror]
   if (addr == NULL) {
            ^~
../../../common/modules/genunix/avl.c:129:19: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
    wsp->walk_addr = NULL;
                   ^
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/avl.h:37,
                 from ../../../common/modules/genunix/avl.c:29:
../../../common/modules/genunix/avl.c: In function 'avl_walk_init':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 2 of 'avl_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/avl.c:153:35: note: in expansion of macro 'NULL'
  return (avl_walk_init_range(wsp, NULL, NULL, NULL, NULL, NULL, NULL));
                                   ^~~~
../../../common/modules/genunix/avl.c:80:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 avl_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/avl.h:37,
                 from ../../../common/modules/genunix/avl.c:29:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'avl_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/avl.c:153:41: note: in expansion of macro 'NULL'
  return (avl_walk_init_range(wsp, NULL, NULL, NULL, NULL, NULL, NULL));
                                         ^~~~
../../../common/modules/genunix/avl.c:80:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 avl_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/avl.h:37,
                 from ../../../common/modules/genunix/avl.c:29:
../../../common/modules/genunix/avl.c: In function 'avl_walk_init_named':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 2 of 'avl_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/avl.c:160:35: note: in expansion of macro 'NULL'
  return (avl_walk_init_range(wsp, NULL, NULL, avl_name, element_name,
                                   ^~~~
../../../common/modules/genunix/avl.c:80:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 avl_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/avl.h:37,
                 from ../../../common/modules/genunix/avl.c:29:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'avl_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/avl.c:160:41: note: in expansion of macro 'NULL'
  return (avl_walk_init_range(wsp, NULL, NULL, avl_name, element_name,
                                         ^~~~
../../../common/modules/genunix/avl.c:80:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 avl_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/avl.h:37,
                 from ../../../common/modules/genunix/avl.c:29:
../../../common/modules/genunix/avl.c: In function 'avl_walk_init_checked':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 2 of 'avl_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/avl.c:169:35: note: in expansion of macro 'NULL'
  return (avl_walk_init_range(wsp, NULL, NULL, avl_name, element_name,
                                   ^~~~
../../../common/modules/genunix/avl.c:80:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 avl_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/avl.h:37,
                 from ../../../common/modules/genunix/avl.c:29:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'avl_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/avl.c:169:41: note: in expansion of macro 'NULL'
  return (avl_walk_init_range(wsp, NULL, NULL, avl_name, element_name,
                                         ^~~~
../../../common/modules/genunix/avl.c:80:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 avl_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~
../../../common/modules/genunix/avl.c: In function 'avl_walk_step':
../../../common/modules/genunix/avl.c:192:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/genunix/avl.c:197:17: error: comparison between pointer and integer [-Werror]
  if (aw->aw_end != NULL && wsp->walk_addr == aw->aw_end)
                 ^~
../../../common/modules/genunix/avl.c:238:11: error: comparison between pointer and integer [-Werror]
  if (addr != NULL) {
           ^~
../../../common/modules/genunix/avl.c:252:13: error: comparison between pointer and integer [-Werror]
    if (addr == NULL)
             ^~

../../../common/modules/libsysevent/libsysevent.c: In function 'sysevent_walk_init':
../../../common/modules/libsysevent/libsysevent.c:131:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libsysevent/libsysevent.c: In function 'sysevent_walk_step':
../../../common/modules/libsysevent/libsysevent.c:145:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/sysevent.c: In function 'sysevent_subclass_list_walk_init':
../../../common/modules/genunix/sysevent.c:184:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/sysevent.c: In function 'sysevent_subclass_list_walk_step':
../../../common/modules/genunix/sysevent.c:199:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/genunix/sysevent.c: In function 'sysevent_class_list_walk_init':
../../../common/modules/genunix/sysevent.c:233:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/sysevent.c: In function 'sysevent_class_list_walk_step':
../../../common/modules/genunix/sysevent.c:262:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~

../../../common/modules/genunix/list.c: In function 'list_walk_init_range':
../../../common/modules/genunix/list.c:88:21: error: comparison between pointer and integer [-Werror]
  lwd->lw_end = (end == NULL ? NULL : end + lwd->lw_offset);
                     ^~
../../../common/modules/genunix/list.c:88:36: error: pointer/integer type mismatch in conditional expression [-Werror]
  lwd->lw_end = (end == NULL ? NULL : end + lwd->lw_offset);
                                    ^
../../../common/modules/genunix/list.c:88:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  lwd->lw_end = (end == NULL ? NULL : end + lwd->lw_offset);
              ^
../../../common/modules/genunix/list.c:93:26: error: comparison between pointer and integer [-Werror]
  wsp->walk_addr = (begin == NULL
                          ^~
In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/genunix/list.c:29:
../../../common/modules/genunix/list.c: In function 'list_walk_init':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 2 of 'list_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/list.c:104:36: note: in expansion of macro 'NULL'
  return (list_walk_init_range(wsp, NULL, NULL, NULL, NULL, NULL, NULL));
                                    ^~~~
../../../common/modules/genunix/list.c:58:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 list_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/genunix/list.c:29:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'list_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/list.c:104:42: note: in expansion of macro 'NULL'
  return (list_walk_init_range(wsp, NULL, NULL, NULL, NULL, NULL, NULL));
                                          ^~~~
../../../common/modules/genunix/list.c:58:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 list_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/genunix/list.c:29:
../../../common/modules/genunix/list.c: In function 'list_walk_init_named':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 2 of 'list_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/list.c:111:36: note: in expansion of macro 'NULL'
  return (list_walk_init_range(wsp, NULL, NULL, list_name, element_name,
                                    ^~~~
../../../common/modules/genunix/list.c:58:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 list_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/genunix/list.c:29:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'list_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/list.c:111:42: note: in expansion of macro 'NULL'
  return (list_walk_init_range(wsp, NULL, NULL, list_name, element_name,
                                          ^~~~
../../../common/modules/genunix/list.c:58:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 list_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/genunix/list.c:29:
../../../common/modules/genunix/list.c: In function 'list_walk_init_checked':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 2 of 'list_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/list.c:120:36: note: in expansion of macro 'NULL'
  return (list_walk_init_range(wsp, NULL, NULL, list_name, element_name,
                                    ^~~~
../../../common/modules/genunix/list.c:58:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 list_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~~
In file included from ../../../common/mdb/mdb_modapi.h:40:0,
                 from ../../../common/modules/genunix/list.c:29:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 3 of 'list_walk_init_range' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/list.c:120:42: note: in expansion of macro 'NULL'
  return (list_walk_init_range(wsp, NULL, NULL, list_name, element_name,
                                          ^~~~
../../../common/modules/genunix/list.c:58:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 list_walk_init_range(mdb_walk_state_t *wsp, uintptr_t begin, uintptr_t end,
 ^~~~~~~~~~~~~~~~~~~~
../../../common/modules/genunix/list.c: In function 'list_walk_step':
../../../common/modules/genunix/list.c:135:18: error: comparison between pointer and integer [-Werror]
  if (lwd->lw_end != NULL && wsp->walk_addr == lwd->lw_end)
                  ^~

../../../common/modules/mdb_ds/mdb_ds.c: In function 'cmd_wr':
../../../common/modules/mdb_ds/mdb_ds.c:386:14: error: comparison between pointer and integer [-Werror]
    if (pathp == NULL)
              ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function 'iob_stack_walk_step':
../../../common/modules/mdb_ds/mdb_ds.c:430:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function 'frame_walk_init':
../../../common/modules/mdb_ds/mdb_ds.c:445:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function 'frame_walk_step':
../../../common/modules/mdb_ds/mdb_ds.c:457:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function 'target_walk_init':
../../../common/modules/mdb_ds/mdb_ds.c:472:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function 'target_walk_step':
../../../common/modules/mdb_ds/mdb_ds.c:484:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function 'sespec_walk_step':
../../../common/modules/mdb_ds/mdb_ds.c:502:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function 'vespec_walk_step':
../../../common/modules/mdb_ds/mdb_ds.c:520:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function 'se_matched_walk_step':
../../../common/modules/mdb_ds/mdb_ds.c:538:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/mdb_ds/mdb_ds.c: In function '_mdb_init':
../../../common/modules/mdb_ds/mdb_ds.c:600:57: error: comparison between pointer and integer [-Werror]
  if (mdb_readvar(&addr, "_mdb_abort_str") != -1 && addr != NULL &&
                                                         ^~
../../../common/modules/zfs/zfs.c: In function 'metaslab_stats':
../../../common/modules/zfs/zfs.c:1561:16: error: comparison between pointer and integer [-Werror]
   if (ms.ms_sm != NULL &&
                ^~
../../../common/modules/zfs/zfs.c:1575:53: error: comparison between pointer and integer [-Werror]
   if ((spa_flags & SPA_FLAG_HISTOGRAMS) && ms.ms_sm != NULL) {
                                                     ^~
../../../common/modules/zfs/zfs.c:1578:19: error: comparison between pointer and integer [-Werror]
    if (sm.sm_phys == NULL)
                   ^~
../../../common/modules/zfs/zfs.c: In function 'metaslab_trace':
../../../common/modules/zfs/zfs.c:1929:18: error: comparison between pointer and integer [-Werror]
  if (mat.mat_msp != NULL) {
                  ^~
../../../common/modules/zfs/zfs.c:1957:17: error: comparison between pointer and integer [-Werror]
  if (mat.mat_mg != NULL &&
                 ^~
../../../common/modules/zfs/zfs.c:1963:15: error: comparison between pointer and integer [-Werror]
  if (mg.mg_vd != NULL) {
               ^~
../../../common/modules/zfs/zfs.c:1972:22: error: comparison between pointer and integer [-Werror]
   if (vdev.vdev_path != NULL) {
                      ^~
../../../common/modules/zfs/zfs.c:1987:28: error: comparison between pointer and integer [-Werror]
   } else if (vdev.vdev_ops != NULL) {
                            ^~
../../../common/modules/zfs/zfs.c: In function 'metaslab_walk_init':
../../../common/modules/zfs/zfs.c:2073:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/zfs/zfs.c: In function 'space_cb':
../../../common/modules/zfs/zfs.c:2174:15: error: comparison between pointer and integer [-Werror]
  if (ms.ms_sm != NULL &&
               ^~
../../../common/modules/zfs/zfs.c:2179:17: error: comparison between pointer and integer [-Werror]
  if (sm.sm_phys != NULL) {
                 ^~
../../../common/modules/zfs/zfs.c: In function 'spa_vdevs':
../../../common/modules/zfs/zfs.c:2373:24: error: comparison between pointer and integer [-Werror]
  if (spa.spa_root_vdev == NULL) {
                        ^~
../../../common/modules/zfs/zfs.c: In function 'multilist_walk_init':
../../../common/modules/zfs/zfs.c:2653:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/zfs/zfs.c:2665:30: error: comparison between pointer and integer [-Werror]
      mwd->mwd_ml.ml_sublists == NULL) {
                              ^~
../../../common/modules/zfs/zfs.c: In function 'txg_list_walk_step':
../../../common/modules/zfs/zfs.c:2754:24: error: comparison between pointer and integer [-Werror]
  while (wsp->walk_addr == NULL && lwd->lw_txgoff < lwd->lw_maxoff) {
                        ^~
../../../common/modules/zfs/zfs.c:2759:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/zfs/zfs.c: In function 'spa_walk_init':
../../../common/modules/zfs/zfs.c:2788:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/zfs/zfs.c: In function 'sa_attr_print':
../../../common/modules/zfs/zfs.c:3235:16: error: comparison between pointer and integer [-Werror]
      spill_tab == NULL) {
                ^~
../../../common/modules/zfs/zfs.c: In function 'zfs_acl_node_walk_init':
../../../common/modules/zfs/zfs.c:3549:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/zfs/zfs.c: In function 'zfs_aces_walk_init_common':
../../../common/modules/zfs/zfs.c:3590:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/genunix/nvpair.c: In function 'nvpair_walk_init':
../../../common/modules/genunix/nvpair.c:50:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/genunix/nvpair.c: In function 'nvpair_walk_step':
../../../common/modules/genunix/nvpair.c:77:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/libpython/libpython.c: In function 'py_walk_step':
../../../common/modules/libpython/libpython.c:203:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~

../../../common/modules/libproc/libproc.c: In function 'pr_file_info_walk_init':
../../../common/modules/libproc/libproc.c:237:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libproc/libproc.c: In function 'pr_map_info_walk_init':
../../../common/modules/libproc/libproc.c:303:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/libc/libc.c: In function 'uc_walk_step':
../../../common/modules/libc/libc.c:327:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/libc/libc.c: In function 'oldc_walk_init':
../../../common/modules/libc/libc.c:349:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr != NULL) {
                     ^~
../../../common/modules/libc/libc.c: In function 'oldc_walk_step':
../../../common/modules/libc/libc.c:381:12: error: comparison between pointer and integer [-Werror]
   if (addr == NULL)
            ^~
../../../common/modules/libc/libc.c: In function 'uberdata_addr':
../../../common/modules/libc/libc.c:721:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/libc/libc.c:724:11: error: comparison between pointer and integer [-Werror]
      addr != NULL &&
           ^~
../../../common/modules/libc/libc.c:726:12: error: comparison between pointer and integer [-Werror]
      uaddr != NULL) {
            ^~
../../../common/modules/libc/libc.c:731:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
   return (NULL);
          ^
../../../common/modules/libc/libc.c: In function 'd_uberdata':
../../../common/modules/libc/libc.c:748:59: error: comparison between pointer and integer [-Werror]
  if (!(flags & DCMD_ADDRSPEC) && (addr = uberdata_addr()) == NULL)
                                                           ^~
../../../common/modules/libc/libc.c: In function 'ulwp_walk_init':
../../../common/modules/libc/libc.c:925:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL &&
           ^~
../../../common/modules/libc/libc.c:926:37: error: comparison between pointer and integer [-Werror]
      ((uber_addr = uberdata_addr()) == NULL ||
                                     ^~
../../../common/modules/libc/libc.c:932:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/libc/libc.c: In function 'ulwp_walk_step':
../../../common/modules/libc/libc.c:945:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/libc/libc.c:959:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   wsp->walk_addr = NULL;
                  ^
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/mdb_modapi.h:39,
                 from ../../../common/modules/libc/libc.c:28:
../../../common/modules/libc/libc.c: In function 'd_tsd':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/libc/libc.c:1110:18: note: in expansion of macro 'NULL'
  uintptr_t key = NULL;
                  ^~~~
../../../common/modules/libc/libc.c:1116:38: error: comparison between pointer and integer [-Werror]
  if (!(flags & DCMD_ADDRSPEC) || key == NULL)
                                      ^~
../../../common/modules/libc/findstack_subr.c: In function 'sobj_ops_to_text':
../../../common/modules/libc/findstack_subr.c:108:38: error: comparison between pointer and integer [-Werror]
  (void) snprintf(out, sz, "%s", addr == NULL ? "<none>" : (char *)addr);
                                      ^~
../../../common/modules/libc/findstack_subr.c: In function 'stacks_findstack':
../../../common/modules/libc/findstack_subr.c:262:65: error: pointer/integer type mismatch in conditional expression [-Werror]
  fsip->fsi_sobj_ops = (uintptr_t)(ulwp.ul_sleepq == NULL ? NULL :
                                                                 ^
../../../common/modules/libc/findstack_subr.c:281:12: error: comparison between pointer and integer [-Werror]
  while (fp != NULL) {
            ^~
../../../common/modules/libc/findstack_subr.c:288:20: error: comparison between pointer and integer [-Werror]
   if (frame.rw_rtn == NULL)
                    ^~

../../../common/modules/libtopo/libtopo.c: In function 'ttree_walk_init':
../../../common/modules/libtopo/libtopo.c:576:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'ttree_walk_step':
../../../common/modules/libtopo/libtopo.c:599:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'tmod_walk_init':
../../../common/modules/libtopo/libtopo.c:631:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'tmod_walk_step':
../../../common/modules/libtopo/libtopo.c:670:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/libtopo/libtopo.c:696:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   wsp->walk_addr = NULL;
                  ^
../../../common/modules/libtopo/libtopo.c: In function 'tpg_walk_init':
../../../common/modules/libtopo/libtopo.c:713:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'tpg_walk_step':
../../../common/modules/libtopo/libtopo.c:736:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'tpl_walk_init':
../../../common/modules/libtopo/libtopo.c:769:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'tpl_walk_step':
../../../common/modules/libtopo/libtopo.c:792:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'tnh_walk_init':
../../../common/modules/libtopo/libtopo.c:826:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'tlist_walk_init':
../../../common/modules/libtopo/libtopo.c:899:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libtopo/libtopo.c: In function 'tlist_walk_step':
../../../common/modules/libtopo/libtopo.c:921:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~

../../../common/modules/genunix/leaky.c: In function 'leaky_grep':
../../../common/modules/genunix/leaky.c:253:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL || size == 0)
           ^~
../../../common/modules/genunix/leaky.c: In function 'leaky_filter':
../../../common/modules/genunix/leaky.c:669:13: error: comparison between pointer and integer [-Werror]
  if (filter == NULL)
             ^~
../../../common/modules/genunix/leaky.c: In function 'leaky_dump':
../../../common/modules/genunix/leaky.c:715:14: error: comparison between pointer and integer [-Werror]
   if (filter != NULL)
              ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from ../../../common/mdb/mdb_modapi.h:39,
                 from ../../../common/modules/genunix/leaky.c:34:
../../../common/modules/genunix/leaky.c: In function 'findleaks':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/genunix/leaky.c:783:21: note: in expansion of macro 'NULL'
  uintptr_t filter = NULL;
                     ^~~~
../../../common/modules/genunix/leaky.c: In function 'leaky_walk_init':
../../../common/modules/genunix/leaky.c:904:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/smbsrv/smbsrv.c: In function 'smb_vfs_walk_init':
../../../common/modules/smbsrv/smbsrv.c:1533:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/smbsrv/smbsrv.c: In function 'smb_node_walk_init':
../../../common/modules/smbsrv/smbsrv.c:1784:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~

../../../common/modules/libumem/umem.c: In function 'umem_ptc_walk_init':
../../../common/modules/libumem/umem.c:111:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libumem/umem.c: In function 'umem_ptc_walk_step':
../../../common/modules/libumem/umem.c:140:12: error: comparison between pointer and integer [-Werror]
   if (this == NULL)
            ^~
../../../common/modules/libumem/umem.c: In function 'umem_log_status':
../../../common/modules/libumem/umem.c:306:10: error: comparison between pointer and integer [-Werror]
  if (pos == NULL)
          ^~
../../../common/modules/libumem/umem.c: In function 'umem_cpu_cache_walk_init':
../../../common/modules/libumem/umem.c:519:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libumem/umem.c: In function 'umem_slab_walk_init':
../../../common/modules/libumem/umem.c:557:12: error: comparison between pointer and integer [-Werror]
  if (caddr == NULL) {
            ^~
../../../common/modules/libumem/umem.c: In function 'umem_slab_walk_partial_init':
../../../common/modules/libumem/umem.c:580:12: error: comparison between pointer and integer [-Werror]
  if (caddr == NULL) {
            ^~
../../../common/modules/libumem/umem.c: In function 'umem_hash_walk_init':
../../../common/modules/libumem/umem.c:708:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from ../../../common/mdb/mdb_modapi.h:39,
                 from ../../../common/modules/libumem/umem.h:31,
                 from ../../../common/modules/libumem/umem.c:31:
../../../common/modules/libumem/umem.c: In function 'umem_hash_walk_step':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/libumem/umem.c:748:19: note: in expansion of macro 'NULL'
  uintptr_t addr = NULL;
                   ^~~~
../../../common/modules/libumem/umem.c:750:49: error: comparison between pointer and integer [-Werror]
  if ((addr = (uintptr_t)umhw->umhw_cur.bc_next) == NULL) {
                                                 ^~
../../../common/modules/libumem/umem.c:752:52: error: comparison between pointer and integer [-Werror]
    if ((addr = umhw->umhw_table[umhw->umhw_pos++]) != NULL)
                                                    ^~
../../../common/modules/libumem/umem.c:756:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/libumem/umem.c: In function 'umem_walk_init_common':
../../../common/modules/libumem/umem.c:1129:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL) {
           ^~
../../../common/modules/libumem/umem.c: In function 'umem_walk_init':
../../../common/modules/libumem/umem.c:1596:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/libumem/umem.c: In function 'bufctl_walk_init':
../../../common/modules/libumem/umem.c:1604:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/libumem/umem.c: In function 'freemem_walk_init':
../../../common/modules/libumem/umem.c:1612:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/libumem/umem.c: In function 'freectl_walk_init':
../../../common/modules/libumem/umem.c:1620:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL)
                     ^~
../../../common/modules/libumem/umem.c: In function 'bufctl_history_walk_init':
../../../common/modules/libumem/umem.c:1639:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libumem/umem.c: In function 'bufctl_history_walk_step':
../../../common/modules/libumem/umem.c:1684:11: error: comparison between pointer and integer [-Werror]
  if (addr == NULL)
           ^~
../../../common/modules/libumem/umem.c: In function 'umem_log_walk_init':
../../../common/modules/libumem/umem.c:1738:9: error: comparison between pointer and integer [-Werror]
  if (lp == NULL && umem_readvar(&lp, "umem_transaction_log") == -1) {
         ^~
../../../common/modules/libumem/umem.c:1743:9: error: comparison between pointer and integer [-Werror]
  if (lp == NULL) {
         ^~
../../../common/modules/libumem/umem.c: In function 'allocdby_walk_init_common':
../../../common/modules/libumem/umem.c:1887:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from ../../../common/mdb/mdb_modapi.h:39,
                 from ../../../common/modules/libumem/umem.h:31,
                 from ../../../common/modules/libumem/umem.c:31:
../../../common/modules/libumem/umem.c: In function 'whatis_walk_umem':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'whatis_print_umem' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/libumem/umem.c:2068:36: note: in expansion of macro 'NULL'
   whatis_print_umem(wi, cur, addr, NULL);
                                    ^~~~
../../../common/modules/libumem/umem.c:2034:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 whatis_print_umem(whatis_info_t *wi, uintptr_t maddr, uintptr_t addr,
 ^~~~~~~~~~~~~~~~~
../../../common/modules/libumem/umem.c: In function 'umem_log':
../../../common/modules/libumem/umem.c:2388:10: error: comparison between pointer and integer [-Werror]
  if (lhp == NULL) {
          ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from ../../../common/mdb/mdb_modapi.h:39,
                 from ../../../common/modules/libumem/umem.h:31,
                 from ../../../common/modules/libumem/umem.c:31:
../../../common/modules/libumem/umem.c: In function 'bufctl':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/libumem/umem.c:2498:21: note: in expansion of macro 'NULL'
  uintptr_t caller = NULL, thread = NULL;
                     ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/libumem/umem.c:2498:36: note: in expansion of macro 'NULL'
  uintptr_t caller = NULL, thread = NULL;
                                    ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/libumem/umem.c:2499:34: note: in expansion of macro 'NULL'
  uintptr_t laddr, haddr, baddr = NULL;
                                  ^~~~
../../../common/modules/libumem/umem.c:2580:13: error: comparison between pointer and integer [-Werror]
  if (caller != NULL) {
             ^~
../../../common/modules/libumem/umem.c:2603:13: error: comparison between pointer and integer [-Werror]
  if (thread != NULL && (uintptr_t)bcp->bc_thread != thread)
             ^~
../../../common/modules/libumem/umem.c: In function 'vmem_walk_init':
../../../common/modules/libumem/umem.c:2961:15: error: comparison between pointer and integer [-Werror]
  while (vaddr != NULL) {
               ^~
../../../common/modules/libumem/umem.c:2980:50: error: comparison between pointer and integer [-Werror]
   if ((paddr = (uintptr_t)vp->vn_vmem.vm_source) == NULL) {
                                                  ^~
../../../common/modules/libumem/umem.c: In function 'vmem_seg_walk_common_init':
../../../common/modules/libumem/umem.c:3129:21: error: comparison between pointer and integer [-Werror]
  if (wsp->walk_addr == NULL) {
                     ^~
../../../common/modules/libumem/umem.c: In function 'vmem':
../../../common/modules/libumem/umem.c:3245:45: error: comparison between pointer and integer [-Werror]
  for (paddr = (uintptr_t)v.vm_source; paddr != NULL; ident += 2) {
                                             ^~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from ../../../common/mdb/mdb_modapi.h:39,
                 from ../../../common/modules/libumem/umem.h:31,
                 from ../../../common/modules/libumem/umem.c:31:
../../../common/modules/libumem/umem.c: In function 'vmem_seg':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/libumem/umem.c:3313:21: note: in expansion of macro 'NULL'
  uintptr_t caller = NULL, thread = NULL;
                     ^~~~
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/modules/libumem/umem.c:3313:36: note: in expansion of macro 'NULL'
  uintptr_t caller = NULL, thread = NULL;
                                    ^~~~
../../../common/modules/libumem/umem.c:3395:14: error: comparison between pointer and integer [-Werror]
   if (caller != NULL || thread != NULL || earliest != 0 ||
              ^~
../../../common/modules/libumem/umem.c:3395:32: error: comparison between pointer and integer [-Werror]
   if (caller != NULL || thread != NULL || earliest != 0 ||
                                ^~
../../../common/modules/libumem/umem.c:3399:14: error: comparison between pointer and integer [-Werror]
   if (caller != NULL) {
              ^~
../../../common/modules/libumem/umem.c:3423:14: error: comparison between pointer and integer [-Werror]
   if (thread != NULL && (uintptr_t)vs.vs_thread != thread)
              ^~

In file included from /code/illumos-gate/proto/root_i386/usr/include/unistd.h:40:0,
                 from ../../../common/mdb/mdb_termio.c:69:
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
 #define NULL ((void *)0)
              ^
../../../common/mdb/mdb_termio.c:372:10: note: in expansion of macro 'NULL'
  { NULL, NULL, NULL }
          ^~~~

../../mdb/kvm_ia32dep.c: In function 'kt_ia32_init':
../../mdb/kvm_ia32dep.c:270:62: error: comparison between pointer and integer [-Werror]
      MDB_TGT_OBJ_EXEC, "panic_reg") == sizeof (addr) && addr != NULL &&
                                                              ^~

In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from ../../../common/mdb/mdb_modapi.h:39,
                 from ../../../common/mdb/mdb_modapi.c:28:
../../../common/mdb/mdb_modapi.c: In function 'mdb_walk':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 4 of 'mdb_pwalk' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/mdb/mdb_modapi.c:581:38: note: in expansion of macro 'NULL'
  return (mdb_pwalk(name, func, data, NULL));
                                      ^~~~
../../../common/mdb/mdb_modapi.c:555:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 mdb_pwalk(const char *name, mdb_walk_cb_t func, void *private, uintptr_t addr)
 ^~~~~~~~~
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from ../../../common/mdb/mdb_modapi.h:39,
                 from ../../../common/mdb/mdb_modapi.c:28:
../../../common/mdb/mdb_modapi.c: In function 'mdb_walk_dcmd':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 5 of 'mdb_pwalk_dcmd' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/mdb/mdb_modapi.c:641:52: note: in expansion of macro 'NULL'
  return (mdb_pwalk_dcmd(wname, dcname, argc, argv, NULL));
                                                    ^~~~
../../../common/mdb/mdb_modapi.c:603:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 mdb_pwalk_dcmd(const char *wname, const char *dcname,
 ^~~~~~~~~~~~~~

../../../common/mdb/mdb_kvm.c: In function 'kt_load_modules':
../../../common/mdb/mdb_kvm.c:143:12: error: comparison between pointer and integer [-Werror]
   if (addr == NULL)
            ^~
../../../common/mdb/mdb_kvm.c: In function 'kt_load_ctfdata':
../../../common/mdb/mdb_kvm.c:1193:20: error: comparison between pointer and integer [-Werror]
  if (km->km_ctf_va == NULL) {
                    ^~

../../../common/mdb/mdb_target.c: In function 'mdb_tgt_vespec_info':
../../../common/mdb/mdb_target.c:1452:16: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  sp->spec_base = NULL;
                ^
../../../common/mdb/mdb_print.c: In function 'cmd_list':
../../../common/mdb/mdb_print.c:786:26: error: comparison between pointer and integer [-Werror]
  } while (a != addr && a != NULL);
                          ^~
../../../common/mdb/mdb_print.c: In function 'print_ptr':
../../../common/mdb/mdb_print.c:1146:12: error: comparison between pointer and integer [-Werror]
  if (value == NULL || strcmp(type, "caddr_t") == 0)
            ^~
../../../common/mdb/mdb_print.c: In function 'cmd_print':
../../../common/mdb/mdb_print.c:2368:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   pa.pa_addr = NULL;
              ^
../../../common/mdb/mdb_proc.c: In function 'pt_object_iter':
../../../common/mdb/mdb_proc.c:3174:16: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
   mp->map_base = NULL;
                ^
../../../common/mdb/mdb_proc.c: In function 'pt_brkpt_ctor':
../../../common/mdb/mdb_proc.c:3987:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  ptb->ptb_instr = NULL;
                 ^
In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/time_iso.h:49:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/time.h:40,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/time.h:462,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/select.h:53,
                 from /code/illumos-gate/proto/root_i386/usr/include/sys/types.h:640,
                 from ../../../common/mdb/mdb_target.h:33,
                 from ../../../common/mdb/mdb_target_impl.h:32,
                 from ../../../common/mdb/mdb_proc.h:32,
                 from ../../../common/mdb/mdb_proc.c:87:
../../../common/mdb/mdb_proc.c: In function 'pt_brkpt_info':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/mdb/mdb_proc.c:4005:19: note: in expansion of macro 'NULL'
  uintptr_t addr = NULL;
                   ^~~~
../../../common/mdb/mdb_proc.c: In function 'pt_add_sbrkpt':
../../../common/mdb/mdb_proc.c:4389:16: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
  pta->pta_addr = NULL;
                ^
../../../common/mdb/mdb_proc.c: In function 'pt_xd_auxv':
../../../common/mdb/mdb_proc.c:5102:44: error: comparison between pointer and integer [-Werror]
   for (auxp = auxv, auxn = 1; auxp->a_type != NULL; auxp++)
                                            ^~

In file included from /code/illumos-gate/proto/root_i386/usr/include/iso/stdlib_iso.h:50:0,
                 from /code/illumos-gate/proto/root_i386/usr/include/stdlib.h:37,
                 from /code/illumos-gate/proto/root_i386/usr/include/libproc.h:39,
                 from ../../../common/mdb/mdb_cmds.c:38:
../../../common/mdb/mdb_cmds.c: In function 'cmd_run':
/code/illumos-gate/proto/root_i386/usr/include/sys/null.h:28:14: error: passing argument 1 of 'cmd_cont' makes integer from pointer without a cast [-Werror=int-conversion]
 #define NULL ((void *)0)
              ^
../../../common/mdb/mdb_cmds.c:2792:19: note: in expansion of macro 'NULL'
  return (cmd_cont(NULL, 0, 0, NULL));
                   ^~~~
../../../common/mdb/mdb_cmds.c:2773:1: note: expected 'uintptr_t {aka unsigned int}' but argument is of type 'void *'
 cmd_cont(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
 ^~~~~~~~
../../../common/mdb/mdb_cmds.c: In function 've_delete':
../../../common/mdb/mdb_cmds.c:2812:20: error: comparison between pointer and integer [-Werror]
  if (sp->spec_base != NULL) {
                    ^~
../../../common/mdb/mdb_cmds.c: In function 've_delete_spec':
../../../common/mdb/mdb_cmds.c:2839:41: error: comparison between pointer and integer [-Werror]
   if (sp->spec_id != 0 || sp->spec_base != NULL)
                                         ^~
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 56
  • 0
  • 56
Description From Last Updated
Robert Mustacchi
Robert Mustacchi
Gergő Mihály Doma
Gergő Mihály Doma
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...