Date: Sat, 30 Jan 2016 19:08:23 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 206762] -Wtautilogical-pointer-compare issues with drm(4) code Message-ID: <bug-206762-8@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206762 Bug ID: 206762 Summary: -Wtautilogical-pointer-compare issues with drm(4) code Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: ngie@FreeBSD.org Ran into these issues on amd64 with buildkernel: $ svnversion 295081 $ env SRCCONF=/dev/null make tinderbox KERNCONF=LINT -j4 ... --- all_subdir_i915kms ---^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:680:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:1040:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:1259:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:1299:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:1725:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:3595:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M --- all_subdir_drm ---^M --- drm.ko ---^M ld -d -warn-common -r -d -o drm.ko ati_pcigart.o drm_agpsupport.o drm_auth.o drm_bufs.o drm_context.o drm_dma.o drm_drawable.o drm_drv.o drm_fops.o drm_hashtab.o drm_ioctl.o drm_irq.o drm_lock.o drm_memory.o drm_mm.o drm_pci.o drm_scatter.o drm_sman.o drm_sysctl.o drm_vm.o^M --- all_subdir_drm2 ---^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:3632:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:3685:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M --- all_subdir_drm ---^M --- all_subdir_i915kms ---^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_execbuffer.c:798:13: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M --- all_subdir_i915kms ---^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_execbuffer.c:1275:13: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL) {^M ~~~~~^~~~ ~~~~^M --- all_subdir_i915kms ---^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_tiling.c:311:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL)^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_tiling.c:418:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL)^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/intel_display.c:5161:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL)^M ~~~~~^~~~ ~~~~^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/intel_display.c:6731:12: warning: comparison of address of 'obj->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&obj->base == NULL)^M ~~~~~^~~~ ~~~~^M --- all_subdir_drm2 ---^M /usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/intel_overlay.c:1153:15: warning: comparison of address of 'new_bo->base' equal to a null pointer is always false [-Wtautological-pointer-compare]^M if (&new_bo->base == NULL) {^M ~~~~~~~~^~~~ ~~~~^M -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206762-8>
