io_dummy: correct sparse warnings
authorEtienne Carriere <etienne.carriere@st.com>
Wed, 7 Jun 2017 14:45:15 +0000 (16:45 +0200)
committerEtienne Carriere <etienne.carriere@st.com>
Fri, 23 Jun 2017 07:38:15 +0000 (09:38 +0200)
Include io_dummy.h header file.
Use static for device_type_dummy function.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
drivers/io/io_dummy.c

index a06aeb9c890fab41cdbc410293ccb1b24a18fb54..d4020e3a6dad4b5828f495aa105a862837f34077 100644 (file)
@@ -7,6 +7,7 @@
 #include <assert.h>
 #include <debug.h>
 #include <io_driver.h>
+#include <io_dummy.h>
 #include <io_storage.h>
 #include <string.h>
 
@@ -18,7 +19,7 @@ struct file_state {
 static struct file_state current_file = {0};
 
 /* Identify the device type as dummy */
-io_type_t device_type_dummy(void)
+static io_type_t device_type_dummy(void)
 {
        return IO_TYPE_DUMMY;
 }