[U-Boot] [PATCH] jedec_flash: Fix compilation warning in jedec_flash.c

Wolfgang Denk wd at denx.de
Mon Jan 26 20:44:02 CET 2009


Dear Stefan Roese,

In message <1232960742-9121-1-git-send-email-sr at denx.de> you wrote:
> Signed-off-by: Stefan Roese <sr at denx.de>
> ---
>  drivers/mtd/jedec_flash.c |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c
> index 2d99d4d..879f25e 100644
> --- a/drivers/mtd/jedec_flash.c
> +++ b/drivers/mtd/jedec_flash.c
> @@ -172,7 +172,7 @@ struct amd_flash_info {
>  static const struct amd_flash_info jedec_table[] = {
>  #ifdef CONFIG_SYS_FLASH_LEGACY_256Kx8
>  	{
> -		.mfr_id		= MANUFACTURER_SST,
> +		.mfr_id		= (u16)MANUFACTURER_SST,

Which toolchain is throwing which exact warnings here? For which
board?

I don't think this should be needed. MANUFACTURER_SST is defined as
0x00BF - this hsould give no conflicts here.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Never underestimate the power of human stupidity  when  it  comes  to
using technology they don't understand.


More information about the U-Boot mailing list