mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
ACPI: APEI: GHES: Mark ghes_in_nmi_spool_from_list() as maybe unused
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> Link: https://patch.msgid.link/20260630061445.2191731-1-qirui.001@bytedance.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
0c00cfbcfc
commit
7bfd21e828
|
|
@ -1397,8 +1397,8 @@ static int ghes_in_nmi_queue_one_entry(struct ghes *ghes,
|
|||
return rc;
|
||||
}
|
||||
|
||||
static int ghes_in_nmi_spool_from_list(struct list_head *rcu_list,
|
||||
enum fixed_addresses fixmap_idx)
|
||||
static int __maybe_unused ghes_in_nmi_spool_from_list(struct list_head *rcu_list,
|
||||
enum fixed_addresses fixmap_idx)
|
||||
{
|
||||
int ret = -ENOENT;
|
||||
struct ghes *ghes;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user