driver/flags_table.c: fix up sparse warnings

Don't use 0 as a NULL value.  Compilers just want to see an empty value
and will set it to all zeros, so just use that version in lists instead,
making any future structure chances no problem at all.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
driver/main.c: make some variables static that should not be global.

This makes sparse happy by keeping everything that can be static,
static.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
driver/main.c: use NULL not 0 for pointers

Fixes a sparse warning about trying to use 0 instead of NULL in the
TRACEPOINT_PROBE_[UN]REGISTER() macros.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
driver/ppm_events.c: mark memory_dump() as static.

The kernel already has functions that do this, but for now, just mark it
static to keep sparse happy.

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