summaryrefslogtreecommitdiff
path: root/components/drivers/ofw
diff options
context:
space:
mode:
authorShell <[email protected]>2024-03-30 17:58:38 +0800
committerGitHub <[email protected]>2024-03-30 17:58:38 +0800
commit864055bf1806f1331843379ced674b454b59bfca (patch)
tree998720b2f18de67fb122d0930a4a80467ff9389c /components/drivers/ofw
parent6d1bc9b2f82e7b6c49e3a7fd38ed66aab1ac86d6 (diff)
[fixup] aarch64 UMP compiler error (#8677)
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'components/drivers/ofw')
-rw-r--r--components/drivers/ofw/base.c2
-rwxr-xr-xcomponents/drivers/ofw/irq.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/ofw/base.c b/components/drivers/ofw/base.c
index 4578758a23..ffb513fbb7 100644
--- a/components/drivers/ofw/base.c
+++ b/components/drivers/ofw/base.c
@@ -1474,7 +1474,7 @@ static const char *ofw_get_prop_fuzzy_name(const struct rt_ofw_node *np, const c
char *sf, split_field[64];
rt_size_t len = 0, max_ak = 0;
const char *str, *result = RT_NULL;
- RT_BITMAP_DECLARE(ak, sizeof(split_field));
+ RT_BITMAP_DECLARE(ak, sizeof(split_field)) = {0};
struct rt_ofw_prop *prop;
/*
diff --git a/components/drivers/ofw/irq.c b/components/drivers/ofw/irq.c
index be843d6cb7..cf47f01ed2 100755
--- a/components/drivers/ofw/irq.c
+++ b/components/drivers/ofw/irq.c
@@ -624,7 +624,7 @@ int rt_ofw_get_irq(struct rt_ofw_node *np, int index)
if ((rt_int64_t)cpuid >= 0)
{
- RT_DECLARE_BITMAP(affinity, RT_CPUS_NR) = { 0 };
+ RT_BITMAP_DECLARE(affinity, RT_CPUS_NR) = { 0 };
rt_bitmap_set_bit(affinity, cpuid);