Commit d60e6bae authored by Etienne Carriere's avatar Etienne Carriere
Browse files

io_dummy: correct sparse warnings



Include io_dummy.h header file.
Use static for device_type_dummy function.
Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
Signed-off-by: default avatarEtienne Carriere <etienne.carriere@st.com>
parent 5a8e2aee
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <assert.h> #include <assert.h>
#include <debug.h> #include <debug.h>
#include <io_driver.h> #include <io_driver.h>
#include <io_dummy.h>
#include <io_storage.h> #include <io_storage.h>
#include <string.h> #include <string.h>
...@@ -18,7 +19,7 @@ struct file_state { ...@@ -18,7 +19,7 @@ struct file_state {
static struct file_state current_file = {0}; static struct file_state current_file = {0};
/* Identify the device type as dummy */ /* 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; return IO_TYPE_DUMMY;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment