HW: Fix -Wmissing-declarations and -Wshadow warning.