Re: [PATCH] Type qualifiers in __ia64_get_io_port_base

From: Ian Wienand <>
Date: 2005-07-19 12:36:54
On Mon, Jul 18, 2005 at 07:06:55PM -0700, david mosberger wrote:
> This one is wrong.  It should use __attribute_const__ instead.  If you
> just drop the "const", it will result in worse code.

Ok, I see why reading about attribute const.  Thanks!


Signed-Off-By: Ian Wienand <>

diff --git a/include/asm-ia64/io.h b/include/asm-ia64/io.h
--- a/include/asm-ia64/io.h
+++ b/include/asm-ia64/io.h
@@ -120,7 +120,7 @@ static inline void ___ia64_mmiowb(void)
-static inline const unsigned long
+static inline __attribute_const__ unsigned long
 __ia64_get_io_port_base (void)
 	extern unsigned long ia64_iobase;

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Mon Jul 18 22:37:18 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST