nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

[BUG] SDIO `callbackenable` should only exist if HPWORK queue support is enabled

Open linguini1 opened this issue 2 months ago • 0 comments

Description / Steps to reproduce the issue

The callbackenable function prototype exists outside of the ifdef guards for HPWORK queue support in include/nuttx/sdio.h.

However, this function is meant to enable the callback function that was registered earlier based on some events. I don't see why this should exist without the work queue, since without the work queue no callback can even be registered. This means the system is enabling nothing. All callback-related functions should not exist without work queue support.

On which OS does this issue occur?

[OS: Linux]

What is the version of your OS?

Arch Linux

NuttX Version

master

Issue Architecture

[Arch: all]

Issue Area

[Area: Drivers]

Host information

N/A

Verification

  • [x] I have verified before submitting the report.

linguini1 avatar Oct 26 '25 18:10 linguini1