[PATCH v2] board: xilinx: Add missing prototype for set_dfu_alt_info

Add missing prototype to fix the sparse warning, warning: no previous prototype for 'set_dfu_alt_info' [-Wmissing-prototypes].
Signed-off-by: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com --- Changes in v2: - Include dfu.h and remove the set_dfu_alt_info declaration from board.h. --- board/xilinx/versal/board.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c index fd5c6ced79..c0477e6574 100644 --- a/board/xilinx/versal/board.c +++ b/board/xilinx/versal/board.c @@ -6,6 +6,7 @@
#include <command.h> #include <cpu_func.h> +#include <dfu.h> #include <env.h> #include <fdtdec.h> #include <init.h>

On 1/6/25 10:06, Venkatesh Yadav Abbarapu wrote:
Add missing prototype to fix the sparse warning, warning: no previous prototype for 'set_dfu_alt_info' [-Wmissing-prototypes].
Signed-off-by: Venkatesh Yadav Abbarapu venkatesh.abbarapu@amd.com
Changes in v2:
- Include dfu.h and remove the set_dfu_alt_info declaration from board.h.
board/xilinx/versal/board.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c index fd5c6ced79..c0477e6574 100644 --- a/board/xilinx/versal/board.c +++ b/board/xilinx/versal/board.c @@ -6,6 +6,7 @@
#include <command.h> #include <cpu_func.h> +#include <dfu.h> #include <env.h> #include <fdtdec.h> #include <init.h>
Applied. M
participants (2)
-
Michal Simek
-
Venkatesh Yadav Abbarapu