From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0FE0371CE7 for ; Tue, 17 Mar 2026 09:40:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773740416; cv=none; b=uRbACCgBMhZZM4MjHY/IEJKMdOjPFs7egfxL9zxo6IevvdBuI224CsFaBYGsyH4FFcIPyoXROD8jeDwJz3IPHDVtDmbnDbzv71uGwPzGAcJOwNQOzINwXr8kQKGbvOS0T5A84S1jLD3ckuKbKK9hXg5JQJlAwQ5MAomZXrzOnUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773740416; c=relaxed/simple; bh=wlpmLvoWS0dmi6fnO5dP7iMGhvFvGkJeJ1LpdiPmzK0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pspeGM08wNwq6oP/7Ledtec77khURSjPgHln5zZr6+7Wt11HJjMkVkQt40NFb2kOAaJSeiNWx9XwtKWbDLsGaq7p1t/qC1y8DUXK9N6LdiiQtjnbK2VOlxgozwT6iYtZiBggXJyqx6DjhQMzBxDWYrlBpU2NUhqceGsvlzrWm5E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=none smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=BJfoaEwh; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="BJfoaEwh" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kw/hJ7obwWm8OdEp1MeXeQHPGLejC+d22oU4Xxz4r4o=; b=BJfoaEwhXveMHYjfhpKKI7tVEN S3VUhsud5qBgKi7zY6kGD2dfSnK4nPjArBsUnn7tshQYaumiv073+V3GxjC95nviOgkGSFx1S0MKH xEN+MNqP1jT7l+c4qi8on/VO00NYIrSr1Azsmyd61dgNCBjpaFiriCJHJOBgN7//a1t4VQRfz2TMG doXQhAEvcGn7DoIHnY/Ll/+qdILceXyyR6ra1lCPyvf45pTMWVLHR/z2DdqQLd3sUJMJZciIxh1KW 0j3BEqRPmM3usuK5Yua0LE2RAOkW+sRkAQLoRXuFouVqYHFVF8vOhDz6IQOL+mRMsAXfaDf8ppy+V 3s25UNtg==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1w2Qto-002n3v-1M; Tue, 17 Mar 2026 09:39:38 +0000 Date: Tue, 17 Mar 2026 02:39:33 -0700 From: Breno Leitao To: Rui Qi 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 Message-ID: References: <20260316082842.84356-1-qirui.001@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260316082842.84356-1-qirui.001@bytedance.com> X-Debian-User: leitao 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 Reviewed-by: Breno Leitao