public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@debian.org>
To: Rui Qi <qirui.001@bytedance.com>
Cc: rafael@kernel.org, tony.luck@intel.com, bp@alien8.de,
	 guohanjun@huawei.com, mchehab@kernel.org,
	xueshuai@linux.alibaba.com, lenb@kernel.org,  pjw@kernel.org,
	palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
	 jonathan.cameron@huawei.com,
	fabio.m.de.francesco@linux.intel.com,
	 jason@os.amperecomputing.com, inux-acpi@vger.kernel.org,
	linux-kernel@vger.kernel.org,  inux-riscv@lists.infradead.org
Subject: Re: [PATCH] ACPI: APEI: ghes: mark ghes_in_nmi_spool_from_list maybe unused
Date: Tue, 17 Mar 2026 02:39:33 -0700	[thread overview]
Message-ID: <abkhRYO3bC4Y10pF@gmail.com> (raw)
In-Reply-To: <20260316082842.84356-1-qirui.001@bytedance.com>

On Mon, Mar 16, 2026 at 04:28:42PM +0800, Rui Qi wrote:
> 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 (e.g.
> 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.
> 
> Signed-off-by: Rui Qi <qirui.001@bytedance.com>

Reviewed-by: Breno Leitao <leitao@debian.org>

  parent reply	other threads:[~2026-03-17  9:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-16  8:28 [PATCH] ACPI: APEI: ghes: mark ghes_in_nmi_spool_from_list maybe unused Rui Qi
2026-03-16  9:03 ` Breno Leitao
2026-03-17  3:55   ` Rui Qi
2026-03-17  9:39     ` Breno Leitao
2026-03-23  8:14       ` Hanjun Guo
2026-03-17  9:39 ` Breno Leitao [this message]
2026-03-23  8:15 ` Hanjun Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abkhRYO3bC4Y10pF@gmail.com \
    --to=leitao@debian.org \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=bp@alien8.de \
    --cc=fabio.m.de.francesco@linux.intel.com \
    --cc=guohanjun@huawei.com \
    --cc=inux-acpi@vger.kernel.org \
    --cc=inux-riscv@lists.infradead.org \
    --cc=jason@os.amperecomputing.com \
    --cc=jonathan.cameron@huawei.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=qirui.001@bytedance.com \
    --cc=rafael@kernel.org \
    --cc=tony.luck@intel.com \
    --cc=xueshuai@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox