Mark functions and variable static where appropriate

This makes functions and globals static when then can be.  Additionally
this makes add_new_irq() return void since nothing used the returned
struct irq_info*

Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com>