From mboxrd@z Thu Jan 1 00:00:00 1970 From: david mosberger Date: Tue, 19 Jul 2005 02:06:55 +0000 Subject: Re: [PATCH] Type qualifiers in __ia64_get_io_port_base Message-Id: List-Id: References: <20050719012027.GA10518@cse.unsw.EDU.AU> In-Reply-To: <20050719012027.GA10518@cse.unsw.EDU.AU> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org This one is wrong. It should use __attribute_const__ instead. If you just drop the "const", it will result in worse code. --david On 7/18/05, Ian Wienand wrote: > Fix > > include/asm/io.h:125: warning: type qualifiers ignored on function return type > > produced by gcc 4 > > According to http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00814.html > the type qualifier is superfluous. > > -- > > 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) > ia64_mfa(); > } > > -static inline const unsigned long > +static inline 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >