Skip to content

[v4.2] drivers: i2c: stm32: build error when using DMAs with st,stm32-i2c-v2 driver #95724

@etienne-lms

Description

@etienne-lms

Describe the bug

When building a application embedding STM32 I2C v2 driver using DMAs on Zephyr 4.2, the build fails due to a missing header file inclusion in that driver header file.

The issue was introduced before v4.2 tag (24b4ce1) and fixed afterward: #95681.
The fix should be backported the v4.2-branch.

Regression

  • This is a regression.

Steps to reproduce

west build -b stm32f072b_disco tests/drivers/i2c/i2c_target_api -- -DCONFIG_I2C_STM32_V2_DMA=y

Relevant log output

.../drivers/i2c/i2c_ll_stm32_v2.c: In function 'i2c_stm32_msg_write':
.../drivers/i2c/i2c_ll_stm32_v2.c:679:14: warning: implicit declaration of function 'stm32_buf_in_nocache' [-Wimplicit-function-declaration]
  679 |         if (!stm32_buf_in_nocache((uintptr_t)msg->buf, msg->len)) {
      |              ^~~~~~~~~~~~~~~~~~~~

Impact

Annoyance – Minor irritation; no significant impact on usability or functionality.

Environment

  • OS: any
  • Toolchain: any

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions