public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: phy: mv88e61xx.c : fixed build warning
Date: Sun, 04 Oct 2009 22:45:50 -0700	[thread overview]
Message-ID: <4AC9880E.1060602@gmail.com> (raw)
In-Reply-To: <1253545099-29437-2-git-send-email-prafulla@marvell.com>

Hi Prafulla,

Prafulla Wadaskar wrote:
> following build warning was observed
>
> mv88e61xx.c: In function ?mv88e61xx_busychk?:
> mv88e61xx.c:208: warning: dereferencing type-punned pointer will break strict-aliasing rules
>
> This patch fixes the same
> Patch tested for rd6281a board build
>
> Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
> ---
>  drivers/net/phy/mv88e61xx.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c
> index 3754e8b..2d1de02 100644
> --- a/drivers/net/phy/mv88e61xx.c
> +++ b/drivers/net/phy/mv88e61xx.c
> @@ -201,11 +201,11 @@ static void mv88e61xx_port_vlan_config(struct mv88e61xx_config *swconfig,
>   */
>  static int mv88e61xx_busychk(char *name)
>  {
> -	u32 reg = 0;
> +	u16 reg = 0;
>  	u32 timeout = MV88E61XX_PHY_TIMEOUT;
>  	do {
>  		RD_PHY(name, MV88E61XX_GLB2REG_DEVADR,
> -		       MV88E61XX_PHY_CMD, (u16 *) & reg);
> +		       MV88E61XX_PHY_CMD, &reg);
>  		if (timeout-- == 0) {
>  			printf("SMI busy timeout\n");
>  			return -1;
>   
Applied to net repo.

thanks,
Ben

  parent reply	other threads:[~2009-10-05  5:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-21 14:58 [U-Boot] [PATCH] Kirkwood: rd6281a: Add kwbimage build support Prafulla Wadaskar
2009-09-21 14:58 ` [U-Boot] [PATCH] net: phy: mv88e61xx.c : fixed build warning Prafulla Wadaskar
2009-09-21 14:58   ` [U-Boot] [PATCH] Kirkwood: mv88f6281gtw_ge: Add kwbimage build support Prafulla Wadaskar
2009-09-21 17:29     ` Prafulla Wadaskar
2009-09-23 22:08   ` [U-Boot] [PATCH] net: phy: mv88e61xx.c : fixed build warning Wolfgang Denk
2009-09-24  4:31     ` Prafulla Wadaskar
2009-10-05  5:45   ` Ben Warren [this message]
2009-09-21 17:29 ` [U-Boot] [PATCH] Kirkwood: rd6281a: Add kwbimage build support Prafulla Wadaskar

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=4AC9880E.1060602@gmail.com \
    --to=biggerbadderben@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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