From 280da6426c2aa885021725de8caffe13b8210fa7 Mon Sep 17 00:00:00 2001 From: LeoLiu-oc Date: Mon, 16 Mar 2026 20:06:32 +0800 Subject: [PATCH] ahci: guard Zhaoxin enclosure quirk fields behind CONFIG_X86 zhaoxin inclusion category: feature -------------------- The AHCI host struct previously always contained members used only by the x86-only Zhaoxin enclosure management quirk (p1_mmio, sx_index, px_index, has_p0_p1). These members are not referenced on non-x86 builds, so keep them inside a CONFIG_X86 guard to avoid unnecessary struct bloat and to better reflect their platform-specific use. Signed-off-by: Your Name Signed-off-by: LeoLiu-oc --- drivers/ata/ahci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 8ba831020d77..37b793b8939f 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -383,11 +383,13 @@ struct ahci_host_priv { /* only required for per-port MSI(-X) support */ int (*get_irq_vector)(struct ata_host *host, int port); +#ifdef CONFIG_X86 /* fix zhaoxin Enclosure Management quirk */ void __iomem *p1_mmio; u8 sx_index; u8 px_index; bool has_p0_p1; +#endif }; extern int ahci_ignore_sss; -- Gitee