Fix some warnings when building with gcc 4

From: Ian Wienand <>
Date: 2005-07-19 11:15:06

Following are some patches to fix some IA64 specific warnings I am
seeing when building with gcc 4.  I'm pretty sure they can't hurt
people not using gcc 4.

The only IA64 specific one that I still see is

 include/asm/mmu_context.h:67: warning: type qualifiers ignored on
 function return type

This is because mmu_context_t is defined as volatile for a good reason

  * Type for a context number.  We declare it volatile to ensure
  * proper ordering when it's accessed outside of spinlock'd critical
  * sections (e.g., as done in activate_mm() and init_new_context()).

However, when a function returns a mmu_context_t it ends up with the
qualified return type (which according to this old message doesn't mean
anything, unless something has changed).  So I'm not sure what the
best solution is for that one.


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 21:15:19 2005

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