Re: [PATCH] platform/x86/amd/pmf: constrain ACPI button linkage
From: Shyam Sundar S K
Date: Mon Nov 30 2026 - 10:31:37 EST
On 30-11-2026 17:58, Pengpeng Hou wrote:
> [You don't often get email from hppiscas@xxxxxxx. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> The PMF input collection calls acpi_lid_open(). With AMD_PMF=y and
> ACPI_BUTTON=m, button.h exposes the external declaration, but the
> button implementation is not linked into vmlinux.
>
> Constrain the optional dependency to exclude that combination. Keep
> ACPI_BUTTON=n supported through the existing stub rather than
> forcing the button driver on.
>
> The issue was found by our static-analysis tool and manually reviewed.
>
> Fixes: f4627dfd0e19 ("platform/x86/amd/pmf: Add support to get inputs from other subsystems")
> Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
Thanks for the fix. I could reproduce the link failure with
AMD_PMF=y and ACPI_BUTTON=m, and the change resolves it.
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@xxxxxxx>
Thanks,
Shyam