From d60e6bae022c3504d58ca67a5dc87ba4ec6fd850 Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Wed, 7 Jun 2017 16:45:15 +0200 Subject: [PATCH] io_dummy: correct sparse warnings Include io_dummy.h header file. Use static for device_type_dummy function. Signed-off-by: Yann Gautier Signed-off-by: Etienne Carriere --- drivers/io/io_dummy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/io/io_dummy.c b/drivers/io/io_dummy.c index a06aeb9c..d4020e3a 100644 --- a/drivers/io/io_dummy.c +++ b/drivers/io/io_dummy.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -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; } -- 2.30.2