LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: roger blofeld <blofeldus@yahoo.com>
To: linuxppc-dev@ozlabs.org
Subject: [PATCH] gcc4 fix for asm/time.h
Date: Tue, 21 Jun 2005 12:44:19 -0700 (PDT)	[thread overview]
Message-ID: <20050621194419.69010.qmail@web53508.mail.yahoo.com> (raw)

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 

                 reply	other threads:[~2005-06-21 19:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050621194419.69010.qmail@web53508.mail.yahoo.com \
    --to=blofeldus@yahoo.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox