Skip to content

[v26.03.2] Fixes for SPDK#966

Merged
robertbaldyga merged 4 commits into
Open-CAS:v26.03.2.rcfrom
robertbaldyga:v26.03.2-fixes-for-spdk
Jul 6, 2026
Merged

[v26.03.2] Fixes for SPDK#966
robertbaldyga merged 4 commits into
Open-CAS:v26.03.2.rcfrom
robertbaldyga:v26.03.2-fixes-for-spdk

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

No description provided.

rafalste and others added 4 commits July 6, 2026 20:57
SPDK doesn't allow using C23 extensions and throws an error in the
upstream CI during compilation:
"error: '_Static_assert' with no message is a C23 extension [-Werror,-Wc23-extensions]"

Add a message as a second argument for _Static_assert() to avoid using
C23 extensions.

Signed-off-by: Rafal Stefanowski <r.stefanowski@pm.me>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
This properly alignes data and prevents UBSan from reporting
misalignment errors.

Signed-off-by: Rafal Stefanowski <r.stefanowski@pm.me>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
__builtin_clz() produces undefined behavior for argument equal 0.
Implement proper handing of such a case.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Needed by SPDK OCF module to set/get CPU mask on cleaner thread.

Signed-off-by: Rafal Stefanowski <r.stefanowski@pm.me>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga robertbaldyga merged commit 49ca587 into Open-CAS:v26.03.2.rc Jul 6, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants