Project

General

Profile

Bug #12571

pcisch: NULL pointer errors

Added by Toomas Soome 3 months ago. Updated 29 days 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 with NULL pointer:

    ../../sun4u/io/pci/pcisch.c:1579: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1579: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1668: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1668: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1794: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1794: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1797: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1797: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1800: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1800: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1803: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1803: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1806: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1806: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1809: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1809: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1812: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1812: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1815: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1815: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1818: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1818: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1821: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1821: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1824: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1824: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1826: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1826: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1826: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1826: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:1826: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2096: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2096: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2097: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2286: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2289: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2292: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2294: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2295: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2295: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2734: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2734: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2741: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2741: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2742: error: incompatible types when initializing type 'enum <anonymous>' using type 'void *'
    ../../sun4u/io/pci/pcisch.c:2742: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c:2742: error: initialization makes integer from pointer without a cast
    ../../sun4u/io/pci/pcisch.c: In function 'pci_format_ecc_addr':
    ../../sun4u/io/pci/pcisch.c:2782: error: comparison between pointer and integer

    ../../sun4u/io/pci/pci_counters.c: In function 'pci_create_picN_kstat':
    ../../sun4u/io/pci/pci_counters.c:110: error: passing argument 7 of 'kstat_create' makes integer from pointer without a cast
    ../../common/sys/kstat.h:793: note: expected 'uchar_t' but argument is of type 'void *'

    ../../sun4u/io/pci/pcix.c: In function 'pcix_set_cmd_reg':
    ../../sun4u/io/pci/pcix.c:68: error: passing argument 3 of 'pci_cap_get' makes integer from pointer without a cast
    ../../common/sys/pci_cap.h:110: note: expected 'uint32_t' but argument is of type 'void *'
    ../../sun4u/io/pci/pcix.c:81: error: passing argument 3 of 'pci_cap_put' makes integer from pointer without a cast
    ../../common/sys/pci_cap.h:113: note: expected 'uint32_t' but argument is of type 'void *'

Testing done: build/install/boot

History

#1

Updated by Toomas Soome about 1 month ago

  • Description updated (diff)
#2

Updated by Electric Monk 29 days ago

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

git commit ae121a1498fc4947aa90fa23f0276b59938ed62e

commit  ae121a1498fc4947aa90fa23f0276b59938ed62e
Author: Toomas Soome <tsoome@me.com>
Date:   2020-06-15T17:38:26.000Z

    12571 pcisch: NULL pointer errors
    Reviewed by: Yuri Pankov <ypankov@tintri.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF