Project

General

Profile

Actions

Bug #12536

closed

picl: NULL pointer errors

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build errors with NULL pointer:

    piclsbl.c: In function 'piclsbl_handler':
    piclsbl.c:239: error: passing argument 4 of 'nvlist_unpack' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:159: note: expected 'int' but argument is of type 'void *'
    piclsbl.c:251: error: assignment makes integer from pointer without a cast
    piclsbl.c:318: error: assignment makes integer from pointer without a cast
    piclsbl.c: In function 'piclsbl_init':
    piclsbl.c:390: error: comparison between pointer and integer
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/piclsbl.o'
    Current working directory /code/illumos-gate/usr/src/cmd/picl/plugins/sun4v/piclsbl

    priplugin.c: In function 'priplugin_init':
    priplugin.c:130: error: passing argument 2 of 'thr_create' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/thread.h:54: note: expected 'size_t' but argument is of type 'void *'
    priplugin.c:137: error: passing argument 2 of 'thr_create' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/thread.h:54: note: expected 'size_t' but argument is of type 'void *'
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/priplugin.o'
    Current working directory /code/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri

    mdescplugin.c: In function 'dr_handler':
    mdescplugin.c:115: error: passing argument 4 of 'nvlist_unpack' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:159: note: expected 'int' but argument is of type 'void *'
    mdescplugin.c: In function 'dsc_handler':
    mdescplugin.c:179: error: passing argument 4 of 'nvlist_unpack' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:159: note: expected 'int' but argument is of type 'void *'
    mdescplugin.c:185: error: assignment makes integer from pointer without a cast
    mdescplugin.c: In function 'signal_devtree':
    mdescplugin.c:221: error: passing argument 3 of 'nvlist_alloc' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:155: note: expected 'int' but argument is of type 'void *'
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/mdescplugin.o'
    Current working directory /code/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc

    snmpplugin.c: In function 'snmpplugin_init':
    snmpplugin.c:336: error: passing argument 2 of 'thr_create' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/thread.h:54: note: expected 'size_t' but argument is of type 'void *'
    snmpplugin.c:360: error: passing argument 2 of 'thr_create' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/thread.h:54: note: expected 'size_t' but argument is of type 'void *'
    snmpplugin.c: In function 'tree_builder':
    snmpplugin.c:492: error: assignment makes integer from pointer without a cast
    snmpplugin.c:493: error: assignment makes integer from pointer without a cast
    snmpplugin.c:517: error: comparison between pointer and integer
    snmpplugin.c: In function 'make_node':
    snmpplugin.c:708: error: comparison between pointer and integer
    snmpplugin.c:718: error: return makes integer from pointer without a cast
    snmpplugin.c:723: error: return makes integer from pointer without a cast
    snmpplugin.c:724: error: comparison between pointer and integer
    snmpplugin.c:735: error: return makes integer from pointer without a cast
    snmpplugin.c:738: error: return makes integer from pointer without a cast
    snmpplugin.c:745: error: return makes integer from pointer without a cast
    snmpplugin.c:751: error: return makes integer from pointer without a cast
    snmpplugin.c:758: error: return makes integer from pointer without a cast
    snmpplugin.c:764: error: return makes integer from pointer without a cast
    snmpplugin.c:770: error: return makes integer from pointer without a cast
    snmpplugin.c:777: error: return makes integer from pointer without a cast
    snmpplugin.c:781: error: return makes integer from pointer without a cast
    snmpplugin.c:783: error: return makes integer from pointer without a cast
    snmpplugin.c:788: error: return makes integer from pointer without a cast
    snmpplugin.c:790: error: return makes integer from pointer without a cast
    snmpplugin.c:795: error: return makes integer from pointer without a cast
    snmpplugin.c:799: error: return makes integer from pointer without a cast
    snmpplugin.c:803: error: return makes integer from pointer without a cast
    snmpplugin.c:806: error: return makes integer from pointer without a cast
    snmpplugin.c:810: error: return makes integer from pointer without a cast
    snmpplugin.c:813: error: return makes integer from pointer without a cast
    snmpplugin.c:817: error: return makes integer from pointer without a cast
    snmpplugin.c:821: error: return makes integer from pointer without a cast
    snmpplugin.c:825: error: return makes integer from pointer without a cast
    snmpplugin.c:831: error: return makes integer from pointer without a cast
    snmpplugin.c:837: error: return makes integer from pointer without a cast
    snmpplugin.c:841: error: return makes integer from pointer without a cast
    snmpplugin.c:844: error: return makes integer from pointer without a cast
    snmpplugin.c:846: error: return makes integer from pointer without a cast
    snmpplugin.c:850: error: return makes integer from pointer without a cast
    snmpplugin.c:854: error: return makes integer from pointer without a cast
    snmpplugin.c:857: error: return makes integer from pointer without a cast
    snmpplugin.c:863: error: return makes integer from pointer without a cast
    snmpplugin.c:869: error: return makes integer from pointer without a cast
    snmpplugin.c:874: error: return makes integer from pointer without a cast
    snmpplugin.c:880: error: return makes integer from pointer without a cast
    snmpplugin.c:885: error: return makes integer from pointer without a cast
    snmpplugin.c:889: error: return makes integer from pointer without a cast
    snmpplugin.c:893: error: return makes integer from pointer without a cast
    snmpplugin.c:897: error: return makes integer from pointer without a cast
    snmpplugin.c:901: error: return makes integer from pointer without a cast
    snmpplugin.c:905: error: return makes integer from pointer without a cast
    snmpplugin.c:909: error: return makes integer from pointer without a cast
    snmpplugin.c:913: error: return makes integer from pointer without a cast
    snmpplugin.c:917: error: return makes integer from pointer without a cast
    snmpplugin.c:921: error: return makes integer from pointer without a cast
    snmpplugin.c:924: error: return makes integer from pointer without a cast
    snmpplugin.c:928: error: return makes integer from pointer without a cast
    snmpplugin.c:930: error: return makes integer from pointer without a cast
    snmpplugin.c:932: error: return makes integer from pointer without a cast
    snmpplugin.c:934: error: return makes integer from pointer without a cast
    snmpplugin.c:936: error: return makes integer from pointer without a cast
    snmpplugin.c:938: error: return makes integer from pointer without a cast
    snmpplugin.c:943: error: return makes integer from pointer without a cast
    snmpplugin.c:947: error: return makes integer from pointer without a cast
    snmpplugin.c:951: error: return makes integer from pointer without a cast
    snmpplugin.c:955: error: return makes integer from pointer without a cast
    snmpplugin.c:960: error: return makes integer from pointer without a cast
    snmpplugin.c:964: error: return makes integer from pointer without a cast
    snmpplugin.c:968: error: return makes integer from pointer without a cast
    snmpplugin.c:972: error: return makes integer from pointer without a cast
    snmpplugin.c:976: error: return makes integer from pointer without a cast
    snmpplugin.c:980: error: return makes integer from pointer without a cast
    snmpplugin.c:987: error: return makes integer from pointer without a cast
    snmpplugin.c:991: error: return makes integer from pointer without a cast
    snmpplugin.c:994: error: return makes integer from pointer without a cast
    snmpplugin.c:997: error: return makes integer from pointer without a cast
    snmpplugin.c:1000: error: return makes integer from pointer without a cast
    snmpplugin.c:1003: error: return makes integer from pointer without a cast
    snmpplugin.c:1006: error: return makes integer from pointer without a cast
    snmpplugin.c:1009: error: return makes integer from pointer without a cast
    snmpplugin.c:1012: error: return makes integer from pointer without a cast
    snmpplugin.c: In function 'lookup_nodeh':
    snmpplugin.c:1060: error: return makes integer from pointer without a cast
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/snmpplugin.o'
    Current working directory /code/illumos-gate/usr/src/cmd/picl/plugins/sun4v/snmp

    piclfrudr.c: In function 'find_child_by_name':
    piclfrudr.c:897: error: return makes integer from pointer without a cast
    piclfrudr.c:902: error: return makes integer from pointer without a cast
    piclfrudr.c:909: error: return makes integer from pointer without a cast
    piclfrudr.c: In function 'frudr_completion_handler':
    piclfrudr.c:1244: error: initialization makes integer from pointer without a cast
    piclfrudr.c:1253: error: assignment makes integer from pointer without a cast
    piclfrudr.c:1256: error: comparison between pointer and integer
    piclfrudr.c:1304: error: comparison between pointer and integer
    piclfrudr.c: In function 'post_frudr_event':
    piclfrudr.c:1340: error: passing argument 3 of 'nvlist_alloc' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:155: note: expected 'int' but argument is of type 'void *'
    piclfrudr.c: In function 'frudr_evhandler':
    piclfrudr.c:1491: error: passing argument 4 of 'nvlist_unpack' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:159: note: expected 'int' but argument is of type 'void *'
    piclfrudr.c:1582: error: passing argument 2 of 'post_frudr_event' makes integer from pointer without a cast
    piclfrudr.c:1332: note: expected 'picl_nodehdl_t' but argument is of type 'void *'
    piclfrudr.c:1592: error: assignment makes integer from pointer without a cast
    piclfrudr.c:1601: error: comparison between pointer and integer
    piclfrudr.c:1644: error: passing argument 3 of 'post_frudr_event' makes integer from pointer without a cast
    piclfrudr.c:1332: note: expected 'picl_nodehdl_t' but argument is of type 'void *'
    piclfrudr.c: In function 'frutree_evhandler':
    piclfrudr.c:1755: error: passing argument 4 of 'nvlist_unpack' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:159: note: expected 'int' but argument is of type 'void *'
    piclfrudr.c: In function 'set_led':
    piclfrudr.c:1897: error: comparison between pointer and integer
    piclfrudr.c: In function 'update_disk_node':
    piclfrudr.c:2347: error: comparison between pointer and integer
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/piclfrudr.o'
    Current working directory /code/illumos-gate/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr

    piclenvsetup.c:86: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:86: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:86: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:88: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:88: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:88: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:90: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:90: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:90: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:92: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:92: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:92: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:96: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:96: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:96: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:98: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:98: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:98: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:100: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:100: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:100: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:102: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:102: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:102: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:123: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:123: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:125: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:125: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:127: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:127: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:129: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:129: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:131: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:131: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:150: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:150: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:151: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:151: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:152: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:152: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:153: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:153: error: initialization makes integer from pointer without a cast
    piclenvsetup.c: In function 'delete_sensor_nodes_and_props':
    piclenvsetup.c:495: error: comparison between pointer and integer
    piclenvsetup.c:499: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:500: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'delete_disk_nodes_and_props':
    piclenvsetup.c:637: error: comparison between pointer and integer
    piclenvsetup.c:640: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:641: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'delete_fan_nodes_and_props':
    piclenvsetup.c:775: error: comparison between pointer and integer
    piclenvsetup.c:778: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'env_picl_setup':
    piclenvsetup.c:950: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:951: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:952: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:961: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:962: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:971: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:972: error: assignment makes integer from pointer without a cast
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/piclenvsetup.o'
    Current working directory /code/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd

    piclenvsetup.c:91: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:91: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:91: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:97: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:97: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:97: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:100: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:100: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:100: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:103: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:103: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:103: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:106: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:106: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:106: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:130: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:130: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:133: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:133: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:136: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:136: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:139: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:139: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:142: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:142: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:162: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:162: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:163: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:163: error: initialization makes integer from pointer without a cast
    piclenvsetup.c: In function 'delete_sensor_nodes_and_props':
    piclenvsetup.c:500: error: comparison between pointer and integer
    piclenvsetup.c:504: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:505: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'delete_disk_nodes_and_props':
    piclenvsetup.c:636: error: comparison between pointer and integer
    piclenvsetup.c:639: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:640: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'delete_fan_nodes_and_props':
    piclenvsetup.c:775: error: comparison between pointer and integer
    piclenvsetup.c:778: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'env_picl_setup':
    piclenvsetup.c:946: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:947: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:948: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:957: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:958: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:967: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:968: error: assignment makes integer from pointer without a cast
    *** Error code 1
    dmake: Fatal error: Command failed for target `pics/piclenvsetup.o'
    Current working directory /code/illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/envd

    piclenvd.c: In function 'envd_setup':
    piclenvd.c:2232: error: return makes integer from pointer without a cast
    *** Error code 1
    dmake: Warning: Command failed for target `pics/piclenvd.o'
    Current working directory /code/illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/envd

    piclenvsetup.c:90: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:90: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:90: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:94: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:98: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:98: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:98: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:121: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:121: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:124: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:124: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:127: error: initialization makes integer from pointer without a cast
    piclenvsetup.c:127: error: initialization makes integer from pointer without a cast
    piclenvsetup.c: In function 'delete_sensor_nodes_and_props':
    piclenvsetup.c:430: error: comparison between pointer and integer
    piclenvsetup.c:434: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:435: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'delete_fan_nodes_and_props':
    piclenvsetup.c:556: error: comparison between pointer and integer
    piclenvsetup.c:559: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'env_picl_setup':
    piclenvsetup.c:726: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:727: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:728: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:737: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:738: error: assignment makes integer from pointer without a cast

    piclenvd.c: In function 'envd_setup':
    piclenvd.c:1487: error: return makes integer from pointer without a cast

    piclfrutree.c:300: error: initialization makes integer from pointer without a cast
    piclfrutree.c: In function 'add_fru_node':
    piclfrutree.c:749: error: comparison between pointer and integer
    piclfrutree.c:810: error: passing argument 3 of 'post_frudr_event' makes integer from pointer without a cast
    piclfrutree.c:333: note: expected 'picl_nodehdl_t' but argument is of type 'void *'
    piclfrutree.c: In function 'add_location_node':
    piclfrutree.c:944: error: comparison between pointer and integer
    piclfrutree.c: In function 'add_intermediate_nodes':
    piclfrutree.c:1333: error: comparison between pointer and integer
    piclfrutree.c:1347: error: comparison between pointer and integer
    piclfrutree.c: In function 'find_child_by_name':
    piclfrutree.c:1439: error: return makes integer from pointer without a cast
    piclfrutree.c:1444: error: return makes integer from pointer without a cast
    piclfrutree.c:1451: error: return makes integer from pointer without a cast
    piclfrutree.c: In function 'create_dimm_references':
    piclfrutree.c:1460: error: initialization makes integer from pointer without a cast
    piclfrutree.c: In function 'frudr_completion_handler':
    piclfrutree.c:2027: error: assignment makes integer from pointer without a cast
    piclfrutree.c:2030: error: comparison between pointer and integer
    piclfrutree.c:2036: error: assignment makes integer from pointer without a cast
    piclfrutree.c:2039: error: comparison between pointer and integer
    piclfrutree.c: In function 'post_frudr_event':
    piclfrutree.c:2061: error: passing argument 3 of 'nvlist_alloc' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:155: note: expected 'int' but argument is of type 'void *'
    piclfrutree.c: In function 'frudr_evhandler':
    piclfrutree.c:2167: error: passing argument 4 of 'nvlist_unpack' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:159: note: expected 'int' but argument is of type 'void *'
    piclfrutree.c: In function 'frumemcfg_evhandler':
    piclfrutree.c:2369: error: passing argument 4 of 'nvlist_unpack' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:159: note: expected 'int' but argument is of type 'void *'
    piclfrutree.c: In function 'add_sensor_node':
    piclfrutree.c:2600: error: comparison between pointer and integer
    piclfrutree.c: In function 'add_env_nodes':
    piclfrutree.c:3229: error: comparison between pointer and integer
    piclfrutree.c:3273: error: passing argument 2 of 'add_sensor_node' makes integer from pointer without a cast
    piclfrutree.c:2576: note: expected 'picl_nodehdl_t' but argument is of type 'void *'
    piclfrutree.c: In function 'add_led_nodes':
    piclfrutree.c:3631: error: passing argument 1 of 'add_sensor_node' makes integer from pointer without a cast
    piclfrutree.c:2576: note: expected 'picl_nodehdl_t' but argument is of type 'void *'
    piclfrutree.c:3634: error: passing argument 2 of 'add_sensor_node' makes integer from pointer without a cast
    piclfrutree.c:2576: note: expected 'picl_nodehdl_t' but argument is of type 'void *'
    piclfrutree.c: In function 'update_disk_node':
    piclfrutree.c:3866: error: comparison between pointer and integer
    piclfrutree.c:3884: error: comparison between pointer and integer

    libfruaccess.c: In function 'fru_open_container':
    libfruaccess.c:117: error: return makes integer from pointer without a cast
    libfruaccess.c:120: error: passing argument 4 of 'ptree_get_propval_by_name' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/picltree.h:105: note: expected 'size_t' but argument is of type 'void *'
    libfruaccess.c:123: error: return makes integer from pointer without a cast
    libfruaccess.c:129: error: return makes integer from pointer without a cast

    piclfrutree.c: In function 'frudr_completion_handler':
    piclfrutree.c:1027: error: assignment makes integer from pointer without a cast
    piclfrutree.c:1030: error: comparison between pointer and integer
    piclfrutree.c: In function 'post_frudr_event':
    piclfrutree.c:1051: error: passing argument 3 of 'nvlist_alloc' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:155: note: expected 'int' but argument is of type 'void *'
    piclfrutree.c: In function 'add_power_supply':
    piclfrutree.c:1114: error: passing argument 2 of 'post_frudr_event' makes integer from pointer without a cast
    piclfrutree.c:1043: note: expected 'picl_nodehdl_t' but argument is of type 'void *'
    piclfrutree.c: In function 'remove_power_supply':
    piclfrutree.c:1144: error: passing argument 2 of 'post_frudr_event' makes integer from pointer without a cast
    piclfrutree.c:1043: note: expected 'picl_nodehdl_t' but argument is of type 'void *'

    piclfrutree.c: In function 'frudr_completion_handler':
    piclfrutree.c:1152: error: assignment makes integer from pointer without a cast
    piclfrutree.c:1155: error: comparison between pointer and integer
    piclfrutree.c: In function 'post_frudr_event':
    piclfrutree.c:1176: error: passing argument 3 of 'nvlist_alloc' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:155: note: expected 'int' but argument is of type 'void *'
    piclfrutree.c: In function 'add_power_supply':
    piclfrutree.c:1239: error: passing argument 2 of 'post_frudr_event' makes integer from pointer without a cast
    piclfrutree.c:1168: note: expected 'picl_nodehdl_t' but argument is of type 'void *'
    piclfrutree.c: In function 'remove_power_supply':
    piclfrutree.c:1271: error: passing argument 2 of 'post_frudr_event' makes integer from pointer without a cast
    piclfrutree.c:1168: note: expected 'picl_nodehdl_t' but argument is of type 'void *'

    piclenvsetup.c: In function 'add_sensor_nodes_and_props':
    piclenvsetup.c:510: error: comparison between pointer and integer
    piclenvsetup.c: In function 'delete_sensor_nodes_and_props':
    piclenvsetup.c:631: error: comparison between pointer and integer
    piclenvsetup.c:634: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:637: error: comparison between pointer and integer
    piclenvsetup.c:641: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:642: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'add_fan_nodes_and_props':
    piclenvsetup.c:685: error: comparison between pointer and integer
    piclenvsetup.c: In function 'delete_fan_nodes_and_props':
    piclenvsetup.c:773: error: comparison between pointer and integer
    piclenvsetup.c:776: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'env_picl_setup':
    piclenvsetup.c:845: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:846: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:847: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:848: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:856: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:857: error: assignment makes integer from pointer without a cast

    piclenvsetup.c: In function 'add_sensor_nodes_and_props':
    piclenvsetup.c:487: error: comparison between pointer and integer
    piclenvsetup.c: In function 'delete_sensor_nodes_and_props':
    piclenvsetup.c:593: error: comparison between pointer and integer
    piclenvsetup.c:596: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:599: error: comparison between pointer and integer
    piclenvsetup.c:603: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:604: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'add_fan_nodes_and_props':
    piclenvsetup.c:647: error: comparison between pointer and integer
    piclenvsetup.c: In function 'delete_fan_nodes_and_props':
    piclenvsetup.c:735: error: comparison between pointer and integer
    piclenvsetup.c:738: error: assignment makes integer from pointer without a cast
    piclenvsetup.c: In function 'env_picl_setup':
    piclenvsetup.c:796: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:797: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:798: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:806: error: assignment makes integer from pointer without a cast
    piclenvsetup.c:807: error: assignment makes integer from pointer without a cast

    piclmemcfg.c: In function 'create_logical_tree':
    piclmemcfg.c:104: error: assignment makes integer from pointer without a cast
    piclmemcfg.c:168: error: comparison between pointer and integer
    piclmemcfg.c:188: error: comparison between pointer and integer
    piclmemcfg.c: In function 'create_physical_tree':
    piclmemcfg.c:277: error: assignment makes integer from pointer without a cast

    fru_data.c: In function 'frudata_state_change_evhandler':
    fru_data.c:2183: error: passing argument 4 of 'nvlist_unpack' makes integer from pointer without a cast
    /code/illumos-gate/proto/root_sparc/usr/include/sys/nvpair.h:159: note: expected 'int' but argument is of type 'void *'

    fru_access.c: In function 'fru_open_container':
    fru_access.c:780: error: return makes integer from pointer without a cast
    fru_access.c:787: error: return makes integer from pointer without a cast
    fru_access.c:793: error: return makes integer from pointer without a cast
    fru_access.c:798: error: return makes integer from pointer without a cast
    fru_access.c:803: error: return makes integer from pointer without a cast
    fru_access.c:809: error: return makes integer from pointer without a cast
    fru_access.c:814: error: return makes integer from pointer without a cast
    fru_access.c:826: error: return makes integer from pointer without a cast
    fru_access.c:864: error: return makes integer from pointer without a cast
    fru_access.c:873: error: return makes integer from pointer without a cast

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 ada2da53edc6b7d3afbdff4975c5c32c01a7c72d

commit  ada2da53edc6b7d3afbdff4975c5c32c01a7c72d
Author: Toomas Soome <tsoome@me.com>
Date:   2020-05-10T07:04:10.000Z

    12536 picl: NULL pointer errors
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Actions

Also available in: Atom PDF