Skip to content

[PW_SID:1118665] [v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused#2167

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1118665
Closed

[PW_SID:1118665] [v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused#2167
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1118665

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1118665 applied to workflow__riscv__fixes

Name: [v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1118665
Version: 2

Linux RISC-V bot and others added 2 commits June 25, 2026 20:36
When CONFIG_ACPI_APEI_SEA and CONFIG_HAVE_ACPI_APEI_NMI are both
disabled, ghes_in_nmi_spool_from_list() becomes an unused static
function and triggers -Werror=unused-function in some configs, for
example riscv defconfig with APEI disabled.

Mark it as __maybe_unused to silence the warning while keeping the
code available for configurations that use SEA or APEI NMI.

Reviewed-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Shuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: Rui Qi <qirui.001@bytedance.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 149.31 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1105.36 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1408.92 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 28.54 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 30.13 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.82 seconds
Result: WARNING
Output:

CHECK: Alignment should match open parenthesis
#35: FILE: drivers/acpi/apei/ghes.c:1401:
+static int __maybe_unused ghes_in_nmi_spool_from_list(struct list_head *rcu_list,
+			       enum fixed_addresses fixmap_idx)

total: 0 errors, 0 warnings, 1 checks, 10 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Commit 11a904faa57a ("ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused") has style problems, please review.

NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 0 warnings, 1 checks, 10 lines checked
CHECK: Alignment should match open parenthesis


@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 88.65 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.50 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
kdoc
Desc: Detects for kdoc errors
Duration: 1.16 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
module-param
Desc: Detect module_param changes
Duration: 0.89 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.51 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "[v2] ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.51 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch 2 times, most recently from 89be0ce to dc5ff20 Compare July 7, 2026 03:25
@linux-riscv-bot
linux-riscv-bot deleted the pw1118665 branch July 8, 2026 01:56
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