Skip to content

Commit 3e7e7b9

Browse files
committed
suit: Fix warnings in flash_ipuc tests
Fix warnings in flash_ipuc tests. Ref: NCSDK-NONE Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 8a0d464 commit 3e7e7b9

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

drivers/flash/flash_ipuc/flash_ipuc.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BUILD_ASSERT(WRITE_BLOCK_SIZE > 0, "zephyr,flash: write_block_size expected to b
2525
struct ipuc_context {
2626
struct zcbor_string component_id;
2727
uint8_t component_id_buf[IPUC_MEM_COMPONENT_MAX_SIZE];
28-
size_t address;
28+
uintptr_t address;
2929
size_t size;
3030
bool read_access;
3131
};
@@ -282,8 +282,8 @@ static struct device *flash_component_ipuc(struct zcbor_string *component_id,
282282
if (!dry_run) {
283283
uint8_t cpu_id = 0;
284284

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

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

@@ -403,8 +403,8 @@ static struct device *flash_cache_ipuc(uintptr_t min_address, uintptr_t *ipuc_ad
403403
return NULL;
404404
}
405405

406-
plat_err = suit_plat_decode_component_id(&ctx->component_id, &cpu_id, &ctx->address,
407-
&ctx->size);
406+
plat_err = suit_plat_decode_component_id(&ctx->component_id, &cpu_id,
407+
(intptr_t *)&ctx->address, &ctx->size);
408408
if (plat_err != SUIT_PLAT_SUCCESS) {
409409
flash_ipuc_release(dev);
410410
return NULL;
@@ -421,7 +421,7 @@ static struct device *flash_cache_ipuc(uintptr_t min_address, uintptr_t *ipuc_ad
421421
return NULL;
422422
}
423423

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

scripts/quarantine.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
- native_posix
3030
comment: "native_posix will be removed soon - native_sim platform is the default simulator now"
3131

32-
- scenarios:
33-
- drivers.flash.flash_ipuc
34-
platforms:
35-
- nrf54h20dk/nrf54h20/cpuapp
36-
comment: "https://nordicsemi.atlassian.net/browse/NCSDK-31492"
37-
3832
- scenarios:
3933
- applications.matter_bridge.lto
4034
- applications.matter_bridge.lto.br_ble

0 commit comments

Comments
 (0)