All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@linux.intel.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
	kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Paul Gortmaker <paul.gortmaker@windriver.com>,
	Dave Airlie <airlied@redhat.com>
Subject: Re: [patch] gma500: silence gcc warnings in mid_get_vbt_data()
Date: Wed, 04 Jan 2012 11:48:22 +0000	[thread overview]
Message-ID: <20120104114822.0fd32fba@bob.linux.org.uk> (raw)
In-Reply-To: <20120104072610.GH30978@elgon.mountain>

On Wed, 4 Jan 2012 10:26:10 +0300
Dan Carpenter <dan.carpenter@oracle.com> wrote:

> Add a cast here to silence a Gcc warning.
> drivers/gpu/drm/gma500/mid_bios.c:214:28: warning:
>   cast from pointer to integer of different size
> [-Wpointer-to-int-cast]
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
> Compile tested only.

It's actually a non-bug (no 64bit boxes and we always take from within
the low 32bits). I guess gcc would have to extremely smart to figure
that out though.

Acked-by: Alan Cox <alan@linux.intel.com>

WARNING: multiple messages have this Message-ID (diff)
From: Alan Cox <alan@linux.intel.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>,
	kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Paul Gortmaker <paul.gortmaker@windriver.com>,
	Dave Airlie <airlied@redhat.com>
Subject: Re: [patch] gma500: silence gcc warnings in mid_get_vbt_data()
Date: Wed, 4 Jan 2012 11:48:22 +0000	[thread overview]
Message-ID: <20120104114822.0fd32fba@bob.linux.org.uk> (raw)
In-Reply-To: <20120104072610.GH30978@elgon.mountain>

On Wed, 4 Jan 2012 10:26:10 +0300
Dan Carpenter <dan.carpenter@oracle.com> wrote:

> Add a cast here to silence a Gcc warning.
> drivers/gpu/drm/gma500/mid_bios.c:214:28: warning:
>   cast from pointer to integer of different size
> [-Wpointer-to-int-cast]
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
> Compile tested only.

It's actually a non-bug (no 64bit boxes and we always take from within
the low 32bits). I guess gcc would have to extremely smart to figure
that out though.

Acked-by: Alan Cox <alan@linux.intel.com>

  reply	other threads:[~2012-01-04 11:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04  7:26 [patch] gma500: silence gcc warnings in mid_get_vbt_data() Dan Carpenter
2012-01-04  7:26 ` Dan Carpenter
2012-01-04 11:48 ` Alan Cox [this message]
2012-01-04 11:48   ` Alan Cox

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=20120104114822.0fd32fba@bob.linux.org.uk \
    --to=alan@linux.intel.com \
    --cc=airlied@redhat.com \
    --cc=dan.carpenter@oracle.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@suse.de \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=paul.gortmaker@windriver.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.