RE: [PATCH] Fix gcc 4 warnings on ia64

Luck, Tony
2005-08-17T00:05:42Z

> You actually need the const attribute on __ia64_get_io_port_base

cscope didn't show any users of this function ... so I thought
perhaps the callers were in some macros that concatenated
strings with ## to make the name, but I couldn't see any.

So I tried the big hammer and just deleted the function
entirely to see what would complain, but nothing did (for
compile with defconfig and tiger_defconfig).

So unless something very, very, very subtle is happening
here, I'd say the fix would be to delete this function
altogether. Rumours of better/worse code with/without
the "const" modifier look to be unfounded.

Hint: we also store ia64_iobase in ar.k0 ... so perhaps this
function has been obsolete for a while?

-Tony