Skip to content

libslash: fix ignored ftruncate() result warning - #166

Merged
quetric merged 2 commits into
devfrom
fix/qdma-ftruncate-warning
Jul 28, 2026
Merged

libslash: fix ignored ftruncate() result warning#166
quetric merged 2 commits into
devfrom
fix/qdma-ftruncate-warning

Conversation

@amd-vserbu

Copy link
Copy Markdown
Collaborator

Summary

  • Fix the compiler warning caused by discarding the ftruncate() return value in the QDMA mock C2H fallback.
  • Check whether growing the queue-pair memfd succeeds instead of casting away the result.
  • Return the original error on failure, preventing the transfer from continuing into a misleading short read.

Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
Signed-off-by: Vlad-Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
@quetric
quetric merged commit 4f3279a into dev Jul 28, 2026
3 checks passed
@quetric
quetric deleted the fix/qdma-ftruncate-warning branch July 28, 2026 09:51
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