These patches clean up the code so that it compiles cleanly with -Wextra on all architectures except CRIS. The compiler that I have for CRIS doesn't support -Wextra.