Skip site navigation (1)Skip section navigation (2)
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/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206762

            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=3D/dev/null make tinderbox KERNCONF=3DLINT -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 al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D NULL) {^M
             ~~~~~^~~~    ~~~~^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:104=
0:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D NULL) {^M
             ~~~~~^~~~    ~~~~^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:125=
9:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D NULL) {^M
             ~~~~~^~~~    ~~~~^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:129=
9:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D NULL) {^M
             ~~~~~^~~~    ~~~~^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:172=
5:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D NULL) {^M
             ~~~~~^~~~    ~~~~^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:359=
5:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D 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_pc=
i.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:363=
2:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D NULL) {^M
             ~~~~~^~~~    ~~~~^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem.c:368=
5:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D NULL) {^M
             ~~~~~^~~~    ~~~~^M
--- all_subdir_drm ---^M
--- all_subdir_i915kms ---^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_execb=
uffer.c:798:13:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
                if (&obj->base =3D=3D NULL) {^M
                     ~~~~~^~~~    ~~~~^M
--- all_subdir_i915kms ---^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_execb=
uffer.c:1275:13:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
                if (&obj->base =3D=3D NULL) {^M
                     ~~~~~^~~~    ~~~~^M
--- all_subdir_i915kms ---^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_tilin=
g.c:311:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D NULL)^M
             ~~~~~^~~~    ~~~~^M
/usr/src/svn/sys/modules/drm2/i915kms/../../../dev/drm2/i915/i915_gem_tilin=
g.c:418:12:
warning: comparison of address of 'obj->base' equal to a null pointer is al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D 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 al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D 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 al=
ways
false [-Wtautological-pointer-compare]^M
        if (&obj->base =3D=3D 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 =3D=3D NULL) {^M
             ~~~~~~~~^~~~    ~~~~^M

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206762-8>