Skip to content

Conversation

@Holt-Sun
Copy link
Contributor

@Holt-Sun Holt-Sun commented Dec 14, 2025

Fix compiler warnings when CONFIG_HAS_MCUX_CACHE is not defined:

  • Add pointer validity checks before cache invalidation operations
  • Remove unnecessary intermediate 'size' variable and use 'len'
    directly in DCACHE_InvalidateByRange() to eliminate unused
    variable when CONFIG_HAS_MCUX_CACHE is disabled

@Holt-Sun Holt-Sun force-pushed the nxp-mcux-fix-unused-variable-issue-in-flexspi-driver branch from 57f1667 to d148b17 Compare December 15, 2025 02:41
Preserve original write length for DCACHE_InvalidateByRange()
Guard declaration of `size` with CONFIG_HAS_MCUX_CACHE to avoid
unused-variable warnings when cache is disabled
Add pointer validity checks before cache invalidation

Signed-off-by: Holt Sun <[email protected]>
@Holt-Sun Holt-Sun force-pushed the nxp-mcux-fix-unused-variable-issue-in-flexspi-driver branch from d148b17 to 79e714a Compare December 16, 2025 03:30
@sonarqubecloud
Copy link

@jhedberg jhedberg merged commit 97f4971 into zephyrproject-rtos:main Dec 17, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants