10777 pci_autoconfig: NULL pointer errors

Review Request #1742 — Created April 14, 2019 and submitted

tsoome
illumos-gate
10777
cf5491b...
general
../../intel/io/pci/pci_boot.c: In function 'fix_ppb_res':
../../intel/io/pci/pci_boot.c:968:30: error: comparison between pointer and integer [-Werror]
        subbus + 1, range, 1) != NULL)
                              ^~
../../intel/io/pci/pci_boot.c: In function 'add_reg_props':
../../intel/io/pci/pci_boot.c:2603:14: error: comparison between pointer and integer [-Werror]
     if (base != NULL) {
              ^~
../../intel/io/pci/pci_boot.c:2620:35: error: comparison between pointer and integer [-Werror]
    } else if ((*mem_avail && base == NULL) ||
                                   ^~
../../intel/io/pci/pci_boot.c:2629:15: error: comparison between pointer and integer [-Werror]
      if (base != NULL) {
               ^~
../../intel/io/pci/pci_boot.c:2641:14: error: comparison between pointer and integer [-Werror]
     if (base == NULL) {
              ^~
../../intel/io/pci/pci_boot.c:2644:15: error: comparison between pointer and integer [-Werror]
      if (base != NULL) {
               ^~
../../intel/io/pci/pci_boot.c:2651:14: error: comparison between pointer and integer [-Werror]
     if (base != NULL) {
              ^~
../../intel/io/pci/pci_boot.c:2703:12: error: comparison between pointer and integer [-Werror]
   if (base != NULL) {
            ^~
cc1: all warnings being treated as errors


andy_js
  1. Ship It!
  2. 
      
wiedi
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...