Skip to content

Commit

Permalink
apps: examples: load_fw: fix up for -werror
Browse files Browse the repository at this point in the history
with werror flag compilation fails. update to build

Signed-off-by: Ben Levinsky <[email protected]>
  • Loading branch information
Ben Levinsky authored and arnopo committed Oct 18, 2022
1 parent 17b2594 commit bb6d168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions apps/examples/load_fw/load_fw.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
/*
* Load firmware example
*
* Copyright(c) 2018 Xilinx Ltd.
* All rights reserved.
*
* Copyright (C) 2022, Advanced Micro Devices, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/

#include <platform_info.h>
#include "platform_info.h"
#include <common.h>

extern const struct image_store_ops mem_image_store_ops;
Expand Down
6 changes: 2 additions & 4 deletions apps/examples/load_fw/zynqmp_rpu_lcm_rproc_example.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/*
* ZynqMP RPU life cycle management remoteproc example implementation
*
* Copyright(c) 2019 Xilinx Ltd.
* All rights reserved.
*
* Copyright (C) 2022, Advanced Micro Devices, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <common.h>
Expand Down Expand Up @@ -181,7 +179,7 @@ static int rpu_rproc_shutdown(struct remoteproc *rproc)
XPm_ReleaseNode(NODE_TCM_1_B);
} else {
LPERROR("unmap failed: invalid cpu node: %d\r\n", priv->cpu_id);
return NULL;
return -EINVAL;
}
}

Expand Down

0 comments on commit bb6d168

Please sign in to comment.