Project

General

Profile

Actions

Bug #12649

closed

ldc: smatch and NULL pointer errors

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors on SPARC with NULL pointers:

    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_alloc_handle':
    ../../sun4v/io/ldc_shm.c:197: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_free_handle':
    ../../sun4v/io/ldc_shm.c:256: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'i_ldc_mem_bind_handle':
    ../../sun4v/io/ldc_shm.c:362: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c:403: error: assignment makes integer from pointer without a cast
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_nextcookie':
    ../../sun4v/io/ldc_shm.c:677: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_unbind_handle':
    ../../sun4v/io/ldc_shm.c:737: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_info':
    ../../sun4v/io/ldc_shm.c:830: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_copy':
    ../../sun4v/io/ldc_shm.c:878: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_rdwr_cookie':
    ../../sun4v/io/ldc_shm.c:1101: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'i_ldc_mem_map':
    ../../sun4v/io/ldc_shm.c:1272: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'i_ldc_mem_acquire_release':
    ../../sun4v/io/ldc_shm.c:1596: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_dring_destroy':
    ../../sun4v/io/ldc_shm.c:1757: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_dring_bind':
    ../../sun4v/io/ldc_shm.c:1830: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c:1837: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c:1888: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c:1917: error: assignment makes integer from pointer without a cast
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_dring_nextcookie':
    ../../sun4v/io/ldc_shm.c:1947: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_dring_unbind':
    ../../sun4v/io/ldc_shm.c:1989: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c:2038: error: assignment makes integer from pointer without a cast
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_dring_info':
    ../../sun4v/io/ldc_shm.c:2127: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c:2146: error: assignment makes integer from pointer without a cast
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_dring_map':
    ../../sun4v/io/ldc_shm.c:2179: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c:2237: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'ldc_mem_dring_unmap':
    ../../sun4v/io/ldc_shm.c:2285: error: comparison between pointer and integer
    ../../sun4v/io/ldc_shm.c: In function 'i_ldc_dring_acquire_release':
    ../../sun4v/io/ldc_shm.c:2366: error: comparison between pointer and integer

    ../../sun4v/io/ldc.c: In function 'ldc_init':
    ../../sun4v/io/ldc.c:2731: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c:2748: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c:2778: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_fini':
    ../../sun4v/io/ldc.c:2853: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c:2898: error: passing argument 2 of 'hv_ldc_set_map_table' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:425: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:2898: error: passing argument 3 of 'hv_ldc_set_map_table' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:425: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c: In function 'ldc_open':
    ../../sun4v/io/ldc.c:2957: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c:2982: error: passing argument 2 of 'hv_ldc_tx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:410: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:2982: error: passing argument 3 of 'hv_ldc_tx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:410: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3006: error: passing argument 2 of 'hv_ldc_rx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:417: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3006: error: passing argument 3 of 'hv_ldc_rx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:417: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3035: error: passing argument 2 of 'hv_ldc_tx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:410: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3035: error: passing argument 3 of 'hv_ldc_tx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:410: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3036: error: passing argument 2 of 'hv_ldc_rx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:417: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3036: error: passing argument 3 of 'hv_ldc_rx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:417: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3053: error: passing argument 2 of 'hv_ldc_tx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:410: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3053: error: passing argument 3 of 'hv_ldc_tx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:410: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3054: error: passing argument 2 of 'hv_ldc_rx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:417: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3054: error: passing argument 3 of 'hv_ldc_rx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:417: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c: In function 'ldc_close':
    ../../sun4v/io/ldc.c:3109: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c:3233: error: passing argument 2 of 'hv_ldc_tx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:410: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3233: error: passing argument 3 of 'hv_ldc_tx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:410: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3242: error: passing argument 2 of 'hv_ldc_rx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:417: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c:3242: error: passing argument 3 of 'hv_ldc_rx_qconf' makes integer from pointer without a cast
    ../../sun4v/sys/hypervisor_api.h:417: note: expected 'uint64_t' but argument is of type 'void *'
    ../../sun4v/io/ldc.c: In function 'ldc_reg_callback':
    ../../sun4v/io/ldc.c:3283: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_unreg_callback':
    ../../sun4v/io/ldc.c:3330: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_up':
    ../../sun4v/io/ldc.c:3381: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_down':
    ../../sun4v/io/ldc.c:3520: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_status':
    ../../sun4v/io/ldc.c:3542: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_set_cb_mode':
    ../../sun4v/io/ldc.c:3564: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_chkq':
    ../../sun4v/io/ldc.c:3620: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_read':
    ../../sun4v/io/ldc.c:3727: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_write':
    ../../sun4v/io/ldc.c:4289: error: comparison between pointer and integer
    ../../sun4v/io/ldc.c: In function 'ldc_info':
    ../../sun4v/io/ldc.c:4738: error: comparison between pointer and integer
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:427 _init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:436 _init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:473 _fini() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:603 i_ldc_txq_reconf() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:638 i_ldc_rxq_reconf() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:730 i_ldc_reset() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:800 i_ldc_clear_intr() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:895 i_ldc_get_tx_tail() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:908 i_ldc_get_tx_tail() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:911 i_ldc_get_tx_tail() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:939 i_ldc_set_tx_tail() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1040 i_ldc_rx_hdlr() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1106 i_ldc_rx_hdlr() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1150 i_ldc_send_pkt() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1183 i_ldc_send_pkt() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1218 i_ldc_check_seqid() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1247 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1269 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1287 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1311 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1321 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1343 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1356 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1372 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1387 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1392 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1420 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1437 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1484 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1493 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1512 i_ldc_process_VER() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1541 i_ldc_process_RTS() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1666 i_ldc_process_RTR() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1695 i_ldc_process_RTR() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1742 i_ldc_process_RTR() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1750 i_ldc_process_RTR() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1764 i_ldc_process_RDX() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1791 i_ldc_process_RDX() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1802 i_ldc_process_RDX() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1865 i_ldc_process_data_ACK() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1876 i_ldc_process_data_ACK() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1897 i_ldc_ctrlmsg() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:1993 i_ldc_register_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2000 i_ldc_register_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2008 i_ldc_register_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2017 i_ldc_register_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2039 i_ldc_unregister_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2051 i_ldc_unregister_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2068 i_ldc_unregister_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2077 i_ldc_unregister_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2085 i_ldc_unregister_channel() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2114 i_ldc_tx_hdlr() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2149 i_ldc_tx_hdlr() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2157 i_ldc_tx_hdlr() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2166 i_ldc_tx_hdlr() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2193 i_ldc_tx_hdlr() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2319 i_ldc_rx_process_hvq() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2380 i_ldc_rx_process_hvq() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2447 i_ldc_rx_process_hvq() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2592 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2596 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2603 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2613 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2660 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2726 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2740 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2757 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2771 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2788 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2814 ldc_init() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2834 ldc_init() warn: variable dereferenced before check 'ldcp' (see line 2647)
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2855 ldc_fini() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2865 ldc_fini() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2886 ldc_fini() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2941 ldc_fini() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2959 ldc_open() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2969 ldc_open() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:2975 ldc_open() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3000 ldc_open() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3024 ldc_open() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3089 ldc_open() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3111 ldc_close() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3121 ldc_close() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3130 ldc_close() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3137 ldc_close() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3144 ldc_close() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3151 ldc_close() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3269 ldc_close() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3286 ldc_reg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3290 ldc_reg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3299 ldc_reg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3305 ldc_reg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3313 ldc_reg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3333 ldc_unreg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3343 ldc_unreg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3350 ldc_unreg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3358 ldc_unreg_callback() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3383 ldc_up() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3389 ldc_up() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3401 ldc_up() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3414 ldc_up() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3433 ldc_up() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3447 ldc_up() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3496 ldc_up() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3503 ldc_up() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3522 ldc_down() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3544 ldc_status() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3550 ldc_status() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3567 ldc_set_cb_mode() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3586 ldc_set_cb_mode() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3599 ldc_set_cb_mode() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3622 ldc_chkq() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3633 ldc_chkq() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3729 ldc_read() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3741 ldc_read() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3839 i_ldc_read_raw() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3905 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3930 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3978 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:3988 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4007 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4072 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4086 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4116 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4141 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4167 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4214 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4220 i_ldc_read_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4245 i_ldc_read_stream() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4252 i_ldc_read_stream() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4268 i_ldc_read_stream() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4291 ldc_write() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4301 ldc_write() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4308 ldc_write() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4317 ldc_write() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4353 i_ldc_write_raw() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4372 i_ldc_write_raw() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4398 i_ldc_write_raw() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4402 i_ldc_write_raw() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4423 i_ldc_write_raw() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4448 i_ldc_write_raw() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4496 i_ldc_write_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4527 i_ldc_write_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4541 i_ldc_write_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4544 i_ldc_write_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4618 i_ldc_write_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4626 i_ldc_write_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4633 i_ldc_write_packet() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4675 ldc_register() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4708 ldc_unregister() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4715 ldc_unregister() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4740 ldc_info() warn: inconsistent indenting
    /code/illumos-gate/usr/src/tools/proto/root_sparc-nd/opt/onbld/bin/sparc/smatch: ../../sun4v/io/ldc.c:4752 ldc_info() warn: inconsistent indenting

Actions #1

Updated by Electric Monk about 2 years ago

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

git commit a704fb2d43b34f92d7dcac9c06204ea48237612d

commit  a704fb2d43b34f92d7dcac9c06204ea48237612d
Author: Toomas Soome <tsoome@me.com>
Date:   2020-05-09T15:05:04.000Z

    12649 ldc: smatch and NULL pointer errors
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Actions

Also available in: Atom PDF