Make all kernel module Sparse warnings into errors

The CMake files for the kernel modules have been updated to treat all
Sparse warnings as errors so that warnings cause the build to fail.

Change-Id: I3682afc3beea7244bb6e0831b2baf48b95611dbc
Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
diff --git a/remoteproc/CMakeLists.txt b/remoteproc/CMakeLists.txt
index c7f7ab8..676db9e 100644
--- a/remoteproc/CMakeLists.txt
+++ b/remoteproc/CMakeLists.txt
@@ -40,7 +40,7 @@
 # Build the kernel module
 add_custom_target(ethosu-remoteproc-module ALL
     COMMAND ${CMAKE_MAKE_PROGRAM} -C ${KDIR}
-    EXTRA_CFLAGS=-I${KDIR}/../../../drivers/remoteproc C=2 M=${CMAKE_CURRENT_SOURCE_DIR}
+    EXTRA_CFLAGS=-I${KDIR}/../../../drivers/remoteproc CF=-Wsparse-error C=2 M=${CMAKE_CURRENT_SOURCE_DIR}
                   ${MODULES}
                   CROSS_COMPILE=${CROSS_COMPILE} ARCH=${ARCH} modules
                   BYPRODUCTS