Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3413307rwa; Tue, 23 Aug 2022 04:29:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Z3VCE2nSpWkwzBr40rOYbEmj9TA6TJm815VPTy9P32AGLgZ+eHRj22W5YKCCzsBbF4pvC X-Received: by 2002:a05:6402:3216:b0:446:bfb7:71da with SMTP id g22-20020a056402321600b00446bfb771damr3297494eda.302.1661254173920; Tue, 23 Aug 2022 04:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254173; cv=none; d=google.com; s=arc-20160816; b=NsQ7uEN524xJ6ojDBRrIB1yHVtCaESRQo4Y1fPfZgAuo+2DdSuGeehs+bVASciVPuF 6PAVuOaSsH/mFG7BEVJ20xqLSVrlGqF81SVySlJYpjjlL3XpFwYQNjdtmxt9YV55IrpN MifgL1Q3l2N7Q7YUr9uits0i8CGiRgLLjZTcjT3ctRwXKKV49G8rsd5ht3I8m9sqS0cM eSH4unXp9elKGnP5VhpPL63Cw9NUHKK06prYThQPPogklN4wVnCGIQzSvi2EG1/hKli9 7cEJQozUZLPvgOSACd4w4tYC+bOg+xxxybcTqG39F7ikO9PsF1edVvWzRzemOD4ZIJu0 qF3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AS8fKR5tb28EZvGlmV6nSpg7GC93JjkWP9v1YBijRgI=; b=sHD+eFmymaww3e2IOS89JSR8Qs1+Jw5suL82F1VjtEVeThvSd82u2AY+Gm2EX3SygF N2g28WcGV8yd2Jz9Ua00J7Ou5LUiS+0BDCXUfKja82QLeoX4n79FRfQf+jWZsCYu6DvH FBZEnzhBkKTk1z0qNJBekVfZonNubE5fHffPZdIROzGQXEA6AYalAhDoWBIbDpTEK4GR VaOQ7nRRlsE3dG6WEKuxxMesAsw7UxO7d+Ou3CTo2HbZKgXp7h1RV6oR2CkzOUj6OZ50 kKouS9xlyYHj+yL6/bBMHiVRJVwd9iCjI6bZU6R+gu4uLHd4JLlphBSocWJzweM8B/lI 6v5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jT/tyIhq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a170906c21000b0073d97252ac7si1773320ejz.49.2022.08.23.04.29.08; Tue, 23 Aug 2022 04:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="jT/tyIhq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354025AbiHWKYR (ORCPT + 99 others); Tue, 23 Aug 2022 06:24:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353534AbiHWKLi (ORCPT ); Tue, 23 Aug 2022 06:11:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 634B1C6; Tue, 23 Aug 2022 01:57:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1B286B81C28; Tue, 23 Aug 2022 08:57:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78E1CC433C1; Tue, 23 Aug 2022 08:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245025; bh=DDjUZxl2V2JdEZSkI5b5kOsibxbKLbbmvroI1QTDkPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jT/tyIhqgSQ9doqUO1sS1bHkGA2ZpmFGxoyq87fn9qKrlPAr8u7fHbYmf5BdzfVy4 572sQB17lfI0MIDUSAx2hCnzYlknfPq9++Z+aeEJ7uq07R9g3tEewMXdmsXk1rmjVS Qz979bbKAuXBg+mfkuZZ8b0+6tIpvbSNYEWAQ5O4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Huacai Chen , Bjorn Helgaas , Sasha Levin Subject: [PATCH 5.15 191/244] PCI/ACPI: Guard ARM64-specific mcfg_quirks Date: Tue, 23 Aug 2022 10:25:50 +0200 Message-Id: <20220823080105.764241444@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huacai Chen [ Upstream commit 40a6cc141b4b9580de140bcb3e893445708acc5d ] Guard ARM64-specific quirks with CONFIG_ARM64 to avoid build errors, since mcfg_quirks will be shared by more than one architectures. Link: https://lore.kernel.org/r/20220714124216.1489304-2-chenhuacai@loongson.cn Signed-off-by: Huacai Chen Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- drivers/acpi/pci_mcfg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/pci_mcfg.c b/drivers/acpi/pci_mcfg.c index 53cab975f612..63b98eae5e75 100644 --- a/drivers/acpi/pci_mcfg.c +++ b/drivers/acpi/pci_mcfg.c @@ -41,6 +41,8 @@ struct mcfg_fixup { static struct mcfg_fixup mcfg_quirks[] = { /* { OEM_ID, OEM_TABLE_ID, REV, SEGMENT, BUS_RANGE, ops, cfgres }, */ +#ifdef CONFIG_ARM64 + #define AL_ECAM(table_id, rev, seg, ops) \ { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops } @@ -169,6 +171,7 @@ static struct mcfg_fixup mcfg_quirks[] = { ALTRA_ECAM_QUIRK(1, 13), ALTRA_ECAM_QUIRK(1, 14), ALTRA_ECAM_QUIRK(1, 15), +#endif /* ARM64 */ }; static char mcfg_oem_id[ACPI_OEM_ID_SIZE]; -- 2.35.1