10877 i86pc: comparison between pointer and integer

Review Request #1811 - Created April 28, 2019 and submitted

Information
Toomas Soome
illumos-gate
10877
becf46d...
Reviewers
general
In file included from ../../common/sys/model.h:35:0,
                 from ../../common/sys/resource.h:221,
                 from ../../common/sys/vnode.h:51,
                 from ../../common/vm/seg.h:43,
                 from ../../common/vm/as.h:47,
                 from ../../common/sys/devops.h:37,
                 from ../../common/sys/sunddi.h:39,
                 from ../../i86pc/io/amd_iommu/amd_iommu_page_tables.c:26:
../../i86pc/io/amd_iommu/amd_iommu_page_tables.c: In function 'amd_iommu_alloc_pgtable':
../../i86pc/io/amd_iommu/amd_iommu_page_tables.c:879:40: error: comparison between pointer and integer [-Werror]
  ASSERT(pt->pt_cookie.dmac_cookie_addr != NULL);
                                        ^
../../common/sys/debug.h:59:29: note: in definition of macro 'ASSERT'
 #define ASSERT(EX) ((void)((EX) || assfail(#EX, __FILE__, __LINE__)))
                             ^~
cc1: all warnings being treated as errors

  

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
John Levon
Toomas Soome
John Levon
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...