[U-Boot] [PATCH 8/9] reset: declare fdtdec_phandle_args as struct to fix warning

Masahiro Yamada yamada.masahiro at socionext.com
Sat Oct 8 06:25:30 CEST 2016


The of_xlate() callback needs to know fdtdec_phandle_args is struct.

Otherwise, the following warning is displayed.

include/reset-uclass.h:40:11: warning: 'struct fdtdec_phandle_args'
declared inside parameter list
    struct fdtdec_phandle_args *args);
           ^
include/reset-uclass.h:40:11: warning: its scope is only this
definition or declaration, which is probably not what you want

Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---

 include/reset-uclass.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/reset-uclass.h b/include/reset-uclass.h
index 50adeca..38c716f 100644
--- a/include/reset-uclass.h
+++ b/include/reset-uclass.h
@@ -11,6 +11,7 @@
 
 #include <reset.h>
 
+struct fdtdec_phandle_args;
 struct udevice;
 
 /**
-- 
1.9.1



More information about the U-Boot mailing list