[PATCH] gcc4 fix for asm/time.h

roger blofeld blofeldus at yahoo.com
Wed Jun 22 05:44:19 EST 2005

 GCC4 complains:

include/asm/time.h:61: warning: type qualifiers ignored on function
return type

so I propose this patch.

Signed off by: Roger Blofeld <blofeldus at yahoo.com>

diff --git a/include/asm-ppc/time.h b/include/asm-ppc/time.h
--- a/include/asm-ppc/time.h
+++ b/include/asm-ppc/time.h
@@ -58,7 +58,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;

Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 

More information about the Linuxppc-dev mailing list