[U-Boot-Users] a compile warning

*hi,everyone!* *I have used eldk4.1 to compile downloaded source u-boot 1.1.20(I didn't modify any source),but there is a warning happened:* *In s3c2410.h,all these function below :* static inline S3C24X0_MEMCTL * const S3C24X0_GetBase_MEMCTL(void) { return (S3C24X0_MEMCTL * const)S3C24X0_MEMCTL_BASE; } static inline S3C24X0_USB_HOST * const S3C24X0_GetBase_USB_HOST(void) { return (S3C24X0_USB_HOST * const)S3C24X0_USB_HOST_BASE; } static inline S3C24X0_INTERRUPT * const S3C24X0_GetBase_INTERRUPT(void) { return (S3C24X0_INTERRUPT * const)S3C24X0_INTERRUPT_BASE; } static inline S3C24X0_DMAS * const S3C24X0_GetBase_DMAS(void) { return (S3C24X0_DMAS * const)S3C24X0_DMA_BASE; } static inline S3C24X0_CLOCK_POWER * const S3C24X0_GetBase_CLOCK_POWER(void) { return (S3C24X0_CLOCK_POWER * const)S3C24X0_CLOCK_POWER_BASE; } static inline S3C24X0_LCD * const S3C24X0_GetBase_LCD(void) { return (S3C24X0_LCD * const)S3C24X0_LCD_BASE; } static inline S3C2410_NAND * const S3C2410_GetBase_NAND(void) { return (S3C2410_NAND * const)S3C2410_NAND_BASE; } static inline S3C24X0_UART * const S3C24X0_GetBase_UART(S3C24X0_UARTS_NR nr) { return (S3C24X0_UART * const)(S3C24X0_UART_BASE + (nr * 0x4000)); } static inline S3C24X0_TIMERS * const S3C24X0_GetBase_TIMERS(void) { return (S3C24X0_TIMERS * const)S3C24X0_TIMER_BASE; } static inline S3C24X0_USB_DEVICE * const S3C24X0_GetBase_USB_DEVICE(void) { return (S3C24X0_USB_DEVICE * const)S3C24X0_USB_DEVICE_BASE; } static inline S3C24X0_WATCHDOG * const S3C24X0_GetBase_WATCHDOG(void) { return (S3C24X0_WATCHDOG * const)S3C24X0_WATCHDOG_BASE; } static inline S3C24X0_I2C * const S3C24X0_GetBase_I2C(void) { return (S3C24X0_I2C * const)S3C24X0_I2C_BASE; } static inline S3C24X0_I2S * const S3C24X0_GetBase_I2S(void) { return (S3C24X0_I2S * const)S3C24X0_I2S_BASE; } static inline S3C24X0_GPIO * const S3C24X0_GetBase_GPIO(void) { return (S3C24X0_GPIO * const)S3C24X0_GPIO_BASE; } static inline S3C24X0_RTC * const S3C24X0_GetBase_RTC(void) { return (S3C24X0_RTC * const)S3C24X0_RTC_BASE; } static inline S3C2410_ADC * const S3C2410_GetBase_ADC(void) { return (S3C2410_ADC * const)S3C2410_ADC_BASE; } static inline S3C24X0_SPI * const S3C24X0_GetBase_SPI(void) { return (S3C24X0_SPI * const)S3C24X0_SPI_BASE; } static inline S3C2410_SDI * const S3C2410_GetBase_SDI(void) { return (S3C2410_SDI * const)S3C2410_SDI_BASE; } are showed this warning:*type qualifiers ignored on function return type* thx

In message e01571640703160341i115fcb3awa481257b1f434623@mail.gmail.com you wrote:
*I have used eldk4.1 to compile downloaded source u-boot 1.1.20(I didn't
There is no such version of U-Boot.
------=_Part_104267_7681648.1174041677804 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
And NEVER post HTML here.
Best regards,
Wolfgang Denk

On Fri, Mar 16, 2007 at 06:41:17PM +0800, 邹伟 wrote:
*In s3c2410.h,all these function below :* are showed this warning:*type qualifiers ignored on function return type*
Yes, I have observed this, too - and submitted a patch in mid-february to this list. Unfortunately it did not receive any comment and - AFAICT - also was not applied to the tree either. I know the maintainers are busy, and they've just reorganized their maintenance structure.
Maybe somebody can look at this trivial fix again? Thanks!
The message-id is: 20070216225725.GG11991@prithivi.gnumonks.org
Cheers,
participants (3)
-
Harald Welte
-
Wolfgang Denk
-
邹伟