mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hannes Eder <hannes@hanneseder.net>
To: trivial@kernel.org, Jesse Barnes <jbarnes@virtuousgeek.org>,
	dri-devel@lists.sourceforge.net
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 03/16] drm: radeon: fix sparse warnings: Using plain  integer as NULL pointer
Date: Fri, 27 Feb 2009 01:53:52 +0100	[thread overview]
Message-ID: <154e089b0902261653q4576b9c6v20b456834e4fac3@mail.gmail.com> (raw)
In-Reply-To: <20090222000122.17557.75097.stgit@vmbox.hanneseder.net>

[Added To]

On Sun, Feb 22, 2009 at 1:01 AM, Hannes Eder <hannes@hanneseder.net> wrote:
> Fix this sparse warning:
>  drivers/gpu/drm/radeon/radeon_cp.c:1363:52: warning: Using plain integer as NULL pointer
>  drivers/gpu/drm/radeon/radeon_state.c:1983:61: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Hannes Eder <hannes@hanneseder.net>
> ---
>  drivers/gpu/drm/radeon/radeon_cp.c    |    2 +-
>  drivers/gpu/drm/radeon/radeon_state.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_cp.c b/drivers/gpu/drm/radeon/radeon_cp.c
> index 119e642..f5f4e96 100644
> --- a/drivers/gpu/drm/radeon/radeon_cp.c
> +++ b/drivers/gpu/drm/radeon/radeon_cp.c
> @@ -1360,7 +1360,7 @@ static int radeon_do_cleanup_cp(struct drm_device * dev)
>                if (dev_priv->gart_info.gart_table_location == DRM_ATI_GART_FB)
>                {
>                        drm_core_ioremapfree(&dev_priv->gart_info.mapping, dev);
> -                       dev_priv->gart_info.addr = 0;
> +                       dev_priv->gart_info.addr = NULL;
>                }
>        }
>        /* only clear to the start of flags */
> diff --git a/drivers/gpu/drm/radeon/radeon_state.c b/drivers/gpu/drm/radeon/radeon_state.c
> index 043293a..61e75bc 100644
> --- a/drivers/gpu/drm/radeon/radeon_state.c
> +++ b/drivers/gpu/drm/radeon/radeon_state.c
> @@ -1980,7 +1980,7 @@ static int alloc_surface(drm_radeon_surface_alloc_t *new,
>
>        /* find a virtual surface */
>        for (i = 0; i < 2 * RADEON_MAX_SURFACES; i++)
> -               if (dev_priv->virt_surfaces[i].file_priv == 0)
> +               if (dev_priv->virt_surfaces[i].file_priv == NULL)
>                        break;
>        if (i == 2 * RADEON_MAX_SURFACES) {
>                return -1;
>
>

  reply	other threads:[~2009-02-27  0:54 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-22  0:00 [PATCH 00/16] " Hannes Eder
2009-02-22  0:00 ` [PATCH 01/16] kexec/i386: " Hannes Eder
2009-02-27  0:48   ` Hannes Eder
2009-02-22  0:01 ` [PATCH 02/16] x86, numa_32.c: fix sparse warning: " Hannes Eder
2009-02-27  0:50   ` Hannes Eder
2009-02-22  0:01 ` [PATCH 03/16] drm: radeon: fix sparse warnings: " Hannes Eder
2009-02-27  0:53   ` Hannes Eder [this message]
2009-02-22  0:01 ` [PATCH 04/16] ide: " Hannes Eder
2009-02-27  0:58   ` Hannes Eder
2009-02-22  0:02 ` [PATCH 05/16] dvb: " Hannes Eder
2009-02-27  1:00   ` Hannes Eder
2009-02-22  0:02 ` [PATCH 06/16] MTD: tests: " Hannes Eder
2009-02-27  1:02   ` Hannes Eder
2009-02-27  5:07     ` Artem Bityutskiy
2009-02-22  0:02 ` [PATCH 07/16] panasonic-laptop: fix sparse warning: " Hannes Eder
2009-02-27  1:03   ` Hannes Eder
2009-02-22  0:02 ` [PATCH 08/16] [SCSI] FlashPoint: fix sparse warnings: " Hannes Eder
2009-02-22  0:11   ` [PATCH 08/16 v2] " Hannes Eder
2009-02-22  0:04 ` [PATCH 09/16] usb host: fix sparse warning: " Hannes Eder
2009-02-27  1:04   ` Hannes Eder
2009-02-22  0:04 ` [PATCH 10/16] viafb: " Hannes Eder
2009-02-27  1:07   ` Hannes Eder
2009-02-22  0:05 ` [PATCH 11/16] fs/super.c: " Hannes Eder
2009-02-27  1:10   ` Hannes Eder
2009-02-27  1:28     ` Al Viro
2009-03-02 21:34       ` [PATCH 11/16 v2] NULL noise: drivers/ide/ide-*.c Hannes Eder
2009-03-02 23:53         ` [PATCH 04/16 v3] " Hannes Eder
2009-03-05 13:47           ` Bartlomiej Zolnierkiewicz
2009-02-22  0:05 ` [PATCH 12/16] reiserfs: fix sparse warning: Using plain integer as NULL pointer Hannes Eder
2009-02-27  1:12   ` Hannes Eder
2009-02-22  0:05 ` [PATCH 13/16] kprobes: fix sparse warnings: " Hannes Eder
2009-02-27  1:13   ` Hannes Eder
2009-02-22  0:05 ` [PATCH 14/16] memcg: fix sparse warning: " Hannes Eder
2009-02-27  1:15   ` Hannes Eder
2009-02-27  1:37     ` KAMEZAWA Hiroyuki
2009-02-22  0:05 ` [PATCH 15/16] ipv6: " Hannes Eder
2009-02-22  7:37   ` David Miller
2009-02-22  0:05 ` [PATCH 16/16] ALSA: msnd: " Hannes Eder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=154e089b0902261653q4576b9c6v20b456834e4fac3@mail.gmail.com \
    --to=hannes@hanneseder.net \
    --cc=dri-devel@lists.sourceforge.net \
    --cc=jbarnes@virtuousgeek.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®