LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gcc4 fix for asm/time.h
@ 2005-06-21 19:44 roger blofeld
  0 siblings, 0 replies; only message in thread
From: roger blofeld @ 2005-06-21 19:44 UTC (permalink / raw)
  To: linuxppc-dev

Hi
 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@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;
 }
 #else



		
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-21 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-21 19:44 [PATCH] gcc4 fix for asm/time.h roger blofeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox