RTEMS | imxrt1052: Warning for missing declaration (#5300)

Joel Sherrill (@joel) gitlab at rtems.org
Tue Jul 15 18:50:29 UTC 2025



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5300

Assignee: Christian Mauderer

## Summary
The warning below is for a missing extern declaration of _dcp_hash_ctx_t_size_. Unfortunately, grep -r shows that this symbol does not appear in the RTEMS source tree except in this one BUILD_ASSURE macro.

```
../../../bsps/arm/imxrt/mcux-sdk/drivers/dcp/fsl_dcp.c: In function 'DCP_HASH_Init':
../../../bsps/arm/imxrt/mcux-sdk/drivers/dcp/fsl_dcp.c:1214:77: warning: nested extern declaration of 'dcp_hash_ctx_t_size' [-Wnested-externs]
 1214 |     BUILD_ASSURE(sizeof(dcp_hash_ctx_t) >= sizeof(dcp_hash_ctx_internal_t), dcp_hash_ctx_t_size);
      |                                                                             ^~~~~~~~~~~~~~~~~~~
../../../bsps/arm/imxrt/mcux-sdk/drivers/dcp/fsl_dcp.c:24:49: note: in definition of macro 'BUILD_ASSURE'
   24 | #define BUILD_ASSURE(condition, msg) extern int msg[1 - 2 * (!(condition))] __attribute__((unused))
      |                        
```

The configuration was:

```
[arm/imxrt1052]
BUILD_SAMPLES=True
BUILD_TESTS=True
RTEMS_DEBUG=True
RTEMS_POSIX=False
```




## Steps to reproduce


### Pre-set options

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5300
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250715/92118d7f/attachment.htm>


More information about the bugs mailing list