Make some functions static to keep sparse happy

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>