Untested, but this should fix up the bulk of the totally mechanical issues, and should make the actual detail fixing easier.
Signed-off-by: Linus Torvalds
#include <asm-generic/irq_regs.h>