Project

General

Profile

Actions

Bug #10628

closed

nxge: NULL pointer errors

Added by Toomas Soome about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-04-01
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/conf.h:37,
                     from ../../common/sys/stropts.h:38,
                     from ../../common/sys/nxge/nxge_impl.h:64,
                     from ../../common/io/nxge/nxge_kstats.c:26:
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:137:17: note: in expansion of macro 'NULL'
      {RDC_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_rdc_stats[34].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:137:17: note: in expansion of macro 'NULL'
      {RDC_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:155:21: note: in expansion of macro 'NULL'
      {RDC_SYS_STAT_END, NULL, NULL}
                         ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_rdc_sys_stats[5].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:155:21: note: in expansion of macro 'NULL'
      {RDC_SYS_STAT_END, NULL, NULL}
                         ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:216:17: note: in expansion of macro 'NULL'
      {TDC_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_tdc_stats[25].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:216:17: note: in expansion of macro 'NULL'
      {TDC_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:243:17: note: in expansion of macro 'NULL'
      {IPP_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_ipp_stats[9].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:243:17: note: in expansion of macro 'NULL'
      {IPP_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:274:17: note: in expansion of macro 'NULL'
      {TXC_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_txc_stats[11].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:274:17: note: in expansion of macro 'NULL'
      {TXC_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:365:18: note: in expansion of macro 'NULL'
      {XMAC_STAT_END, NULL, NULL}
                      ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_xmac_stats[31].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:365:18: note: in expansion of macro 'NULL'
      {XMAC_STAT_END, NULL, NULL}
                      ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:401:18: note: in expansion of macro 'NULL'
      {BMAC_STAT_END, NULL, NULL}
                      ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_bmac_stats[14].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:401:18: note: in expansion of macro 'NULL'
      {BMAC_STAT_END, NULL, NULL}
                      ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:440:17: note: in expansion of macro 'NULL'
      {ZCP_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_zcp_stats[15].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:440:17: note: in expansion of macro 'NULL'
      {ZCP_STAT_END, NULL, NULL}
                     ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:472:18: note: in expansion of macro 'NULL'
      {FFLP_STAT_END, NULL, NULL}
                      ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_fflp_stats[12].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:472:18: note: in expansion of macro 'NULL'
      {FFLP_STAT_END, NULL, NULL}
                      ^~~~
    ../../common/sys/null.h:32:14: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:516:19: note: in expansion of macro 'NULL'
      {MMAC_STATS_END, NULL, NULL},
                       ^~~~
    ../../common/sys/null.h:32:14: note: (near initialization for 'nxge_mmac_stats[18].type')
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/nxge_kstats.c:516:19: note: in expansion of macro 'NULL'
      {MMAC_STATS_END, NULL, NULL},
                       ^~~~

    ../../common/io/nxge/nxge_fflp.c: In function 'nxge_classify_exit_sw':
    ../../common/io/nxge/nxge_fflp.c:861:26: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      nxgep->classifier.state = NULL;
                              ^
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_fflp.h:34,
                     from ../../common/io/nxge/nxge_fflp.c:27:
    ../../common/io/nxge/nxge_fflp.c: In function 'nxge_fflp_handle_sys_errors':
    ../../common/sys/null.h:32:14: error: passing argument 2 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:31: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                   ^~~~~
    ../../common/io/nxge/nxge_fflp.c:2178:31: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, NULL, NULL,
                                   ^~~~
    In file included from ../../common/io/nxge/nxge_fflp.c:32:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_fflp.h:34,
                     from ../../common/io/nxge/nxge_fflp.c:27:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_fflp.c:2178:37: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, NULL, NULL,
                                         ^~~~
    In file included from ../../common/io/nxge/nxge_fflp.c:32:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_fflp.h:34,
                     from ../../common/io/nxge/nxge_fflp.c:27:
    ../../common/sys/null.h:32:14: error: passing argument 2 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:31: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                   ^~~~~
    ../../common/io/nxge/nxge_fflp.c:2209:31: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, NULL, NULL,
                                   ^~~~
    In file included from ../../common/io/nxge/nxge_fflp.c:32:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_fflp.h:34,
                     from ../../common/io/nxge/nxge_fflp.c:27:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_fflp.c:2209:37: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, NULL, NULL,
                                         ^~~~
    In file included from ../../common/io/nxge/nxge_fflp.c:32:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_fflp.h:34,
                     from ../../common/io/nxge/nxge_fflp.c:27:
    ../../common/sys/null.h:32:14: error: passing argument 2 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:31: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                   ^~~~~
    ../../common/io/nxge/nxge_fflp.c:2231:33: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, NULL, NULL,
                                     ^~~~
    In file included from ../../common/io/nxge/nxge_fflp.c:32:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_fflp.h:34,
                     from ../../common/io/nxge/nxge_fflp.c:27:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_fflp.c:2231:39: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, NULL, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_fflp.c:32:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_fflp.h:34,
                     from ../../common/io/nxge/nxge_fflp.c:27:
    ../../common/sys/null.h:32:14: error: passing argument 2 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:31: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                   ^~~~~
    ../../common/io/nxge/nxge_fflp.c:2258:31: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, NULL, NULL,
                                   ^~~~
    In file included from ../../common/io/nxge/nxge_fflp.c:32:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_fflp.h:34,
                     from ../../common/io/nxge/nxge_fflp.c:27:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_fflp.c:2258:37: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, NULL, NULL,
                                         ^~~~
    In file included from ../../common/io/nxge/nxge_fflp.c:32:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~

    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_hw.c:25:
    ../../common/io/nxge/nxge_hw.c: In function 'nxge_check_xaui_xfp':
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_hw.c:350:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_hw.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~

    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_txc.c:28:
    ../../common/io/nxge/nxge_txc.c: In function 'nxge_txc_handle_port_errors':
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_txc.c:415:39: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_txc.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_txc.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_txc.c:423:39: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_txc.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_txc.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_txc.c:431:39: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_txc.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_txc.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_txc.c:463:39: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_txc.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_txc.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_txc.c:471:39: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_txc.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    ../../common/io/nxge/nxge_main.c: In function 'nxge_dma_mem_free':
    ../../common/io/nxge/nxge_main.c:3655:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
      dma_p->alength = NULL;
                     ^

    ../../common/io/nxge/nxge_rxdma.c: In function 'nxge_rxdma_hw_mode':
    ../../common/io/nxge/nxge_rxdma.c:1233:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
       return (NULL);
              ^
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_rxdma.c:27:
    ../../common/io/nxge/nxge_rxdma.c: In function 'nxge_receive_packet':
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_rxdma.c:2485:52: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, NULL,
                                                        ^~~~
    In file included from ../../common/io/nxge/nxge_rxdma.c:27:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_rxdma.c:27:
    ../../common/io/nxge/nxge_rxdma.c: In function 'nxge_rxdma_handle_sys_errors':
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_rxdma.c:4496:51: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, NULL,
                                                       ^~~~
    In file included from ../../common/io/nxge/nxge_rxdma.c:27:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_rxdma.c:27:
    ../../common/io/nxge/nxge_rxdma.c: In function 'nxge_rxdma_handle_port_errors':
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_rxdma.c:4564:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_rxdma.c:27:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_rxdma.c:27:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_rxdma.c:4571:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_rxdma.c:27:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    ../../common/io/nxge/nxge_rxdma.c: In function 'nxge_rxdma_databuf_free':
    ../../common/io/nxge/nxge_rxdma.c:4952:13: error: comparison between pointer and integer [-Werror]
       if (kaddr == NULL) continue;
                 ^~
    ../../common/io/nxge/nxge_rxdma.c:4954:34: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       ring_info->buffer[index].kaddr = NULL;
                                      ^
    ../../common/io/nxge/nxge_rxdma.c: In function 'nxge_free_buf':
    ../../common/io/nxge/nxge_rxdma.c:4969:12: error: comparison between pointer and integer [-Werror]
      if (kaddr == NULL || !buf_size) {
                ^~

    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_ipp.c:28:
    ../../common/io/nxge/nxge_ipp.c: In function 'nxge_ipp_handle_sys_errors':
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_ipp.c:368:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_ipp.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_ipp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_ipp.c:383:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_ipp.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_ipp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_ipp.c:401:39: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_ipp.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_ipp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_ipp.c:410:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_ipp.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_ipp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_ipp.c:420:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_ipp.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_ipp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_ipp.c:430:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_ipp.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_ipp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_ipp.c:477:39: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_ipp.c:28:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~

    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/io/nxge/nxge_mac.c: In function 'nxge_mac_intr':
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:6947:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:6959:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:6964:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:6986:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:7085:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:7090:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:7118:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:7124:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:7130:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_mac.c:25:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_mac.c:7140:40: note: in expansion of macro 'NULL'
         NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                            ^~~~
    In file included from ../../common/io/nxge/nxge_mac.c:25:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~

    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/io/nxge/nxge_zcp.c: In function 'nxge_zcp_handle_sys_errors':
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:130:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:138:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:146:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:154:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:163:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:171:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:179:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:187:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:195:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:203:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:211:38: note: in expansion of macro 'NULL'
       NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                          ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/io/nxge/npi/npi.h:35:0,
                     from ../../common/io/nxge/npi/npi_mac.h:35,
                     from ../../common/sys/nxge/nxge_mac.h:36,
                     from ../../common/sys/nxge/nxge_impl.h:90,
                     from ../../common/io/nxge/nxge_zcp.c:26:
    ../../common/sys/null.h:32:14: error: passing argument 3 of 'nxge_fm_report_error' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/sys/nxge/nxge_common_impl.h:307:38: note: in definition of macro 'NXGE_FM_REPORT_ERROR'
       nxge_fm_report_error(nxgep, portn, chan, ereport_id)
                                          ^~~~
    ../../common/io/nxge/nxge_zcp.c:229:39: note: in expansion of macro 'NULL'
        NXGE_FM_REPORT_ERROR(nxgep, portn, NULL,
                                           ^~~~
    In file included from ../../common/io/nxge/nxge_zcp.c:26:0:
    ../../common/sys/nxge/nxge_impl.h:821:13: note: expected 'uint8_t {aka unsigned char}' but argument is of type 'void *'
     extern void nxge_fm_report_error(p_nxge_t, uint8_t,
                 ^~~~~~~~~~~~~~~~~~~~
    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/map.h:35,
                     from ../../common/sys/ddi.h:37,
                     from ../../common/sys/nxge/nxge_common_impl.h:134,
                     from ../../common/io/nxge/npi/npi.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.c:28:
    ../../common/io/nxge/npi/npi_zcp.c: In function 'npi_zcp_tt_static_entry':
    ../../common/sys/null.h:32:14: error: passing argument 4 of 'zcp_mem_read' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/npi/npi_zcp.c:313:59: note: in expansion of macro 'NULL'
      if (zcp_mem_read(handle, flow_id, ZCP_RAM_SEL_TT_STATIC, NULL,
                                                               ^~~~
    ../../common/io/nxge/npi/npi_zcp.c:30:12: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
     static int zcp_mem_read(npi_handle_t, uint16_t, uint8_t,
                ^~~~~~~~~~~~
    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/map.h:35,
                     from ../../common/sys/ddi.h:37,
                     from ../../common/sys/nxge/nxge_common_impl.h:134,
                     from ../../common/io/nxge/npi/npi.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 5 of 'zcp_mem_write' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/npi/npi_zcp.c:388:16: note: in expansion of macro 'NULL'
           byte_en, NULL,
                    ^~~~
    ../../common/io/nxge/npi/npi_zcp.c:32:12: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
     static int zcp_mem_write(npi_handle_t, uint16_t, uint8_t,
                ^~~~~~~~~~~~~
    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/map.h:35,
                     from ../../common/sys/ddi.h:37,
                     from ../../common/sys/nxge/nxge_common_impl.h:134,
                     from ../../common/io/nxge/npi/npi.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.c:28:
    ../../common/io/nxge/npi/npi_zcp.c: In function 'npi_zcp_tt_dynamic_entry':
    ../../common/sys/null.h:32:14: error: passing argument 4 of 'zcp_mem_read' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/npi/npi_zcp.c:437:60: note: in expansion of macro 'NULL'
      if (zcp_mem_read(handle, flow_id, ZCP_RAM_SEL_TT_DYNAMIC, NULL,
                                                                ^~~~
    ../../common/io/nxge/npi/npi_zcp.c:30:12: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
     static int zcp_mem_read(npi_handle_t, uint16_t, uint8_t,
                ^~~~~~~~~~~~
    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/map.h:35,
                     from ../../common/sys/ddi.h:37,
                     from ../../common/sys/nxge/nxge_common_impl.h:134,
                     from ../../common/io/nxge/npi/npi.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 5 of 'zcp_mem_write' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/npi/npi_zcp.c:504:16: note: in expansion of macro 'NULL'
           byte_en, NULL,
                    ^~~~
    ../../common/io/nxge/npi/npi_zcp.c:32:12: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
     static int zcp_mem_write(npi_handle_t, uint16_t, uint8_t,
                ^~~~~~~~~~~~~
    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/map.h:35,
                     from ../../common/sys/ddi.h:37,
                     from ../../common/sys/nxge/nxge_common_impl.h:134,
                     from ../../common/io/nxge/npi/npi.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.c:28:
    ../../common/io/nxge/npi/npi_zcp.c: In function 'npi_zcp_tt_bam_entry':
    ../../common/sys/null.h:32:14: error: passing argument 4 of 'zcp_mem_read' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/npi/npi_zcp.c:560:62: note: in expansion of macro 'NULL'
      if (zcp_mem_read(handle, flow_id, ZCP_RAM_SEL_BAM0 + bankn, NULL,
                                                                  ^~~~
    ../../common/io/nxge/npi/npi_zcp.c:30:12: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
     static int zcp_mem_read(npi_handle_t, uint16_t, uint8_t,
                ^~~~~~~~~~~~
    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/map.h:35,
                     from ../../common/sys/ddi.h:37,
                     from ../../common/sys/nxge/nxge_common_impl.h:134,
                     from ../../common/io/nxge/npi/npi.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 5 of 'zcp_mem_write' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/npi/npi_zcp.c:571:16: note: in expansion of macro 'NULL'
           word_en, NULL,
                    ^~~~
    ../../common/io/nxge/npi/npi_zcp.c:32:12: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
     static int zcp_mem_write(npi_handle_t, uint16_t, uint8_t,
                ^~~~~~~~~~~~~
    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/map.h:35,
                     from ../../common/sys/ddi.h:37,
                     from ../../common/sys/nxge/nxge_common_impl.h:134,
                     from ../../common/io/nxge/npi/npi.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.c:28:
    ../../common/io/nxge/npi/npi_zcp.c: In function 'npi_zcp_tt_cfifo_entry':
    ../../common/sys/null.h:32:14: error: passing argument 2 of 'zcp_mem_write' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/npi/npi_zcp.c:608:29: note: in expansion of macro 'NULL'
       if (zcp_mem_write(handle, NULL, ZCP_RAM_SEL_CFIFO0 + portn,
                                 ^~~~
    ../../common/io/nxge/npi/npi_zcp.c:32:12: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
     static int zcp_mem_write(npi_handle_t, uint16_t, uint8_t,
                ^~~~~~~~~~~~~
    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/sys/t_lock.h:38,
                     from ../../common/sys/map.h:35,
                     from ../../common/sys/ddi.h:37,
                     from ../../common/sys/nxge/nxge_common_impl.h:134,
                     from ../../common/io/nxge/npi/npi.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.h:35,
                     from ../../common/io/nxge/npi/npi_zcp.c:28:
    ../../common/sys/null.h:32:14: error: passing argument 2 of 'zcp_mem_read' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/io/nxge/npi/npi_zcp.c:617:28: note: in expansion of macro 'NULL'
       if (zcp_mem_read(handle, NULL, ZCP_RAM_SEL_CFIFO0 + portn,
                                ^~~~
    ../../common/io/nxge/npi/npi_zcp.c:30:12: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'void *'
     static int zcp_mem_read(npi_handle_t, uint16_t, uint8_t,
                ^~~~~~~~~~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk about 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit b37cc459553d18521fb935664dd7deb03b07c6a7

commit  b37cc459553d18521fb935664dd7deb03b07c6a7
Author: Toomas Soome <tsoome@me.com>
Date:   2019-04-10T14:22:27.000Z

    10628 nxge: NULL pointer errors
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Reviewed by: Gergő Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF