From: Christoph Hellwig A function must not return a const value, instead use __attribute_const__. Signed-off-by: Christoph Hellwig Acked-by: Paul Mackerras Signed-off-by: Andrew Morton --- include/asm-ppc/time.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN include/asm-ppc/time.h~ppc32-fix-gcc4-warning-in-asm-ppc-timeh include/asm-ppc/time.h --- 25/include/asm-ppc/time.h~ppc32-fix-gcc4-warning-in-asm-ppc-timeh Thu Aug 4 15:38:26 2005 +++ 25-akpm/include/asm-ppc/time.h Thu Aug 4 15:38:26 2005 @@ -10,6 +10,7 @@ #define __ASM_TIME_H__ #include +#include #include #include #include @@ -58,7 +59,7 @@ static __inline__ void set_dec(unsigned /* Accessor functions for the timebase (RTC on 601) registers. */ /* If one day CONFIG_POWER is added just define __USE_RTC as 1 */ #ifdef CONFIG_6xx -extern __inline__ int const __USE_RTC(void) { +extern __inline__ int __attribute_const__ __USE_RTC(void) { return (mfspr(SPRN_PVR)>>16) == 1; } #else _