Skip to content

Commit

Permalink
suit: Fix warnings in flash_ipuc tests
Browse files Browse the repository at this point in the history
Fix warnings in flash_ipuc tests.

Ref: NCSDK-NONE

Signed-off-by: Tomasz Chyrowicz <[email protected]>
  • Loading branch information
tomchy committed Jan 27, 2025
1 parent 8a0d464 commit 3e7e7b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
14 changes: 7 additions & 7 deletions drivers/flash/flash_ipuc/flash_ipuc.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BUILD_ASSERT(WRITE_BLOCK_SIZE > 0, "zephyr,flash: write_block_size expected to b
struct ipuc_context {
struct zcbor_string component_id;
uint8_t component_id_buf[IPUC_MEM_COMPONENT_MAX_SIZE];
size_t address;
uintptr_t address;
size_t size;
bool read_access;
};
Expand Down Expand Up @@ -282,8 +282,8 @@ static struct device *flash_component_ipuc(struct zcbor_string *component_id,
if (!dry_run) {
uint8_t cpu_id = 0;

plat_err = suit_plat_decode_component_id(&ctx->component_id, &cpu_id,
&ctx->address, &ctx->size);
plat_err = suit_plat_decode_component_id(
&ctx->component_id, &cpu_id, (intptr_t *)&ctx->address, &ctx->size);
if (plat_err != SUIT_PLAT_SUCCESS) {
LOG_ERR("Failed to decode IPUC %d component ID: %d", i, plat_err);
continue;
Expand All @@ -296,7 +296,7 @@ static struct device *flash_component_ipuc(struct zcbor_string *component_id,
break;
}

LOG_INF("IPUC for address range (0x%x, 0x%x) created", ctx->address,
LOG_INF("IPUC for address range (0x%lx, 0x%x) created", ctx->address,
ctx->size);
}

Expand Down Expand Up @@ -403,8 +403,8 @@ static struct device *flash_cache_ipuc(uintptr_t min_address, uintptr_t *ipuc_ad
return NULL;
}

plat_err = suit_plat_decode_component_id(&ctx->component_id, &cpu_id, &ctx->address,
&ctx->size);
plat_err = suit_plat_decode_component_id(&ctx->component_id, &cpu_id,
(intptr_t *)&ctx->address, &ctx->size);
if (plat_err != SUIT_PLAT_SUCCESS) {
flash_ipuc_release(dev);
return NULL;
Expand All @@ -421,7 +421,7 @@ static struct device *flash_cache_ipuc(uintptr_t min_address, uintptr_t *ipuc_ad
return NULL;
}

LOG_INF("Cache IPUC at idx %d for address range (0x%x, 0x%x) created", i_max,
LOG_INF("Cache IPUC at idx %d for address range (0x%lx, 0x%x) created", i_max,
ctx->address, ctx->size);
}

Expand Down
6 changes: 0 additions & 6 deletions scripts/quarantine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@
- native_posix
comment: "native_posix will be removed soon - native_sim platform is the default simulator now"

- scenarios:
- drivers.flash.flash_ipuc
platforms:
- nrf54h20dk/nrf54h20/cpuapp
comment: "https://nordicsemi.atlassian.net/browse/NCSDK-31492"

- scenarios:
- applications.matter_bridge.lto
- applications.matter_bridge.lto.br_ble
Expand Down

0 comments on commit 3e7e7b9

Please sign in to comment.