Skip to content

linuxkm, .wolfssl_known_macro_extras: fix check-source-text failures - #12032

Merged
Frauschi merged 1 commit into
wolfSSL:masterfrom
yosuke-wolfssl:fix/check-source-text
Nov 6, 2026
Merged

Frauschi merged 1 commit into
wolfSSL:masterfrom
yosuke-wolfssl:fix/check-source-text

Conversation

@yosuke-wolfssl

Copy link
Copy Markdown
Contributor

Problem

PRB check-source-text fails on every PR based on current master.

  • linuxkm/lkcapi_ecdsa_glue.c:1333 compares PTR_ERR(tfm) against a bare -ELIBBAD. ELIBBAD is one of the errno codes traced in linuxkm/module_hooks.c, so the "unescaped error code operands" subtest rejects it (fail_I).
  • .wolfssl_known_macro_extras lists WOLFSSL_DYNAMIC_PEER_CERT and WOLFSSL_FIPS_EXPORT_LOCAL_APIS. Both are now #defined in wolfssl/wolfcrypt/settings.h, so the check flags these entries as unneeded. This is a warning, not a failure.

Fix (linuxkm/lkcapi_ecdsa_glue.c)

  • -WC_NO_ERR_TRACE(ELIBBAD) replaces the bare -ELIBBAD.
  • .wolfssl_known_macro_extras drops the two redundant entries.

No functional change.

Verification

  • check-source-text scenario with the PRB configure line (--enable-all --enable-dtls13 --enable-quic --with-sys-crypto-policy ...):
Tree Result
master 2b0874883c fail_I at lkcapi_ecdsa_glue.c:1333, plus the two unneeded-extras warnings
this PR check-source-text OK, no warnings; codespell clean
  • .github/scripts/check-source-text.sh clean on both changed files.

- lkcapi_ecdsa_glue.c compares PTR_ERR(tfm) against
  -WC_NO_ERR_TRACE(ELIBBAD) in place of a bare -ELIBBAD.
- .wolfssl_known_macro_extras drops WOLFSSL_DYNAMIC_PEER_CERT and
  WOLFSSL_FIPS_EXPORT_LOCAL_APIS, both defined in settings.h.
@yosuke-wolfssl yosuke-wolfssl self-assigned this Nov 6, 2026
Copilot AI balanced review requested due to automatic review settings November 6, 2026 04:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the error-code tracing and redundant macro cleanup.

No open issues 🎉

What changed in this PR

Fixes check-source-text failures and warnings in wolfSSL’s Linux kernel integration and macro bookkeeping, with no intended functional change.

Changes:

  • Wraps ELIBBAD with WC_NO_ERR_TRACE in the ECDSA driver check.
  • Removes two redundant macro entries already defined in settings.h.
File Description
linuxkm/​lkcapi_ecdsa_glue.c Escapes the ELIBBAD comparison to satisfy error-code tracing checks.
.wolfssl_known_macro_extras Removes redundant WOLFSSL_DYNAMIC_PEER_CERT and WOLFSSL_FIPS_EXPORT_LOCAL_APIS entries.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

@Frauschi
Frauschi merged commit abb45b5 into wolfSSL:master Nov 6, 2026
418 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.

4 participants